As already stated, int
= Int32
. To be safe, be sure to always use int.MinValue
/int.MaxValue
when implementing anything that cares about the data type boundaries. Suppose .NET decided that int
would now be Int64
, your code would be less dependent on the bounds.