本文介绍了用描述定义C#枚举的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Public Enum SomeEnum As Integer
< Description(Name One)> NameOne = 1
End Enum
解决方案
public enum SomeEnum:int
{
[描述(Name One)]
NameOne = 1,
}
What would the folowing VB.NET enum definition look like in C#?
Public Enum SomeEnum As Integer
<Description("Name One")> NameOne = 1
End Enum
解决方案
public enum SomeEnum: int
{
[Description("Name One")]
NameOne = 1,
}
这篇关于用描述定义C#枚举的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!