From 6c4d14e1b2b6bcb975496bb9b4ea9befa53781fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tom=C3=A1=C5=A1=20Matou=C5=A1ek?= Date: Wed, 24 May 2017 23:48:05 -0700 Subject: [PATCH] Adds System.Runtime.CompilerServices.Runtimefeature.PortablePdb (#11845) --- .../System/Runtime/CompilerServices/RuntimeFeature.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/mscorlib/shared/System/Runtime/CompilerServices/RuntimeFeature.cs b/src/mscorlib/shared/System/Runtime/CompilerServices/RuntimeFeature.cs index 110a55f..090acff 100644 --- a/src/mscorlib/shared/System/Runtime/CompilerServices/RuntimeFeature.cs +++ b/src/mscorlib/shared/System/Runtime/CompilerServices/RuntimeFeature.cs @@ -7,14 +7,24 @@ namespace System.Runtime.CompilerServices public static class RuntimeFeature { /// + /// Name of the Portable PDB feature. + /// + public const string PortablePdb = nameof(PortablePdb); + + /// /// Checks whether a certain feature is supported by the Runtime. /// public static bool IsSupported(string feature) { - // No features are supported for now. - // These features should be added as public const string fields in the same class. + // Features should be added as public const string fields in the same class. // Example: public const string FeatureName = nameof(FeatureName); + switch (feature) + { + case nameof(PortablePdb): + return true; + } + return false; } } -- 2.7.4