Can anyone tell me if there is a way with generics to limit a generic type argument T
to only:
Int16
Int32
There is no 'good' solution for this yet. However you can narrow the type argument significantly to rule out many missfits for your hypotetical 'INumeric' constraint as Haacked has shown above.
static bool IntegerFunction