diff options
author | Yi Zhang (CLR) <yizhang82@users.noreply.github.com> | 2017-05-26 14:23:55 -0700 |
---|---|---|
committer | Yi Zhang (CLR) <yzha@microsoft.com> | 2017-07-19 11:16:56 -0700 |
commit | 2acd61350fc39d62108eda77ae70492a0faa9ae0 (patch) | |
tree | 3a32a78eb04f60ffb2fd8bd020896ec25f51c2f7 | |
parent | a5f9bde9086a0a69ae290cf40bb89403d640e85f (diff) | |
download | coreclr-2acd61350fc39d62108eda77ae70492a0faa9ae0.tar.gz coreclr-2acd61350fc39d62108eda77ae70492a0faa9ae0.tar.bz2 coreclr-2acd61350fc39d62108eda77ae70492a0faa9ae0.zip |
Add RuntimeFeature detection for default interface method (#11940)
-rw-r--r-- | src/mscorlib/shared/System/Runtime/CompilerServices/RuntimeFeature.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mscorlib/shared/System/Runtime/CompilerServices/RuntimeFeature.cs b/src/mscorlib/shared/System/Runtime/CompilerServices/RuntimeFeature.cs index 090acff559..4978b09b72 100644 --- a/src/mscorlib/shared/System/Runtime/CompilerServices/RuntimeFeature.cs +++ b/src/mscorlib/shared/System/Runtime/CompilerServices/RuntimeFeature.cs @@ -11,17 +11,19 @@ namespace System.Runtime.CompilerServices /// </summary> public const string PortablePdb = nameof(PortablePdb); + /// Indicates that this version of runtime supports default interface method implementations. + /// </summary> + public const string DefaultImplementationsOfInterfaces = nameof(DefaultImplementationsOfInterfaces); + /// <summary> /// Checks whether a certain feature is supported by the Runtime. /// </summary> public static bool IsSupported(string feature) { - // 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): + case PortablePdb: + case DefaultImplementationsOfInterfaces: return true; } |