Welcome to the Treehouse Community
Looking to learn something new?
Ranvir Sahota9,844 Points
Is int an alias for Int32 or is Int32 an alias for int?
This MDN documentation https://msdn.microsoft.com/en-us/library/5kzh1b5w.aspx make out C# to be a reference. So is int an alias for int32 because it's shorter? But in the video, Jeremy states that int32 is an alias for int. Why make an alias that is longer? I don't understand why they would do that. I've read SO articles and they don't make any sense to me. What does the documentation mean by .NET Framework Type, does it add integer functions?
Steven Parker216,020 Points
The term int is a keyword that denotes the System.Int32 type.
This is as explained in your MSDN reference. I don't think it's an actual "alias" — I think it's a special-case keyword. When the documentation says ".NET Framework Type" they are just showing the full name and namespace of the type int stands for.
Likewise, I don't think int32 is an actual "alias" for int. I think what is meant when this is said is that it is another name that represents the same thing.