Am I blind or does the .NET Framework not provide any integer range class? That is, a type that will prevent the setting of a value beyond certain boundaries that are not the full range of the underlying data type. For example, an integer type that would limit its values ββfrom 1 to 100. Showing my age here, but back in '93, I remember that I used such things in Modula-2 (eeek!), But I did not see explicit support for the / language for him ever since.
Am I just missing something, or is it the case βis it so simple to make your own that the framework does not botherβ?
Greetings.
source
share