Reputation: 22496
Is there a difference, or are they just aliases?
Upvotes: 11
Views: 15632
Reputation: 61
uint
is a C# data type and
System.UInt32
is a .Net data type(or the data types which CLR has).
The C# data type is translated in to .Net data type when the program is run. All the other programming languages'(that work in .Net) data types will be translated into equivalent .Net data types when run. All the data type of the programming languages including C# must adhere to CTS(Common Type System).
Upvotes: 6
Reputation: 4966
They are aliases but:
enum A : uint
{
// This code compiles
}
enum A : UInt32
{
// Compile error
}
Upvotes: 7
Reputation: 1460
It's just an alias: http://blogs.msdn.com/csharpfaq/archive/2004/03/12/88418.aspx
Upvotes: 2