Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(C#)导出时将枚举定义中的标识名作为enum的description属性? #94

Open
Reekin opened this issue Nov 18, 2021 · 1 comment

Comments

@Reekin
Copy link

Reekin commented Nov 18, 2021

image
游戏中有不少地方需要做从枚举值到标识名的转换,这样可以避免再维护一张从枚举值到中文名的映射表。
另外,想了解一下为什么现在的注释是双斜杠加在枚举值后方而不是以///

的形式加在枚举值上方呢?前者无法在输入枚举值时提示注释内容

@Reekin Reekin changed the title 导出时将枚举定义中的标识名作为enum的description属性? (C#)导出时将枚举定义中的标识名作为enum的description属性? Nov 18, 2021
@davyxu
Copy link
Owner

davyxu commented Nov 18, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants