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