Huh that's ironic ,while playing around today i wondered if a can Increase Int64.MaxValue on some way ,and just founded out that Int64.MaxValue isn't an Int64 but a Long .
Why is that ,does it mean if i store like Int64 myInt = Int64.MaxValue;
than myInt will be still an Int or it will become a Long ,what's the purpose of storing a Long Instead of Int64
at this Field .
In C#, Int64 Struct is used to represent 64-bit signed integer(also termed as long data type) starting from range -9,223,372,036,854,775,808 to +9, 223,372,036,854,775,807.
string. int64. A 64-bit signed integer. It has a minimum value of -9,223,372,036,854,775,808 and a maximum value of 9,223,372,036,854,775,807 (inclusive).
There is no difference in the compiled code. They are aliases for the same thing.
In C#, long is mapped to Int64. It is a value type and represent System. Int64 struct. It is signed and takes 64 bits.
Because Int64 and long are same type.
Int64 = long
Int32 = int
Int16 = short
long
is a synonym of Int64
Reference: http://msdn.microsoft.com/en-us/library/ctetwysk(v=VS.100).aspx
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