Ways of defining Enum

Rajesh_Kumar
Posted by Rajesh_Kumar under C# category on | Points: 40 | Views : 520
1st way:-

public enum DB_Mode
{
New,
Edit,
Update
};


2nd way:-

public enum DB_Mode
{
New = 0,
Edit = 1,
Update = 2
};

Comments or Responses

Login to post response