35 references to IsNullable
ILCompiler.Compiler (15)
Compiler\Compilation.cs (3)
350
if (type.
IsNullable
)
410
if (!type.IsRuntimeDeterminedType || !((RuntimeDeterminedType)type).CanonicalType.
IsNullable
)
412
if (type.
IsNullable
)
Compiler\DependencyAnalysis\EETypeNode.cs (1)
844
if (_type.IsArray && parameterType.IsValueType && !parameterType.
IsNullable
)
Compiler\DependencyAnalysis\GenericLookupResult.cs (1)
380
if (instantiatedType.
IsNullable
)
Compiler\DependencyAnalysis\NodeFactory.GenericLookups.cs (2)
128
if (type.IsRuntimeDeterminedType && ((RuntimeDeterminedType)type).CanonicalType.
IsNullable
)
133
if (type.
IsNullable
)
Compiler\MetadataManager.cs (1)
406
if (owningType.
IsNullable
)
Compiler\TypePreinit.cs (2)
1690
if (type.
IsNullable
)
3565
if (!type.IsValueType || type.
IsNullable
)
IL\ILImporter.Scanner.cs (1)
1600
if (type.
IsNullable
)
parent\parent\Common\Internal\Runtime\EETypeBuilderHelpers.cs (1)
245
if (type.
IsNullable
)
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (1)
259
if (elementType.
IsNullable
)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (2)
91
if (type.
IsNullable
)
173
if (type.
IsNullable
)
ILCompiler.ReadyToRun (9)
JitInterface\CorInfoImpl.ReadyToRun.cs (2)
931
if (type.
IsNullable
)
944
if (type.
IsNullable
)
parent\parent\Common\JitInterface\CorInfoImpl.cs (5)
2888
var typeForBox = type.
IsNullable
? type.Instantiation[0] : type;
2900
return type.
IsNullable
? CorInfoHelpFunc.CORINFO_HELP_BOX_NULLABLE : CorInfoHelpFunc.CORINFO_HELP_BOX;
2907
return type.
IsNullable
? CorInfoHelpFunc.CORINFO_HELP_UNBOX_NULLABLE : CorInfoHelpFunc.CORINFO_HELP_UNBOX;
3087
else if (toType.
IsNullable
)
3261
return type.
IsNullable
? TypeCompareState.Must : TypeCompareState.MustNot;
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (2)
91
if (type.
IsNullable
)
173
if (type.
IsNullable
)
ILCompiler.RyuJit (6)
JitInterface\CorInfoImpl.RyuJit.cs (1)
2271
if (type.
IsNullable
)
parent\parent\Common\JitInterface\CorInfoImpl.cs (5)
2888
var typeForBox = type.
IsNullable
? type.Instantiation[0] : type;
2900
return type.
IsNullable
? CorInfoHelpFunc.CORINFO_HELP_BOX_NULLABLE : CorInfoHelpFunc.CORINFO_HELP_BOX;
2907
return type.
IsNullable
? CorInfoHelpFunc.CORINFO_HELP_UNBOX_NULLABLE : CorInfoHelpFunc.CORINFO_HELP_UNBOX;
3087
else if (toType.
IsNullable
)
3261
return type.
IsNullable
? TypeCompareState.Must : TypeCompareState.MustNot;
ILCompiler.TypeSystem (5)
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (3)
172
bool isCastFromNullableOfTtoT = thisType.
IsNullable
&& otherType.IsEquivalentTo(thisType.Instantiation[0], visited);
574
if (otherType.
IsNullable
&& !curType.
IsNullable
)
parent\parent\Common\TypeSystem\Common\TypeSystemConstraintsHelpers.cs (2)
49
if ((!instantiationParam.IsValueType || instantiationParam.
IsNullable
)
112
if (constraint.IsValueType && !constraint.
IsNullable
)