6 references to VerifyAotCompatibility
Microsoft.Extensions.DependencyInjection (6)
ServiceLookup\CallSiteFactory.cs (2)
275
if (ServiceProvider.
VerifyAotCompatibility
&& itemType.IsValueType)
435
if (ServiceProvider.
VerifyAotCompatibility
)
ServiceLookup\CallSiteRuntimeResolver.cs (1)
180
Debug.Assert(!ServiceProvider.
VerifyAotCompatibility
|| !elementType.IsValueType, "VerifyAotCompatibility=true will throw during building the IEnumerableCallSite if elementType is a ValueType.");
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (2)
122
Debug.Assert(!ServiceProvider.
VerifyAotCompatibility
|| !elementType.IsValueType, "VerifyAotCompatibility=true will throw during building the IEnumerableCallSite if elementType is a ValueType.");
131
Debug.Assert(!ServiceProvider.
VerifyAotCompatibility
|| !elementType.IsValueType, "VerifyAotCompatibility=true will throw during building the IEnumerableCallSite if elementType is a ValueType.");
ServiceLookup\IEnumerableCallSite.cs (1)
18
Debug.Assert(!ServiceProvider.
VerifyAotCompatibility
|| !itemType.IsValueType, "If VerifyAotCompatibility=true, an IEnumerableCallSite should not be created with a ValueType.");