6 references to IsDynamicCodeSupported
Microsoft.Extensions.DependencyInjection (6)
ServiceLookup\CallSiteFactory.cs (2)
275
if (!ServiceProvider.
IsDynamicCodeSupported
&& itemType.IsValueType)
548
if (!ServiceProvider.
IsDynamicCodeSupported
)
ServiceLookup\CallSiteRuntimeResolver.cs (1)
203
Debug.Assert(ServiceProvider.
IsDynamicCodeSupported
|| !elementType.IsValueType, "When dynamic code isn't supported, building the IEnumerableCallSite will throw if elementType is a ValueType.");
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (2)
122
Debug.Assert(ServiceProvider.
IsDynamicCodeSupported
|| !elementType.IsValueType, "When dynamic code isn't supported, building the IEnumerableCallSite will throw if elementType is a ValueType.");
131
Debug.Assert(ServiceProvider.
IsDynamicCodeSupported
|| !elementType.IsValueType, "When dynamic code isn't supported, building the IEnumerableCallSite will throw if elementType is a ValueType.");
ServiceLookup\IEnumerableCallSite.cs (1)
18
Debug.Assert(ServiceProvider.
IsDynamicCodeSupported
|| !itemType.IsValueType, "When dynamic code isn't supported, an IEnumerableCallSite should not be created with a ValueType.");