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
== Int16
ushort
== UInt16
int
== Int32
uint
== UInt32
long
== Int64
ulong
== UInt64
Both 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With