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

Executing PowerShell scripts from C#

HOW TO Use the NumericUpDown Control

Exposing Agile Software Development Myths