C # uses these keywords, such as long, int string, as aliases for .NET types.
int = System.Int32long = System.Int64string = System.String
The first argument for using these keywords is that it comes with a language, so use it when writing a language.
The second argument for using these keywords is that you do not need to install using System; above your code file.
Another advantage could be that someone could create a new type called Int64 and put it somewhere in your namespace (I know ... that would be crazy). If your old code uses the Int64 type, your old code may stop functioning. If your old code used long (an alias for System.Int64 ), it will work fine.
Martin Mulder Apr 22 '13 at 17:26 2013-04-22 17:26
source share