8 implementations of IValueSetFactory
Microsoft.CodeAnalysis.CSharp (8)
Utilities\ValueSetFactory.BoolValueSetFactory.cs (1)
18private sealed class BoolValueSetFactory : IValueSetFactory<bool>
Utilities\ValueSetFactory.DecimalValueSetFactory.cs (1)
11private sealed class DecimalValueSetFactory : IValueSetFactory<decimal>, IValueSetFactory
Utilities\ValueSetFactory.EnumeratedValueSetFactory.cs (1)
17private sealed class EnumeratedValueSetFactory<T> : IValueSetFactory<T> where T : notnull
Utilities\ValueSetFactory.FloatingValueSetFactory.cs (1)
11private sealed class FloatingValueSetFactory<TFloating> : IValueSetFactory<TFloating>
Utilities\ValueSetFactory.NintValueSetFactory.cs (1)
13private sealed class NintValueSetFactory : IValueSetFactory<int>, IValueSetFactory
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (1)
14private sealed class NonNegativeIntValueSetFactory : IValueSetFactory<int>
Utilities\ValueSetFactory.NuintValueSetFactory.cs (1)
13private sealed class NuintValueSetFactory : IValueSetFactory<uint>, IValueSetFactory
Utilities\ValueSetFactory.NumericValueSetFactory.cs (1)
19private struct NumericValueSetFactory<T> : IValueSetFactory<T>
24 references to IValueSetFactory
Microsoft.CodeAnalysis.CSharp (24)
Binder\DecisionDagBuilder.cs (1)
2228var fac = ValueSetFactory.ForLength;
Utilities\IValueSet.cs (4)
19/// Return the intersection of this value set with another. Both must have been created with the same <see cref="IValueSetFactory{T}"/>. 24/// Return this union of this value set with another. Both must have been created with the same <see cref="IValueSetFactory{T}"/>. 68/// Return the intersection of this value set with another. Both must have been created with the same <see cref="IValueSetFactory{T}"/>. 73/// Return this union of this value set with another. Both must have been created with the same <see cref="IValueSetFactory{T}"/>.
Utilities\ValueSetFactory.cs (17)
14internal static readonly IValueSetFactory<byte> ForByte = new NumericValueSetFactory<byte>(ByteTC.Instance); 15internal static readonly IValueSetFactory<sbyte> ForSByte = new NumericValueSetFactory<sbyte>(SByteTC.Instance); 16internal static readonly IValueSetFactory<char> ForChar = new NumericValueSetFactory<char>(CharTC.Instance); 17internal static readonly IValueSetFactory<short> ForShort = new NumericValueSetFactory<short>(ShortTC.Instance); 18internal static readonly IValueSetFactory<ushort> ForUShort = new NumericValueSetFactory<ushort>(UShortTC.Instance); 19internal static readonly IValueSetFactory<int> ForInt = new NumericValueSetFactory<int>(IntTC.DefaultInstance); 20internal static readonly IValueSetFactory<uint> ForUInt = new NumericValueSetFactory<uint>(UIntTC.Instance); 21internal static readonly IValueSetFactory<long> ForLong = new NumericValueSetFactory<long>(LongTC.Instance); 22internal static readonly IValueSetFactory<ulong> ForULong = new NumericValueSetFactory<ulong>(ULongTC.Instance); 23internal static readonly IValueSetFactory<bool> ForBool = BoolValueSetFactory.Instance; 24internal static readonly IValueSetFactory<float> ForFloat = new FloatingValueSetFactory<float>(SingleTC.Instance); 25internal static readonly IValueSetFactory<double> ForDouble = new FloatingValueSetFactory<double>(DoubleTC.Instance); 26internal static readonly IValueSetFactory<string> ForString = new EnumeratedValueSetFactory<string>(StringTC.Instance); 27internal static readonly IValueSetFactory<decimal> ForDecimal = DecimalValueSetFactory.Instance; 28internal static readonly IValueSetFactory<int> ForNint = NintValueSetFactory.Instance; 29internal static readonly IValueSetFactory<uint> ForNuint = NuintValueSetFactory.Instance; 30internal static readonly IValueSetFactory<int> ForLength = NonNegativeIntValueSetFactory.Instance;
Utilities\ValueSetFactory.DecimalValueSetFactory.cs (1)
15private readonly IValueSetFactory<decimal> _underlying = new NumericValueSetFactory<decimal>(DecimalTC.Instance);
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (1)
17private static readonly IValueSetFactory<int> s_underlying = new NumericValueSetFactory<int>(IntTC.NonNegativeInstance);