How to declare new type
c#, types
Solution
Amazing that people want to close this as not a real question!
The answer is that C# does not have a type system that supports checking integer ranges at compile time, except for a few built-in cases: it stops you assigning larger-range numbers to smaller-range numbers. But the ranges for those numbers are pre-defined in the language specification.
Problem
How to create new type in c#? For example byte has range 0 to 255, but I need new type which would have 0 to 10 range.