A nice way to loop through all the resources in resx file in c#.

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;
}
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (8 + 7) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 16.09.2009
Views: 1972
Item date: 04.02.2009
Views: 1120
Item date: 06.02.2009
Views: 1318
Item date: 26.09.2009
Views: 1684
Item date: 10.04.2009
Views: 599
Item date: 04.02.2009
Views: 1537
Item date: 09.03.2009
Views: 922
Item date: 23.08.2009
Views: 2112
Item date: 05.02.2009
Views: 913
Item date: 13.05.2009
Views: 879