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 Use the NumericUpDown Control

How To Get IP & Locations details of client machine in asp.net

Get control name in Page_Load event after post back by any control