I realize that this is essentially this question, but it's accepted answer just points to a link that doesn't seem to do what the asker requested (it doesn't start from ResourceManager/ResourceSet).
Is there any way to do this?
I realize that this is essentially this question, but it's accepted answer just points to a link that doesn't seem to do what the asker requested (it doesn't start from ResourceManager/ResourceSet).
Is there any way to do this?
To get the resource content use:
ResourceReader rr = new ResourceReader(Assembly.GetExecutingAssembly().GetManifestResourceStream("resourceName"););
IDictionaryEnumerator e = rr.GetEnumerator();
string resourceType;
byte[] resourceData;
while (e.MoveNext())
{
string keyName = (string)e.Key;
rr.GetResourceData(keyName, out resourceType, out resourceData);
}
The only thing I could currently think of, is if your read the .resx file with an xml reader.
From this article : GetManifestResourceStream returns NULL
string[] array = this.GetType().Assembly.GetManifestResourceNames();
string[] array2 = Assembly.GetExecutingAssembly().GetManifestResourceNames();
Will help you to get resource name.