If you don’t need the full range of integer values, you can use the int.MaxValue
and int.MinValue
constants to represent infinities.
However, if the full range of values is required, I’d suggest either creating a wrapper class or simply going for doubles.