Ejemplo n.º 1
0
 internal virtual int get_next_table_index(object obj, int table, bool inc)
 {
     if (this is MethodBuilder)
     {
         MethodBuilder mb = (MethodBuilder)this;
         return(mb.get_next_table_index(obj, table, inc));
     }
     if (this is ConstructorBuilder)
     {
         ConstructorBuilder mb = (ConstructorBuilder)this;
         return(mb.get_next_table_index(obj, table, inc));
     }
     throw new Exception("Method is not a builder method");
 }
Ejemplo n.º 2
0
        internal virtual int get_next_table_index(object obj, int table, int count)
        {
#if !FULL_AOT_RUNTIME
            if (this is MethodBuilder)
            {
                MethodBuilder mb = (MethodBuilder)this;
                return(mb.get_next_table_index(obj, table, count));
            }
            if (this is ConstructorBuilder)
            {
                ConstructorBuilder mb = (ConstructorBuilder)this;
                return(mb.get_next_table_index(obj, table, count));
            }
#endif
            throw new Exception("Method is not a builder method");
        }