Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static public string GetResourceString(string sStringName)
- {
- System.Reflection.Assembly myDllAssembly = System.Reflection.Assembly.LoadFile(ResPath);
- string[] allResourcesinDLL = myDllAssembly.GetManifestResourceNames();
- ResourceManager ResInstance = new ResourceManager(allResourcesinDLL[0].Replace(".resources", string.Empty), myDllAssembly);
- return ResInstance.GetString(sStringName);
- }
Add Comment
Please, Sign In to add comment