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