void AddMethod (MethodInfo method_info) { if (method_info.Id >= methods.Length) { StackItem[] grow = new StackItem [((method_info.Id / 10) + 1) * 10]; methods.CopyTo (grow, 0); methods = grow; } ClassItem class_item = classes [method_info.ClassId]; string name = class_item.Name + "." + method_info.Name; string provider = class_item.Assembly.BaseName; methods [method_info.Id] = new StackItem (name, provider, method_info.IsWrapper); }
void AddFunction (uint id, string name, string provider) { if (id >= functions.Length) { StackItem[] grow = new StackItem [((id / 10) + 1) * 10]; functions.CopyTo (grow, 0); functions = grow; } functions [id] = new StackItem (name, provider); }