Guest User

Untitled

a guest
Jan 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. static public string GetResourceString(string sStringName)
  2. {
  3. System.Reflection.Assembly myDllAssembly = System.Reflection.Assembly.LoadFile(ResPath);
  4. string[] allResourcesinDLL = myDllAssembly.GetManifestResourceNames();
  5. ResourceManager ResInstance = new ResourceManager(allResourcesinDLL[0].Replace(".resources", string.Empty), myDllAssembly);
  6.  
  7. return ResInstance.GetString(sStringName);
  8. }
Add Comment
Please, Sign In to add comment