I have the following method:
public class RangeFilter<T> : Filter<T> {
}
Is there a way to restrict T to the following types:
bool
byte, sbyte
char, string
decimal, double, float
int, uint, long, ulong
short, ushort
I have the following method:
public class RangeFilter<T> : Filter<T> {
}
Is there a way to restrict T to the following types:
bool
byte, sbyte
char, string
decimal, double, float
int, uint, long, ulong
short, ushort