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