In C# What's the difference between Int64 and long?

This question already has an answer here:

  • What is the difference between String and string in C#? 59 answers
  • What is 'long?' data type? 6 answers

  • There is no difference in the compiled code. They are aliases for the same thing.


    here is something more strange:

    Convert.ToInt64(27.5) = 28
    
    (int64)27.5 = 27
    

    I think, the difference is at cast and convert level rather than at datatype level.

    链接地址: http://www.djcxy.com/p/3604.html

    上一篇: c#:String类与字符串结构

    下一篇: 在C#中Int64和long有什么区别?