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)
15private 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)
15private class IntTC : INumericTC<int>
Utilities\ValueSetFactory.LongTC.cs (1)
15private class LongTC : INumericTC<long>
Utilities\ValueSetFactory.SByteTC.cs (1)
15private class SByteTC : INumericTC<sbyte>
Utilities\ValueSetFactory.ShortTC.cs (1)
15private class ShortTC : INumericTC<short>
Utilities\ValueSetFactory.SingleTC.cs (1)
14private class SingleTC : FloatingTC<float>, INumericTC<float>
Utilities\ValueSetFactory.UIntTC.cs (1)
15private class UIntTC : INumericTC<uint>
Utilities\ValueSetFactory.ULongTC.cs (1)
15private class ULongTC : INumericTC<ulong>
Utilities\ValueSetFactory.UShortTC.cs (1)
15private class UShortTC : INumericTC<ushort>
117 references to INumericTC
Microsoft.CodeAnalysis.CSharp (117)
Utilities\ValueSetFactory.ByteTC.cs (10)
19byte INumericTC<byte>.MinValue => byte.MinValue; 21byte INumericTC<byte>.MaxValue => byte.MaxValue; 23byte INumericTC<byte>.Zero => 0; 25bool INumericTC<byte>.Related(BinaryOperatorKind relation, byte left, byte right) 44byte INumericTC<byte>.Next(byte value) 50byte INumericTC<byte>.Prev(byte value) 56byte INumericTC<byte>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (byte)0 : constantValue.ByteValue; 58ConstantValue INumericTC<byte>.ToConstantValue(byte value) => ConstantValue.Create(value); 60string INumericTC<byte>.ToString(byte value) => value.ToString(CultureInfo.InvariantCulture); 62byte 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) 58char INumericTC<char>.Prev(char value) 64char INumericTC<char>.Random(Random random) 69ConstantValue 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)
31int INumericTC<int>.MaxValue => int.MaxValue; 33int INumericTC<int>.Zero => 0; 54int INumericTC<int>.Next(int value) 60int INumericTC<int>.Prev(int value) 70string INumericTC<int>.ToString(int value) => value.ToString(CultureInfo.InvariantCulture);
Utilities\ValueSetFactory.LongTC.cs (10)
19long INumericTC<long>.MinValue => long.MinValue; 21long INumericTC<long>.MaxValue => long.MaxValue; 23long INumericTC<long>.Zero => 0; 25bool INumericTC<long>.Related(BinaryOperatorKind relation, long left, long right) 44long INumericTC<long>.Next(long value) 50long INumericTC<long>.Prev(long value) 56long INumericTC<long>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0L : constantValue.Int64Value; 58ConstantValue INumericTC<long>.ToConstantValue(long value) => ConstantValue.Create(value); 60string INumericTC<long>.ToString(long value) => value.ToString(CultureInfo.InvariantCulture); 62long 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 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. 21private readonly INumericTC<T> _tc; 27public NumericValueSetFactory(INumericTC<T> tc) { this._tc = tc; }
Utilities\ValueSetFactory.SByteTC.cs (9)
18sbyte INumericTC<sbyte>.MinValue => sbyte.MinValue; 20sbyte INumericTC<sbyte>.MaxValue => sbyte.MaxValue; 22sbyte INumericTC<sbyte>.Zero => 0; 24bool INumericTC<sbyte>.Related(BinaryOperatorKind relation, sbyte left, sbyte right) 43sbyte INumericTC<sbyte>.Next(sbyte value) 49sbyte INumericTC<sbyte>.Prev(sbyte value) 55sbyte INumericTC<sbyte>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (sbyte)0 : constantValue.SByteValue; 59string INumericTC<sbyte>.ToString(sbyte value) => value.ToString(CultureInfo.InvariantCulture); 61sbyte INumericTC<sbyte>.Random(Random random)
Utilities\ValueSetFactory.ShortTC.cs (10)
19short INumericTC<short>.MinValue => short.MinValue; 21short INumericTC<short>.MaxValue => short.MaxValue; 23short INumericTC<short>.Zero => 0; 25bool INumericTC<short>.Related(BinaryOperatorKind relation, short left, short right) 44short INumericTC<short>.Next(short value) 50short INumericTC<short>.Prev(short value) 56short INumericTC<short>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (short)0 : constantValue.Int16Value; 58ConstantValue INumericTC<short>.ToConstantValue(short value) => ConstantValue.Create(value); 60string INumericTC<short>.ToString(short value) => value.ToString(CultureInfo.InvariantCulture); 62short 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)
19uint INumericTC<uint>.MinValue => uint.MinValue; 21uint INumericTC<uint>.MaxValue => uint.MaxValue; 23uint INumericTC<uint>.Zero => 0; 44uint INumericTC<uint>.Next(uint value) 54string INumericTC<uint>.ToString(uint value) => value.ToString(CultureInfo.InvariantCulture); 56uint INumericTC<uint>.Prev(uint value)
Utilities\ValueSetFactory.ULongTC.cs (10)
19ulong INumericTC<ulong>.MinValue => ulong.MinValue; 21ulong INumericTC<ulong>.MaxValue => ulong.MaxValue; 23ulong INumericTC<ulong>.Zero => 0; 25bool INumericTC<ulong>.Related(BinaryOperatorKind relation, ulong left, ulong right) 44ulong INumericTC<ulong>.Next(ulong value) 50ulong INumericTC<ulong>.Prev(ulong value) 56ulong INumericTC<ulong>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0UL : constantValue.UInt64Value; 58ConstantValue INumericTC<ulong>.ToConstantValue(ulong value) => ConstantValue.Create(value); 60string INumericTC<ulong>.ToString(ulong value) => value.ToString(CultureInfo.InvariantCulture); 62ulong INumericTC<ulong>.Random(Random random)
Utilities\ValueSetFactory.UShortTC.cs (10)
19ushort INumericTC<ushort>.MinValue => ushort.MinValue; 21ushort INumericTC<ushort>.MaxValue => ushort.MaxValue; 23ushort INumericTC<ushort>.Zero => 0; 25bool INumericTC<ushort>.Related(BinaryOperatorKind relation, ushort left, ushort right) 44ushort INumericTC<ushort>.Next(ushort value) 50ushort INumericTC<ushort>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (ushort)0 : constantValue.UInt16Value; 52ConstantValue INumericTC<ushort>.ToConstantValue(ushort value) => ConstantValue.Create(value); 54string INumericTC<ushort>.ToString(ushort value) => value.ToString(CultureInfo.InvariantCulture); 56ushort INumericTC<ushort>.Prev(ushort value) 62ushort INumericTC<ushort>.Random(Random random)