开发者

ASP.NET: Globalization/localization: Enumerating local resource objects

开发者 https://www.devze.com 2023-01-01 22:49 出处:网络
There\'s a function: this.GetLocalResourceObject() as string That takes a key and returns a localized string.

There's a function:

this.GetLocalResourceObject() as string

That takes a key and returns a localized string.

How can I enumerate all the local resource ob开发者_如何学运维jects/localized strings?

Something to do with the ResourceManager?


I believe you want a ResourceSet, which you can access through the GetResourceSet method on ResourceManager. A ResourceSet has a number of possible ways to enumerate it, iirc GetEnumerator might be the most immediately helpful.

0

精彩评论

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