<ItemGroup>
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\ICastableHelpers.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\RuntimeHelpers.cs" />
+ <Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\RuntimeFeature.CoreCLR.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\TypeDependencyAttribute.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\jithelpers.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\ConditionalWeakTable.cs" />
--- /dev/null
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+namespace System.Runtime.CompilerServices
+{
+ public static partial class RuntimeFeature
+ {
+ public static bool IsDynamicCodeSupported => true;
+ public static bool IsDynamicCodeCompiled => true;
+ }
+}
namespace System.Runtime.CompilerServices
{
- public static class RuntimeFeature
+ public static partial class RuntimeFeature
{
/// <summary>
/// Name of the Portable PDB feature.
case DefaultImplementationsOfInterfaces:
#endif
return true;
+ case nameof(IsDynamicCodeSupported):
+ return IsDynamicCodeSupported;
+ case nameof(IsDynamicCodeCompiled):
+ return IsDynamicCodeCompiled;
}
return false;