private Type getTypeByName(string className) { foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies()) { var t = a.GetType(className,false,true); if (t != null) return t; } return null; }