What's difference between VB.Net Enum and C# Enum?

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

Both declaration is same but only one difference is that,in VB.Net,we do not use COMMA(,) inside ENUM but in case of C#,we provide COMMA(,) in between values.
For Example:-
public enum DateFormatStyle 

{
Rounded,
Truncated
};

Public Enum DateFormatStyle
Rounded
Truncated
End Enum


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response