I am doing some classification and I am not sure:
INT is a primitive datatype with keyword “int”
But I can use Int16,Int32 or Int64 – I know C# has its own names for them. But are those data types as well or it is still INT? And mainly, can we say “short” is a datatype or INT16 is a datatype?
Thanks 🙂
In C#, the following things are always true:
short==Int16ushort==UInt16int==Int32uint==UInt32long==Int64ulong==UInt64Both versions are data types. All of the above are integers of various lengths and signed-ness.
The main difference between the two versions (as far as I know) is what colour they are highlighted as in Visual Studio.