1 instantiation of NullType
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullType.cs (1)
12
public static readonly NullType Instance = new
NullType
();
24 references to NullType
Microsoft.CSharp (24)
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
704
Debug.Assert(pExpr.Type is
NullType
);
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (2)
399
if (expr.Type is
NullType
&& dest.FundamentalType != FUNDTYPE.FT_REF)
521
if (expr.Type is
NullType
&& dest.FundamentalType != FUNDTYPE.FT_REF)
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
227
public static ExprConstant CreateNull() => CreateConstant(
NullType
.Instance, default);
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (2)
96
if (!(_typeSrc is
NullType
))
309
if (_typeSrc is
NullType
)
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (1)
245
!(pType is
NullType
) && !(pType is VoidType) && !(pType is MethodGroupType);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (9)
473
if (info.type1 is NullableType && info.type2 is
NullType
)
478
if (info.type1 is
NullType
&& info.type2 is NullableType)
952
if (type1 is
NullType
&& type2 is
NullType
)
977
if (type2 is
NullType
)
993
if (type1 is
NullType
)
1545
if (arg.Type is
NullType
)
2094
if (nonNullableType1 is
NullType
)
2098
else if (nonNullableType2 is
NullType
)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolLoader.cs (1)
283
else if (pSource is
NullType
)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Constant.cs (1)
54
if (Type is
NullType
)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (5)
883
if (expr.Type is
NullType
)
1004
if (aatype1 is
NullType
|| aatype1 == fptype1 && (aatype2 == nubfptype2 || aatype2 is
NullType
))
1010
if (aatype2 is
NullType
|| aatype2 == fptype2 && (aatype1 == nubfptype1 || aatype1 is
NullType
))
Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullType.cs (1)
12
public static readonly
NullType
Instance = new NullType();