开发者

Pull dynamic string out of embedded RESX

开发者 https://www.devze.com 2022-12-26 04:51 出处:网络
I have a R开发者_运维技巧ESX resource file that I can retrieve the values out of using the strongly typed properties and assign to values in my Silverlight 3 app. However at runtime I need to generate

I have a R开发者_运维技巧ESX resource file that I can retrieve the values out of using the strongly typed properties and assign to values in my Silverlight 3 app. However at runtime I need to generate the lookup key based on some values to avoid a ton of if/switch statements. I'm trying to use the ResourceManager, but it doesn't like .resx files.

Searched far and wide... is this just not possible in SL3? Does anyone have another suggestion?


Couldn't you just use reflection on the strongly typed property class created by the resx generator?

0

精彩评论

暂无评论...
验证码 换一张
取 消