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 create RSS Feed in Asp.Net

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

HOW TO Use the NumericUpDown Control