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