GetMethodAt() private method

private GetMethodAt ( IKVM.Reflection.Reader.TypeDefImpl owner, int index ) : MethodBase
owner IKVM.Reflection.Reader.TypeDefImpl
index int
return MethodBase
Example #1
0
        public override MethodBase[] __GetDeclaredMethods()
        {
            int method = module.TypeDef.records[index].MethodList - 1;
            int end    = module.TypeDef.records.Length > index + 1 ? module.TypeDef.records[index + 1].MethodList - 1 : module.MethodDef.records.Length;

            MethodBase[] methods = new MethodBase[end - method];
            for (int i = 0; method < end; method++, i++)
            {
                methods[i] = module.GetMethodAt(this, method);
            }
            return(methods);
        }