Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between uint and System.UInt32?

Tags:

c#

.net

Is there a difference, or are they just aliases?

like image 206
Dimitri C. Avatar asked Jan 15 '10 11:01

Dimitri C.


3 Answers

Yes, they are aliases. Here's the full list.

like image 83
Anton Gogolev Avatar answered Oct 16 '22 10:10

Anton Gogolev


They are aliases but:

enum A : uint
{
    // This code compiles
}

enum A : UInt32
{
    // Compile error
}
like image 36
QrystaL Avatar answered Oct 16 '22 08:10

QrystaL


There is no difference they are aliasses.

like image 9
Henri Avatar answered Oct 16 '22 10:10

Henri