Пример #1
0
        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));
        }
Пример #2
0
 public static IEnumerable <Type> GetKnownTypes()
 {
     return(RFXMLSerializer.GetKnownTypes(null));
 }