在使用自己的设置枚举 [英] Using own enum in settings

查看:140
本文介绍了在使用自己的设置枚举的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用我自己的枚举在项目设置(从Visual Studio,菜单项目,属性选项卡中设置)。

I would like to use my own enum in a project setting (from Visual studio, menu project, properties, tab settings).

我可以选择很多默认类型的存在,但即使是在我的解决方案的其他项目类型,但不是项目itsself。

I can select a lot of default types there, but even types from other projects in my solution, but not the project itsself.

是否有可能从项目中使用枚举类型itsself的类型设置?

Is it possible to use an enumeration type from the project itsself as type for a setting?

推荐答案

是的,但它需要多一点摆弄的。请参见本文就如何实现它的指针。

Yes, but it takes a bit of twiddling. See this article for pointers on how to accomplish it.

这篇关于在使用自己的设置枚举的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆