How to fetch an Enum value directly by its Values?

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

We can directly write Enum_Name.Value as shown below:-
MessageBox.Show(Active_Inactive.Active);

MessageBox.Show(Active_Inactive.Inactive);


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response