public static Type GetType(string name) { foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies ()) { Type t = a.GetType (name); if (t != null) return t; } throw new InvalidOperationException ("Type not found: " + name); }