我的枚举包含以下值:
private enum PublishStatusses{ NotCompleted, Completed, Error };
我希望能够以用户友好的方式输出这些值. 我不需要能够再次从字符串变为值.
c# enums tostring
是否可以在运行时添加属性或在运行时更改属性的值?
.net c# attributes
c# ×2
.net ×1
attributes ×1
enums ×1
tostring ×1