Possible Duplicate:
C# int, Int32 and enum's
It could be a rather basic / simpler question I am creating an enum in the following way.
Case 1 does compile perfectly. But Case 2 throws an error. To my understanding int and Int32 mean the same in C#.
Case 1
[Flags]
public enum MyEnum : int
{
Red = 0x1,
Green = 0x2,
Blue = 0x4
}
Case 2
[Flags]
public enum MyEnum : Int32
{
Red = 0x1,
Green = 0x2,
Blue = 0x4
}
What's the difference here and why C# doesn't compile the code when the enum's members are specified to be of Int32 type?