Hi friends,
I am developing a Multi-Language windows application...
I have made two class libraries for German and English... and dynamically loading it in runtime using this script..
class Language
{
public static string title ;
public static LoadLanguage(string LangPath)
{
Assembly LAsm = Assembly.LoadFrom(LangPath);
Type LType = LAsm.GetType("Lang.MyLang");
dynamic LangDllClass = Activator.CreateInstance(LType);
title = LangDllClass.title;
}
}
The script is being called in main methode, and whenever a user changes the Language...
It works perfectly on first time load, but when I call the function again with different language dll path,,, it will not load the new dll, but The Only the Old dll will be there....
Eg: If I load English at the main methode, EVen if I change the Langauage to German, the dll wont be loaded, The Assembly will use the English only,,,
Please Help friends,,,, i am stuckk :(