I am writing a RationalNumber class in C# and would like to make it generic, but only allowing integers (int, byte, UInt32, my own BigInt class ...) as inputs - it doesn't make sense to have a rational number based on floats or even regular objects like Control.
However, it doesn't seem that I can filter out non-integer types when declaring the class.
Did I overlook something?