public static Type GetTypeByFullName(string type) { foreach (var t in RFXMLSerializer.GetKnownTypes(null)) { if (t.FullName == type) { return(t); } } /* * foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies()) * { * if (!a.FullName.Contains("IKVM")) * { * foreach (Type t in a.GetTypes()) * { * if (t.FullName == type) * { * return t; * } * } * } * }*/ return(Type.GetType(type)); }
public static IEnumerable <Type> GetKnownTypes() { return(RFXMLSerializer.GetKnownTypes(null)); }