int (C#)
int is the C# type for a whole number, such as 5, 0, or -42. It is a 32-bit signed integer, holding values from about -2.1 billion to 2.1 billion.
C#
int is the most common numeric type in C#. For larger whole numbers you can use long (64-bit), and for decimals you use double or decimal.
It is an alias for the System.Int32 type — both names refer to the exact same thing.
Examples
C#
int count = 10;
int sum = count + 5;
Console.WriteLine(sum);
Console.WriteLine(int.MaxValue);Output:
15
2147483647