In C#, the keywords for built-in types are simply aliases for corresponding types in the System
namespace.
Generally, it makes no difference whether yo
The identifiers int
, string
, bool
, etc. are C# language aliases for the real types Int32
, String
, and Boolean
, respectively. It doesn't matter which you use, but when you're writing an API some people prefer to use the actual class types to the aliases.
Here's an MSDN article that lists the equivalents.