1 interface inheriting from INumericTC
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.FloatingTC.cs (1)
12
private interface FloatingTC<T> :
INumericTC
<T>
13 implementations of INumericTC
Microsoft.CodeAnalysis.CSharp (13)
Utilities\ValueSetFactory.ByteTC.cs (1)
14
private struct ByteTC :
INumericTC
<byte>
Utilities\ValueSetFactory.CharTC.cs (1)
15
private struct CharTC :
INumericTC
<char>
Utilities\ValueSetFactory.DecimalTC.cs (1)
15
private struct DecimalTC :
INumericTC
<decimal>
Utilities\ValueSetFactory.DoubleTC.cs (1)
14
private struct DoubleTC : FloatingTC<double>,
INumericTC
<double>
Utilities\ValueSetFactory.IntTC.cs (1)
14
private struct IntTC :
INumericTC
<int>
Utilities\ValueSetFactory.LongTC.cs (1)
14
private struct LongTC :
INumericTC
<long>
Utilities\ValueSetFactory.NonNegativeIntTC.cs (1)
14
private struct NonNegativeIntTC :
INumericTC
<int>
Utilities\ValueSetFactory.SByteTC.cs (1)
14
private struct SByteTC :
INumericTC
<sbyte>
Utilities\ValueSetFactory.ShortTC.cs (1)
14
private struct ShortTC :
INumericTC
<short>
Utilities\ValueSetFactory.SingleTC.cs (1)
14
private struct SingleTC : FloatingTC<float>,
INumericTC
<float>
Utilities\ValueSetFactory.UIntTC.cs (1)
14
private struct UIntTC :
INumericTC
<uint>
Utilities\ValueSetFactory.ULongTC.cs (1)
14
private struct ULongTC :
INumericTC
<ulong>
Utilities\ValueSetFactory.UShortTC.cs (1)
14
private struct UShortTC :
INumericTC
<ushort>
115 references to INumericTC
Microsoft.CodeAnalysis.CSharp (115)
Utilities\ValueSetFactory.ByteTC.cs (10)
16
byte
INumericTC
<byte>.MinValue => byte.MinValue;
18
byte
INumericTC
<byte>.MaxValue => byte.MaxValue;
20
byte
INumericTC
<byte>.Zero => 0;
22
bool
INumericTC
<byte>.Related(BinaryOperatorKind relation, byte left, byte right)
41
byte
INumericTC
<byte>.Next(byte value)
47
byte
INumericTC
<byte>.Prev(byte value)
53
byte
INumericTC
<byte>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (byte)0 : constantValue.ByteValue;
55
ConstantValue
INumericTC
<byte>.ToConstantValue(byte value) => ConstantValue.Create(value);
57
string
INumericTC
<byte>.ToString(byte value) => value.ToString();
59
byte
INumericTC
<byte>.Random(Random random)
Utilities\ValueSetFactory.CharTC.cs (10)
17
char
INumericTC
<char>.MinValue => char.MinValue;
19
char
INumericTC
<char>.MaxValue => char.MaxValue;
21
char
INumericTC
<char>.Zero => (char)0;
23
bool
INumericTC
<char>.Related(BinaryOperatorKind relation, char left, char right)
42
char
INumericTC
<char>.Next(char value)
48
char
INumericTC
<char>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (char)0 : constantValue.CharValue;
50
string
INumericTC
<char>.ToString(char c)
55
char
INumericTC
<char>.Prev(char value)
61
char
INumericTC
<char>.Random(Random random)
66
ConstantValue
INumericTC
<char>.ToConstantValue(char value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.DecimalTC.cs (7)
27
decimal
INumericTC
<decimal>.MinValue => decimal.MinValue;
29
decimal
INumericTC
<decimal>.MaxValue => decimal.MaxValue;
31
decimal
INumericTC
<decimal>.Zero => 0M;
87
bool
INumericTC
<decimal>.Related(BinaryOperatorKind relation, decimal left, decimal right)
106
string
INumericTC
<decimal>.ToString(decimal value) => FormattableString.Invariant($"{value:G}");
108
decimal
INumericTC
<decimal>.Prev(decimal value)
115
INumericTC
<uint> uinttc = default(UIntTC);
Utilities\ValueSetFactory.DoubleTC.cs (9)
16
double
INumericTC
<double>.MinValue => double.NegativeInfinity;
18
double
INumericTC
<double>.MaxValue => double.PositiveInfinity;
22
double
INumericTC
<double>.Zero => 0.0;
62
bool
INumericTC
<double>.Related(BinaryOperatorKind relation, double left, double right)
81
double
INumericTC
<double>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0.0 : constantValue.DoubleValue;
83
ConstantValue
INumericTC
<double>.ToConstantValue(double value) => ConstantValue.Create(value);
88
string
INumericTC
<double>.ToString(double value) =>
94
double
INumericTC
<double>.Prev(double value)
99
double
INumericTC
<double>.Random(Random random)
Utilities\ValueSetFactory.IntTC.cs (6)
16
int
INumericTC
<int>.MinValue => int.MinValue;
18
int
INumericTC
<int>.MaxValue => int.MaxValue;
20
int
INumericTC
<int>.Zero => 0;
41
int
INumericTC
<int>.Next(int value)
47
int
INumericTC
<int>.Prev(int value)
57
string
INumericTC
<int>.ToString(int value) => value.ToString();
Utilities\ValueSetFactory.LongTC.cs (10)
16
long
INumericTC
<long>.MinValue => long.MinValue;
18
long
INumericTC
<long>.MaxValue => long.MaxValue;
20
long
INumericTC
<long>.Zero => 0;
22
bool
INumericTC
<long>.Related(BinaryOperatorKind relation, long left, long right)
41
long
INumericTC
<long>.Next(long value)
47
long
INumericTC
<long>.Prev(long value)
53
long
INumericTC
<long>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0L : constantValue.Int64Value;
55
ConstantValue
INumericTC
<long>.ToConstantValue(long value) => ConstantValue.Create(value);
57
string
INumericTC
<long>.ToString(long value) => value.ToString();
59
long
INumericTC
<long>.Random(Random random)
Utilities\ValueSetFactory.NonNegativeIntTC.cs (6)
16
int
INumericTC
<int>.MinValue => 0;
18
int
INumericTC
<int>.MaxValue => int.MaxValue;
20
int
INumericTC
<int>.Zero => 0;
41
int
INumericTC
<int>.Next(int value)
47
int
INumericTC
<int>.Prev(int value)
64
string
INumericTC
<int>.ToString(int value)
Utilities\ValueSetFactory.NumericValueSet.cs (1)
22
private sealed class NumericValueSet<T, TTC> : IValueSet<T> where TTC : struct,
INumericTC
<T>
Utilities\ValueSetFactory.NumericValueSetFactory.cs (2)
17
/// <see cref="
INumericTC
{T}"/> that provides the primitives for that type.
19
private sealed class NumericValueSetFactory<T, TTC> : IValueSetFactory<T> where TTC : struct,
INumericTC
<T>
Utilities\ValueSetFactory.SByteTC.cs (9)
16
sbyte
INumericTC
<sbyte>.MinValue => sbyte.MinValue;
18
sbyte
INumericTC
<sbyte>.MaxValue => sbyte.MaxValue;
20
sbyte
INumericTC
<sbyte>.Zero => 0;
22
bool
INumericTC
<sbyte>.Related(BinaryOperatorKind relation, sbyte left, sbyte right)
41
sbyte
INumericTC
<sbyte>.Next(sbyte value)
47
sbyte
INumericTC
<sbyte>.Prev(sbyte value)
53
sbyte
INumericTC
<sbyte>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (sbyte)0 : constantValue.SByteValue;
57
string
INumericTC
<sbyte>.ToString(sbyte value) => value.ToString();
59
sbyte
INumericTC
<sbyte>.Random(Random random)
Utilities\ValueSetFactory.ShortTC.cs (10)
16
short
INumericTC
<short>.MinValue => short.MinValue;
18
short
INumericTC
<short>.MaxValue => short.MaxValue;
20
short
INumericTC
<short>.Zero => 0;
22
bool
INumericTC
<short>.Related(BinaryOperatorKind relation, short left, short right)
41
short
INumericTC
<short>.Next(short value)
47
short
INumericTC
<short>.Prev(short value)
53
short
INumericTC
<short>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (short)0 : constantValue.Int16Value;
55
ConstantValue
INumericTC
<short>.ToConstantValue(short value) => ConstantValue.Create(value);
57
string
INumericTC
<short>.ToString(short value) => value.ToString();
59
short
INumericTC
<short>.Random(Random random)
Utilities\ValueSetFactory.SingleTC.cs (9)
16
float
INumericTC
<float>.MinValue => float.NegativeInfinity;
18
float
INumericTC
<float>.MaxValue => float.PositiveInfinity;
22
float
INumericTC
<float>.Zero => 0;
66
bool
INumericTC
<float>.Related(BinaryOperatorKind relation, float left, float right)
85
float
INumericTC
<float>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0.0F : constantValue.SingleValue;
87
ConstantValue
INumericTC
<float>.ToConstantValue(float value) => ConstantValue.Create(value);
92
string
INumericTC
<float>.ToString(float value) =>
98
float
INumericTC
<float>.Prev(float value)
103
float
INumericTC
<float>.Random(Random random)
Utilities\ValueSetFactory.UIntTC.cs (6)
16
uint
INumericTC
<uint>.MinValue => uint.MinValue;
18
uint
INumericTC
<uint>.MaxValue => uint.MaxValue;
20
uint
INumericTC
<uint>.Zero => 0;
41
uint
INumericTC
<uint>.Next(uint value)
51
string
INumericTC
<uint>.ToString(uint value) => value.ToString();
53
uint
INumericTC
<uint>.Prev(uint value)
Utilities\ValueSetFactory.ULongTC.cs (10)
16
ulong
INumericTC
<ulong>.MinValue => ulong.MinValue;
18
ulong
INumericTC
<ulong>.MaxValue => ulong.MaxValue;
20
ulong
INumericTC
<ulong>.Zero => 0;
22
bool
INumericTC
<ulong>.Related(BinaryOperatorKind relation, ulong left, ulong right)
41
ulong
INumericTC
<ulong>.Next(ulong value)
47
ulong
INumericTC
<ulong>.Prev(ulong value)
53
ulong
INumericTC
<ulong>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0UL : constantValue.UInt64Value;
55
ConstantValue
INumericTC
<ulong>.ToConstantValue(ulong value) => ConstantValue.Create(value);
57
string
INumericTC
<ulong>.ToString(ulong value) => value.ToString();
59
ulong
INumericTC
<ulong>.Random(Random random)
Utilities\ValueSetFactory.UShortTC.cs (10)
16
ushort
INumericTC
<ushort>.MinValue => ushort.MinValue;
18
ushort
INumericTC
<ushort>.MaxValue => ushort.MaxValue;
20
ushort
INumericTC
<ushort>.Zero => 0;
22
bool
INumericTC
<ushort>.Related(BinaryOperatorKind relation, ushort left, ushort right)
41
ushort
INumericTC
<ushort>.Next(ushort value)
47
ushort
INumericTC
<ushort>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (ushort)0 : constantValue.UInt16Value;
49
ConstantValue
INumericTC
<ushort>.ToConstantValue(ushort value) => ConstantValue.Create(value);
51
string
INumericTC
<ushort>.ToString(ushort value) => value.ToString();
53
ushort
INumericTC
<ushort>.Prev(ushort value)
59
ushort
INumericTC
<ushort>.Random(Random random)