How to define Enum in .Net?

 Posted by vishalneeraj-24503 on 8/5/2014 | Category: Visual Studio Interview questions | Views: 478 | Points: 40
Answer:

In C#,
public enum Active_Inactive

{
Active = 0,
Inactive = 1
}

In VB.Net
 Public Enum Active_Inactive

Active = 0
Inactive = 1
End Enum


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response