I have namespace called "DataTransfer" inside of which I have a class called
"DataXfer". And also in this namespace I have a resource file called
"CabList.resx".
If I want to load a known resource then I can use this code:
ResourceManager resMgr = new ResourceManager("DataTransfer.CabList",
typeof(DataXfer).Assembly);
string txt = resMgr.GetString("abc");
But what I can't figure out is how to load the collection of resources in
this file if I don't know their name ahead of time. I followed some code I
found here:
http://msdn.microsoft.com/library/de...classtopic.asp
and tried this code:
IResourceReader reader = new ResourceReader("CabList.resx");
IDictionaryEnumerator en = reader.GetEnumerator();
But it didn't work. In fact, I tried every different form of this I could
think of but can't get it to work.
And I don't necessarily have to use ResourceReader! Just trying to find a
way to do what I described above.
--
Robert W.
Vancouver, BC
www.mwtech.com