Skip to content

Commit

Permalink
Add feature detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronRobinsonMSFT committed Jul 2, 2020
1 parent 0041d20 commit 145309e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public static partial class RuntimeFeature
public const string DefaultImplementationsOfInterfaces = nameof(DefaultImplementationsOfInterfaces);
#endif

/// <summary>
/// Indicates that this version of runtime supports the Unmanaged calling convention value.
/// </summary>
public const string UnmanagedSignatureCallingConvention = nameof(UnmanagedSignatureCallingConvention);

/// <summary>
/// Indicates that this version of runtime supports covariant returns in overrides of methods declared in classes.
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions src/libraries/System.Runtime/ref/System.Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9342,6 +9342,7 @@ public static partial class RuntimeFeature
{
public const string CovariantReturnsOfClasses = "CovariantReturnsOfClasses";
public const string DefaultImplementationsOfInterfaces = "DefaultImplementationsOfInterfaces";
public const string UnmanagedSignatureCallingConvention = "UnmanagedSignatureCallingConvention";
public const string PortablePdb = "PortablePdb";
public static bool IsDynamicCodeCompiled { get { throw null; } }
public static bool IsDynamicCodeSupported { get { throw null; } }
Expand Down

0 comments on commit 145309e

Please sign in to comment.