Hello.
I need make loop through all the resources in a resource file. But I don't know how do it
Please, help
You should use resouce manager
using System.Collections;
using System.Globalization;
using System.Resources;
ResourceSet resourceSet = MyResourceClass.ResourceManager.GetResourceSet(CultureInfo.CurrentUICulture, true, true);
foreach (DictionaryEntry entry in resourceSet)
{
string resourceKey = entry.Key;
object resource = entry.Value;
}
I hope it helped you
FavScripts.com is a free tool to save your favorite scripts and commands, then quickly find and copy-paste your commands with just few clicks.
Boost your productivity with FavScripts.com!