Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Add RuntimeFeature.IsDynamicCodeSupported/IsDynamicCodeCompiled
Browse files Browse the repository at this point in the history
Contributes to dotnet/corefx#29258

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
  • Loading branch information
jkotas committed Dec 4, 2018
1 parent 7a01613 commit 2b4af45
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace System.Runtime.CompilerServices
{
public static class RuntimeFeature
public static partial class RuntimeFeature
{
/// <summary>
/// Name of the Portable PDB feature.
Expand All @@ -30,6 +30,10 @@ public static bool IsSupported(string feature)
case DefaultImplementationsOfInterfaces:
#endif
return true;
case nameof(IsDynamicCodeSupported):
return IsDynamicCodeSupported;
case nameof(IsDynamicCodeCompiled):
return IsDynamicCodeCompiled;
}

return false;
Expand Down

0 comments on commit 2b4af45

Please sign in to comment.