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