Thank you for your clarifications.
You can define such class, only it's better to make minimum and maximum parameters passed through a constructor, to make it at least a bit universal. Then you can define, say, conversion operators for different integer types (or just one), implicit
. In the implementation of these operator, you can define check up for the valid range. Please see:
Conversion Operators (C# Programming Guide)
Casting and Type Conversions (C# Programming Guide)
explicit (C# Reference)
implicit (C# Reference)
You can add some other operators if you need them, arithmetic for example, with the same kind of the value check.