82 references to IsDynamicCodeSupported
aspire (2)
NuGet\BundleNuGetService.cs (1)
553if (!RuntimeFeature.IsDynamicCodeSupported)
Utils\IProcessPathProvider.cs (1)
26public bool IsNativeAot => !RuntimeFeature.IsDynamicCodeSupported && string.IsNullOrEmpty(typeof(EnvironmentProcessPathProvider).Assembly.Location);
aspire-tray (1)
Program.cs (1)
91var startupSettings = new WindowsTrayStartupSettings(options, !RuntimeFeature.IsDynamicCodeSupported,
Aspire.Dashboard (1)
Utils\VersionHelpers.cs (1)
20internal static bool IsNativeAot { get; } = !RuntimeFeature.IsDynamicCodeSupported;
Aspire.Hosting.Native.Core.AotSmoke (1)
Program.cs (1)
11if (RuntimeFeature.IsDynamicCodeSupported)
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (1)
266if (RuntimeFeature.IsDynamicCodeSupported)
dotnet-aot (1)
SdkRootLocator.cs (1)
50if (RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.Components (4)
BindConverter.cs (2)
2050if (RuntimeFeature.IsDynamicCodeSupported) 2063if (RuntimeFeature.IsDynamicCodeSupported)
src\aspnetcore\src\Components\Shared\src\Reflection\PropertyGetter.cs (1)
34if (RuntimeFeature.IsDynamicCodeSupported)
src\aspnetcore\src\Components\Shared\src\Reflection\PropertySetter.cs (1)
30if (RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.Components.Endpoints (4)
src\aspnetcore\src\Components\Shared\src\Reflection\PropertyGetter.cs (1)
34if (RuntimeFeature.IsDynamicCodeSupported)
src\aspnetcore\src\Components\Shared\src\Reflection\PropertySetter.cs (1)
30if (RuntimeFeature.IsDynamicCodeSupported)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
213if (RuntimeFeature.IsDynamicCodeSupported) 285if (RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.Components.Forms (4)
FieldIdentifier.cs (3)
138case not null when !RuntimeFeature.IsDynamicCodeSupported: 181if (!RuntimeFeature.IsDynamicCodeSupported) 225if (!RuntimeFeature.IsDynamicCodeSupported)
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (1)
281if (!RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.Components.Web (1)
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (1)
281if (!RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostBuilder.cs (1)
290if (containerType.IsValueType && !RuntimeFeature.IsDynamicCodeSupported)
Internal\StartupLoader.cs (1)
72if (type.IsValueType && !RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.Http.Abstractions (4)
Extensions\UseMiddlewareExtensions.cs (2)
202Debug.Assert(!RuntimeFeature.IsDynamicCodeSupported, "Use reflection fallback when dynamic code is not supported."); 267Debug.Assert(RuntimeFeature.IsDynamicCodeSupported, "Use compiled expression when dynamic code is supported.");
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
213if (RuntimeFeature.IsDynamicCodeSupported) 285if (RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.Http.Extensions (3)
RequestDelegateFactory.cs (2)
451if (RuntimeFeature.IsDynamicCodeSupported) 605if (!RuntimeFeature.IsDynamicCodeSupported)
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
52: this(preferNonGenericEnumParseOverload: !RuntimeFeature.IsDynamicCodeSupported,
Microsoft.AspNetCore.Http.Results (1)
ResultsOfTHelper.cs (1)
26if (RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
52: this(preferNonGenericEnumParseOverload: !RuntimeFeature.IsDynamicCodeSupported,
Microsoft.AspNetCore.Mvc.Core (2)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
213if (RuntimeFeature.IsDynamicCodeSupported) 285if (RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.OpenApi (1)
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
52: this(preferNonGenericEnumParseOverload: !RuntimeFeature.IsDynamicCodeSupported,
Microsoft.AspNetCore.Routing (2)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
213if (RuntimeFeature.IsDynamicCodeSupported) 285if (RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.Routing.Abstractions (2)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
213if (RuntimeFeature.IsDynamicCodeSupported) 285if (RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1144if (!RuntimeFeature.IsDynamicCodeSupported && genericTypes[0].IsValueType)
Microsoft.AspNetCore.SignalR.Core (3)
Internal\HubMethodDescriptor.cs (2)
234if (RuntimeFeature.IsDynamicCodeSupported) 322if (!RuntimeFeature.IsDynamicCodeSupported && streamType.IsValueType)
StreamTracker.cs (1)
41Debug.Assert(RuntimeFeature.IsDynamicCodeSupported || !itemType.IsValueType, "HubMethodDescriptor ensures itemType is not a ValueType when PublishAot=true.");
Microsoft.Build (4)
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (1)
92if (!RuntimeFeature.IsDynamicCodeSupported)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
525if (RuntimeFeature.IsDynamicCodeSupported && TaskInstance is not TaskHostTask) 935if (!RuntimeFeature.IsDynamicCodeSupported)
parent\Shared\TypeLoader.cs (1)
314string assemblyPath = RuntimeFeature.IsDynamicCodeSupported
Microsoft.Build.Framework (7)
BackEnd\TranslatorHelpers.cs (1)
395codeBase = RuntimeFeature.IsDynamicCodeSupported ? assemblyName.CodeBase : string.Empty;
BuildEnvironmentHelper.cs (2)
109if (!RuntimeFeature.IsDynamicCodeSupported) 454if (!RuntimeFeature.IsDynamicCodeSupported)
Loader\CoreCLRAssemblyLoader.cs (1)
142if (!RuntimeFeature.IsDynamicCodeSupported)
Loader\LoadedType.cs (1)
128string loadedAssemblyLocation = RuntimeFeature.IsDynamicCodeSupported ? loadedAssembly.Location : string.Empty;
NativeMethods.cs (1)
620if (!RuntimeFeature.IsDynamicCodeSupported)
Utilities\AssemblyNameExtension.cs (1)
974info.AddValue("codebase", RuntimeFeature.IsDynamicCodeSupported ? asAssemblyName.CodeBase : string.Empty);
Microsoft.Build.Tasks.Core (2)
GenerateManifestBase.cs (1)
291if (!RuntimeFeature.IsDynamicCodeSupported)
XslTransformation.cs (1)
121if (!RuntimeFeature.IsDynamicCodeSupported)
Microsoft.CodeAnalysis (1)
CommandLine\CommonCompiler.cs (1)
177if (!RuntimeFeature.IsDynamicCodeSupported)
Microsoft.DotNet.Cli.Utils (1)
MSBuildForwardingAppWithoutLogging.cs (1)
193if (RuntimeFeature.IsDynamicCodeSupported)
Microsoft.Extensions.DependencyInjection (1)
ServiceProvider.cs (1)
49RuntimeFeature.IsDynamicCodeSupported;
Microsoft.Extensions.DependencyInjection.Abstractions (1)
EmptyServiceProvider.cs (1)
127RuntimeFeature.IsDynamicCodeSupported;
Microsoft.JSInterop (2)
Infrastructure\DotNetDispatcher.cs (1)
389if (RuntimeFeature.IsDynamicCodeSupported)
Infrastructure\TaskGenericsUtil.cs (1)
38: RuntimeFeature.IsDynamicCodeSupported
MSBuild (1)
parent\Shared\TypeLoader.cs (1)
314string assemblyPath = RuntimeFeature.IsDynamicCodeSupported
System.Data.Common (1)
System\Data\DataRowExtensions.cs (1)
151if (!RuntimeFeature.IsDynamicCodeSupported)
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\DsesFilterAndTransform.cs (2)
798if (!RuntimeFeature.IsDynamicCodeSupported && elemType.IsValueType) 813if (!RuntimeFeature.IsDynamicCodeSupported && (propertyInfo.DeclaringType!.IsValueType || propertyInfo.PropertyType.IsValueType))
System.Linq.Expressions (5)
System\Dynamic\Utils\DelegateHelpers.cs (1)
189if (!RuntimeFeature.IsDynamicCodeSupported)
System\Dynamic\Utils\TypeUtils.cs (1)
42if (RuntimeFeature.IsDynamicCodeSupported)
System\Linq\Expressions\Compiler\DelegateHelpers.cs (1)
115if (RuntimeFeature.IsDynamicCodeSupported)
System\Linq\Expressions\Interpreter\CallInstruction.cs (1)
20private static bool CanCreateArbitraryDelegates => RuntimeFeature.IsDynamicCodeSupported;
System\Linq\Expressions\LambdaExpression.cs (1)
29public static bool CanCompileToIL => RuntimeFeature.IsDynamicCodeSupported;
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
88if (!RuntimeFeature.IsDynamicCodeSupported && !t_allowDynamicCode)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeFeature.cs (2)
68nameof(IsDynamicCodeSupported) => IsDynamicCodeSupported,
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\AccessorBuilder.cs (2)
69if (RuntimeFeature.IsDynamicCodeSupported || (!declaringType.IsValueType && !propertyType.IsValueType)) 126if (RuntimeFeature.IsDynamicCodeSupported || (!declaringType.IsValueType && !propertyType.IsValueType))
System\Runtime\Serialization\DataContractSerializer.cs (1)
49get { return RuntimeFeature.IsDynamicCodeSupported ? s_option : SerializationOption.ReflectionOnly; }
System.Private.Xml (2)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
624if (type.IsValueType || !RuntimeFeature.IsDynamicCodeSupported)
System\Xml\Serialization\XmlSerializer.cs (1)
118get => RuntimeFeature.IsDynamicCodeSupported ? s_mode : SerializationMode.ReflectionOnly;
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\StrategyBasedComWrappers.cs (1)
54if (OperatingSystem.IsWindows() && RuntimeFeature.IsDynamicCodeSupported && ComObject.BuiltInComSupported && ComObject.ComImportInteropEnabled)
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\CryptoHelpers.cs (1)
55if (!RuntimeFeature.IsDynamicCodeSupported)
System.ServiceModel.Primitives (1)
System\ServiceModel\Dispatcher\InvokerUtil.cs (1)
38if (!s_useLegacyInvokeDelegate.Value && RuntimeFeature.IsDynamicCodeSupported)
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\MemberAccessor.cs (1)
35RuntimeFeature.IsDynamicCodeSupported ?