2. then use int. MaxValue gets the maximum value of int and int. MinValue gets the minimum value of int in the Main method.
3, uint unsigned means that the value is only an integer without a negative number. Int is signed, which means there are both integers and negative numbers. In addition, the positive range of uint is twice that of int.
4. When the uint value is within the range of int, you can use the format of (int) variable to convert it into int value. This method is a cast, which is valid for numbers in the range.
5. When the uint value is outside the positive range of int, the format conversion of (int) variable will lead to data overflow, but the program will not report an error, and the converted value is not the desired result.
6. Add the checked keyword outside the converted code, and throw an exception when the conversion overflows to prevent overflow.