如何在C#中使用Int64

问题很简单! 你如何在C#中表示64位int?

64位int很长

System.Int64是.net类型, 在C#中它也被称为long

带符号的64位整数很long ,unsigned是ulong

framwwork中的相应类型分别是System.Int64System.UInt64

例:

 long bigNumber = 9223372036854775807; 

通过使用long数据类型,或ulong为unsigned。

整数C#类型表