public string GetValue(string username, string password) { Type asstype = this.PluginAssembly.GetType("MainClass"); IInfoProvider i = (IInfoProvider)Activator.CreateInstance(asstype); return(i.GetValue()); }
public string GetValue() { if (valid) { Type asstype = PluginAssembly.GetType("MainClass"); IInfoProvider i = (IInfoProvider)Activator.CreateInstance(asstype); return(laststring = i.GetValue(username, password)); } return("Плагин неправильный"); }