public static IntegrateProvider Instance(string applicationType, string configStr) { IntegrateProvider provider = Activator.CreateInstance(Type.GetType(applicationType)) as IntegrateProvider; provider.Init(configStr); return(provider); }
public static IntegrateProvider Instance(string applicationType, string configStr) { Type type = Type.GetType(applicationType); IntegrateProvider integrateProvider = Activator.CreateInstance(type) as IntegrateProvider; integrateProvider.Init(configStr); return(integrateProvider); }