What would the folowing VB.NET enum definition look like in C#?
Public Enum SomeEnum As Integer
<Description("Name One")> NameOne = 1
End Enum
What would the folowing VB.NET enum definition look like in C#?
Public Enum SomeEnum As Integer
<Description("Name One")> NameOne = 1
End Enum
Try the following
enum SomeEnum
{
[Description("Name One")] NameOne = 1
}
public enum SomeEnum : int
{
[Description("Name One")]
NameOne = 1
}
public enum SomeEnum: int
{
[Description("Name One")]
NameOne = 1,
}
Like this:-
public enum SomeEnum
{
[Description("Name One")]
NameOne = 1;
}