Int32 notation vs. int

This not work.
public  enum MyEnum : Int32
{
    AEnum = 0
}


This works.
public enum MyEnum : int
{
    AEnum = 0
}

because....
  • Int32 is class  
  • enum expected only type int,long etc..which are designed.
  • int is c# data type and Int32 is .net data type.

Comments

Popular posts from this blog

How to convert filr into arrary of byte and save again it in file.

How to debug Windows services in Visual Studio?

Auto generate change scripts in SQL Server Management Studio SSMS for tables