12 implementations of ToConstantValue
Microsoft.CodeAnalysis.CSharp (12)
Utilities\ValueSetFactory.ByteTC.cs (1)
57
ConstantValue INumericTC<byte>.
ToConstantValue
(byte value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.CharTC.cs (1)
67
ConstantValue INumericTC<char>.
ToConstantValue
(char value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.DecimalTC.cs (1)
37
public ConstantValue
ToConstantValue
(decimal value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.DoubleTC.cs (1)
85
ConstantValue INumericTC<double>.
ToConstantValue
(double value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.IntTC.cs (1)
67
public ConstantValue
ToConstantValue
(int value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.LongTC.cs (1)
57
ConstantValue INumericTC<long>.
ToConstantValue
(long value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.SByteTC.cs (1)
56
public ConstantValue
ToConstantValue
(sbyte value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.ShortTC.cs (1)
57
ConstantValue INumericTC<short>.
ToConstantValue
(short value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.SingleTC.cs (1)
89
ConstantValue INumericTC<float>.
ToConstantValue
(float value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.UIntTC.cs (1)
51
public ConstantValue
ToConstantValue
(uint value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.ULongTC.cs (1)
57
ConstantValue INumericTC<ulong>.
ToConstantValue
(ulong value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.UShortTC.cs (1)
51
ConstantValue INumericTC<ushort>.
ToConstantValue
(ushort value) => ConstantValue.Create(value);
5 references to ToConstantValue
Microsoft.CodeAnalysis.CSharp (5)
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
66
return _tc.
ToConstantValue
(_tc.NaN);
Utilities\ValueSetFactory.FloatingValueSetFactory.cs (1)
32
return _tc.
ToConstantValue
(_tc.Random(random));
Utilities\ValueSetFactory.NumericValueSet.cs (2)
67
return _tc.
ToConstantValue
(t._intervals[0].first);
68
return _tc.
ToConstantValue
(this._intervals[this._intervals.Length - 1].last);
Utilities\ValueSetFactory.NumericValueSetFactory.cs (1)
60
return _tc.
ToConstantValue
(_tc.Random(random));