示例#1
0
 void tryMake(Type t)
 {
     if (t.BaseType == typeof(System.MulticastDelegate))
     {
         CodeGenerator cg = new CodeGenerator();
         cg.path = this.path;
         cg.Generate(t);
     }
 }
示例#2
0
        static bool Generate(Type t, string ns, string path)
        {
            if (t.IsInterface)
                return false;

            CodeGenerator cg = new CodeGenerator();
            cg.givenNamespace = ns;
            cg.path = path;
            return cg.Generate(t);
        }