示例#1
0
        public static IDictionary GetRegistry(BuiltinEnums e)
        {
            Type t = builtins[(int)e];

            Console.WriteLine("getting builtin enum " + t);
            FieldInfo f = t.GetField("Registry", BindingFlags.Static | BindingFlags.NonPublic);

            if (f != null)
            {
                Console.WriteLine("found registry");
                Console.WriteLine(f.GetValue(null));
                return(f.GetValue(null) as IDictionary);
            }
            return(null);
        }
示例#2
0
 public Expand(BuiltinEnums builtin)
 {
     BuiltinItems = builtin;
 }