16 references to ConstVal
Microsoft.CSharp (16)
Microsoft\CSharp\RuntimeBinder\Semantics\ConstVal.cs (16)
112ConstValKind.Int => new ConstVal(s_zeroInt32), 113ConstValKind.Double => new ConstVal(0.0), 114ConstValKind.Long => new ConstVal(0L), 115ConstValKind.Decimal => new ConstVal(0M), 116ConstValKind.Float => new ConstVal(0F), 117ConstValKind.Boolean => new ConstVal(s_false), 121public static ConstVal Get(bool value) => new ConstVal(value ? s_true : s_false); 123public static ConstVal Get(int value) => new ConstVal(value == 0 ? s_zeroInt32 : value); 125public static ConstVal Get(uint value) => new ConstVal(value); 127public static ConstVal Get(decimal value) => new ConstVal(value); 129public static ConstVal Get(string value) => new ConstVal(value); 131public static ConstVal Get(float value) => new ConstVal(value); 133public static ConstVal Get(double value) => new ConstVal(value); 135public static ConstVal Get(long value) => new ConstVal(value); 137public static ConstVal Get(ulong value) => new ConstVal(value); 139public static ConstVal Get(object p) => new ConstVal(p);