48 references to IsDynamicCodeSupported
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (1)
206if (RuntimeFeature.IsDynamicCodeSupported)
Microsoft.AspNetCore.Components (2)
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.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)
53: 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)
53: 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.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.Core (3)
Internal\HubMethodDescriptor.cs (2)
209if (RuntimeFeature.IsDynamicCodeSupported) 297if (!RuntimeFeature.IsDynamicCodeSupported && streamType.IsValueType)
StreamTracker.cs (1)
35Debug.Assert(RuntimeFeature.IsDynamicCodeSupported || !itemType.IsValueType, "HubMethodDescriptor ensures itemType is not a ValueType when PublishAot=true.");
Microsoft.Extensions.DependencyInjection (1)
ServiceProvider.cs (1)
49!RuntimeFeature.IsDynamicCodeSupported;
System.Data.Common (1)
System\Data\DataRowExtensions.cs (1)
151if (!RuntimeFeature.IsDynamicCodeSupported)
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\DsesFilterAndTransform.cs (2)
806if (!RuntimeFeature.IsDynamicCodeSupported && elemType.IsValueType) 821if (!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)
615if (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)
53if (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 ?