How I can make loop through all the resources in a resource file?

0
=
0
+
0
No specific Bitcoin Bounty has been announced by author. Still, anyone could send Bitcoin Tips to those who provide a good answer.
1

Hello.

I need make loop through all the resources in a resource file. But I don't know how do it

Please, help

1 Answer

1
=
0
=
$0
Internet users could send Bitcoin Tips to you if they like your answer!

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

SEND BITCOIN TIPS
0

Too many commands? Learning new syntax?

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!

Post Answer