创建常量(从不在运行时更改)将strings 映射到ints 的最有效方法是什么?
string
int
我尝试过使用const词典,但是没有用.
我可以用适当的语义实现一个不可变的包装器,但这似乎仍然不完全正确.
对于那些曾经问过的人,我正在生成的类中实现IDataErrorInfo,并且正在寻找一种方法来将columnName查找到我的描述符数组中.
我没有意识到(测试时错字!d!哦!)开关接受字符串,这就是我要用的东西.谢谢!
.net c# collections dictionary constants
.net ×1
c# ×1
collections ×1
constants ×1
dictionary ×1