1 implementation of ToConstantValue
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.StringTC.cs (1)
44
ConstantValue IEquatableValueTC<string>.
ToConstantValue
(string value) => ConstantValue.Create(value);
5 references to ToConstantValue
Microsoft.CodeAnalysis.CSharp (5)
Utilities\ValueSetFactory.EnumeratedValueSet.cs (4)
54
return _tc.
ToConstantValue
(_membersIncludedOrExcluded.OrderBy(k => k).First());
59
return _tc.
ToConstantValue
((T)(object)"");
62
return _tc.
ToConstantValue
((T)(object)c.ToString());
70
return _tc.
ToConstantValue
(value);
Utilities\ValueSetFactory.EnumeratedValueSetFactory.cs (1)
60
return _tc.
ToConstantValue
(_tc.RandomValues(1, random, 100)[0]);