1 interface inheriting from INumericTC
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.FloatingTC.cs (1)
12
private interface FloatingTC<T> :
INumericTC
<T>
12 implementations of INumericTC
Microsoft.CodeAnalysis.CSharp (12)
Utilities\ValueSetFactory.ByteTC.cs (1)
15
private class ByteTC :
INumericTC
<byte>
Utilities\ValueSetFactory.CharTC.cs (1)
14
private class CharTC :
INumericTC
<char>
Utilities\ValueSetFactory.DecimalTC.cs (1)
15
private class DecimalTC :
INumericTC
<decimal>
Utilities\ValueSetFactory.DoubleTC.cs (1)
14
private class DoubleTC : FloatingTC<double>,
INumericTC
<double>
Utilities\ValueSetFactory.IntTC.cs (1)
15
private class IntTC :
INumericTC
<int>
Utilities\ValueSetFactory.LongTC.cs (1)
15
private class LongTC :
INumericTC
<long>
Utilities\ValueSetFactory.SByteTC.cs (1)
15
private class SByteTC :
INumericTC
<sbyte>
Utilities\ValueSetFactory.ShortTC.cs (1)
15
private class ShortTC :
INumericTC
<short>
Utilities\ValueSetFactory.SingleTC.cs (1)
14
private class SingleTC : FloatingTC<float>,
INumericTC
<float>
Utilities\ValueSetFactory.UIntTC.cs (1)
15
private class UIntTC :
INumericTC
<uint>
Utilities\ValueSetFactory.ULongTC.cs (1)
15
private class ULongTC :
INumericTC
<ulong>
Utilities\ValueSetFactory.UShortTC.cs (1)
15
private class UShortTC :
INumericTC
<ushort>
117 references to INumericTC
Microsoft.CodeAnalysis.CSharp (117)
Utilities\ValueSetFactory.ByteTC.cs (10)
19
byte
INumericTC
<byte>.MinValue => byte.MinValue;
21
byte
INumericTC
<byte>.MaxValue => byte.MaxValue;
23
byte
INumericTC
<byte>.Zero => 0;
25
bool
INumericTC
<byte>.Related(BinaryOperatorKind relation, byte left, byte right)
44
byte
INumericTC
<byte>.Next(byte value)
50
byte
INumericTC
<byte>.Prev(byte value)
56
byte
INumericTC
<byte>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (byte)0 : constantValue.ByteValue;
58
ConstantValue
INumericTC
<byte>.ToConstantValue(byte value) => ConstantValue.Create(value);
60
string
INumericTC
<byte>.ToString(byte value) => value.ToString(CultureInfo.InvariantCulture);
62
byte
INumericTC
<byte>.Random(Random random)
Utilities\ValueSetFactory.CharTC.cs (10)
18
char
INumericTC
<char>.MinValue => char.MinValue;
20
char
INumericTC
<char>.MaxValue => char.MaxValue;
22
char
INumericTC
<char>.Zero => (char)0;
24
bool
INumericTC
<char>.Related(BinaryOperatorKind relation, char left, char right)
43
char
INumericTC
<char>.Next(char value)
49
char
INumericTC
<char>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (char)0 : constantValue.CharValue;
51
string
INumericTC
<char>.ToString(char c)
58
char
INumericTC
<char>.Prev(char value)
64
char
INumericTC
<char>.Random(Random random)
69
ConstantValue
INumericTC
<char>.ToConstantValue(char value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.DecimalTC.cs (7)
29
decimal
INumericTC
<decimal>.MinValue => decimal.MinValue;
31
decimal
INumericTC
<decimal>.MaxValue => decimal.MaxValue;
33
decimal
INumericTC
<decimal>.Zero => 0M;
89
bool
INumericTC
<decimal>.Related(BinaryOperatorKind relation, decimal left, decimal right)
108
string
INumericTC
<decimal>.ToString(decimal value) => FormattableString.Invariant($"{value:G}");
110
decimal
INumericTC
<decimal>.Prev(decimal value)
117
INumericTC
<uint> uinttc = UIntTC.Instance;
Utilities\ValueSetFactory.DoubleTC.cs (9)
18
double
INumericTC
<double>.MinValue => double.NegativeInfinity;
20
double
INumericTC
<double>.MaxValue => double.PositiveInfinity;
24
double
INumericTC
<double>.Zero => 0.0;
64
bool
INumericTC
<double>.Related(BinaryOperatorKind relation, double left, double right)
83
double
INumericTC
<double>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0.0 : constantValue.DoubleValue;
85
ConstantValue
INumericTC
<double>.ToConstantValue(double value) => ConstantValue.Create(value);
90
string
INumericTC
<double>.ToString(double value) =>
96
double
INumericTC
<double>.Prev(double value)
101
double
INumericTC
<double>.Random(Random random)
Utilities\ValueSetFactory.IntTC.cs (5)
31
int
INumericTC
<int>.MaxValue => int.MaxValue;
33
int
INumericTC
<int>.Zero => 0;
54
int
INumericTC
<int>.Next(int value)
60
int
INumericTC
<int>.Prev(int value)
70
string
INumericTC
<int>.ToString(int value) => value.ToString(CultureInfo.InvariantCulture);
Utilities\ValueSetFactory.LongTC.cs (10)
19
long
INumericTC
<long>.MinValue => long.MinValue;
21
long
INumericTC
<long>.MaxValue => long.MaxValue;
23
long
INumericTC
<long>.Zero => 0;
25
bool
INumericTC
<long>.Related(BinaryOperatorKind relation, long left, long right)
44
long
INumericTC
<long>.Next(long value)
50
long
INumericTC
<long>.Prev(long value)
56
long
INumericTC
<long>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0L : constantValue.Int64Value;
58
ConstantValue
INumericTC
<long>.ToConstantValue(long value) => ConstantValue.Create(value);
60
string
INumericTC
<long>.ToString(long value) => value.ToString(CultureInfo.InvariantCulture);
62
long
INumericTC
<long>.Random(Random random)
Utilities\ValueSetFactory.NumericValueSet.cs (9)
25
private readonly
INumericTC
<T> _tc;
27
public static NumericValueSet<T> AllValues(
INumericTC
<T> tc) => new NumericValueSet<T>(tc.MinValue, tc.MaxValue, tc);
29
public static NumericValueSet<T> NoValues(
INumericTC
<T> tc) => new NumericValueSet<T>(ImmutableArray<(T first, T last)>.Empty, tc);
31
internal NumericValueSet(T first, T last,
INumericTC
<T> tc) : this(ImmutableArray.Create((first, last)), tc)
36
internal NumericValueSet(ImmutableArray<(T first, T last)> intervals,
INumericTC
<T> tc)
209
private static void Add(ArrayBuilder<(T first, T last)> builder, T first, T last,
INumericTC
<T> tc)
227
private static T Min(T a, T b,
INumericTC
<T> tc)
232
private static T Max(T a, T b,
INumericTC
<T> tc)
293
internal static IConstantValueSet<T> Random(int expectedSize, Random random,
INumericTC
<T> tc)
Utilities\ValueSetFactory.NumericValueSetFactory.cs (3)
17
/// <see cref="
INumericTC
{T}"/> that provides the primitives for that type.
21
private readonly
INumericTC
<T> _tc;
27
public NumericValueSetFactory(
INumericTC
<T> tc) { this._tc = tc; }
Utilities\ValueSetFactory.SByteTC.cs (9)
18
sbyte
INumericTC
<sbyte>.MinValue => sbyte.MinValue;
20
sbyte
INumericTC
<sbyte>.MaxValue => sbyte.MaxValue;
22
sbyte
INumericTC
<sbyte>.Zero => 0;
24
bool
INumericTC
<sbyte>.Related(BinaryOperatorKind relation, sbyte left, sbyte right)
43
sbyte
INumericTC
<sbyte>.Next(sbyte value)
49
sbyte
INumericTC
<sbyte>.Prev(sbyte value)
55
sbyte
INumericTC
<sbyte>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (sbyte)0 : constantValue.SByteValue;
59
string
INumericTC
<sbyte>.ToString(sbyte value) => value.ToString(CultureInfo.InvariantCulture);
61
sbyte
INumericTC
<sbyte>.Random(Random random)
Utilities\ValueSetFactory.ShortTC.cs (10)
19
short
INumericTC
<short>.MinValue => short.MinValue;
21
short
INumericTC
<short>.MaxValue => short.MaxValue;
23
short
INumericTC
<short>.Zero => 0;
25
bool
INumericTC
<short>.Related(BinaryOperatorKind relation, short left, short right)
44
short
INumericTC
<short>.Next(short value)
50
short
INumericTC
<short>.Prev(short value)
56
short
INumericTC
<short>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (short)0 : constantValue.Int16Value;
58
ConstantValue
INumericTC
<short>.ToConstantValue(short value) => ConstantValue.Create(value);
60
string
INumericTC
<short>.ToString(short value) => value.ToString(CultureInfo.InvariantCulture);
62
short
INumericTC
<short>.Random(Random random)
Utilities\ValueSetFactory.SingleTC.cs (9)
18
float
INumericTC
<float>.MinValue => float.NegativeInfinity;
20
float
INumericTC
<float>.MaxValue => float.PositiveInfinity;
24
float
INumericTC
<float>.Zero => 0;
68
bool
INumericTC
<float>.Related(BinaryOperatorKind relation, float left, float right)
87
float
INumericTC
<float>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0.0F : constantValue.SingleValue;
89
ConstantValue
INumericTC
<float>.ToConstantValue(float value) => ConstantValue.Create(value);
94
string
INumericTC
<float>.ToString(float value) =>
100
float
INumericTC
<float>.Prev(float value)
105
float
INumericTC
<float>.Random(Random random)
Utilities\ValueSetFactory.UIntTC.cs (6)
19
uint
INumericTC
<uint>.MinValue => uint.MinValue;
21
uint
INumericTC
<uint>.MaxValue => uint.MaxValue;
23
uint
INumericTC
<uint>.Zero => 0;
44
uint
INumericTC
<uint>.Next(uint value)
54
string
INumericTC
<uint>.ToString(uint value) => value.ToString(CultureInfo.InvariantCulture);
56
uint
INumericTC
<uint>.Prev(uint value)
Utilities\ValueSetFactory.ULongTC.cs (10)
19
ulong
INumericTC
<ulong>.MinValue => ulong.MinValue;
21
ulong
INumericTC
<ulong>.MaxValue => ulong.MaxValue;
23
ulong
INumericTC
<ulong>.Zero => 0;
25
bool
INumericTC
<ulong>.Related(BinaryOperatorKind relation, ulong left, ulong right)
44
ulong
INumericTC
<ulong>.Next(ulong value)
50
ulong
INumericTC
<ulong>.Prev(ulong value)
56
ulong
INumericTC
<ulong>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0UL : constantValue.UInt64Value;
58
ConstantValue
INumericTC
<ulong>.ToConstantValue(ulong value) => ConstantValue.Create(value);
60
string
INumericTC
<ulong>.ToString(ulong value) => value.ToString(CultureInfo.InvariantCulture);
62
ulong
INumericTC
<ulong>.Random(Random random)
Utilities\ValueSetFactory.UShortTC.cs (10)
19
ushort
INumericTC
<ushort>.MinValue => ushort.MinValue;
21
ushort
INumericTC
<ushort>.MaxValue => ushort.MaxValue;
23
ushort
INumericTC
<ushort>.Zero => 0;
25
bool
INumericTC
<ushort>.Related(BinaryOperatorKind relation, ushort left, ushort right)
44
ushort
INumericTC
<ushort>.Next(ushort value)
50
ushort
INumericTC
<ushort>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (ushort)0 : constantValue.UInt16Value;
52
ConstantValue
INumericTC
<ushort>.ToConstantValue(ushort value) => ConstantValue.Create(value);
54
string
INumericTC
<ushort>.ToString(ushort value) => value.ToString(CultureInfo.InvariantCulture);
56
ushort
INumericTC
<ushort>.Prev(ushort value)
62
ushort
INumericTC
<ushort>.Random(Random random)