Possible Duplicate:
C#, int or Int32? Should I care?
Please any one let me know MSIL of System.Int32 and int will be same or different, If different then which one we should use.
Edit:
this won’t compile
public enum MyEnum : Int32
{
AEnum = 0
}
but this will
public enum MyEnum : int
{
AEnum = 0
}
intis an alias forSystem.Int32, they are completely the same.enumsonly take integral types as type, as this would be possible otherwise:This is according to C# spec, which states
With integral type specified as: