IKVM.Internal.MethodWrapper.FromMethodOrConstructor C# (CSharp) Method

FromMethodOrConstructor() static private method

static private FromMethodOrConstructor ( object methodOrConstructor ) : MethodWrapper
methodOrConstructor object
return MethodWrapper
        internal static MethodWrapper FromMethodOrConstructor(object methodOrConstructor)
        {
            #if FIRST_PASS
            return null;
            #else
            java.lang.reflect.Method method = methodOrConstructor as java.lang.reflect.Method;
            if (method != null)
            {
                return TypeWrapper.FromClass(method.getDeclaringClass()).GetMethods()[method._slot()];
            }
            java.lang.reflect.Constructor constructor = (java.lang.reflect.Constructor)methodOrConstructor;
            return TypeWrapper.FromClass(constructor.getDeclaringClass()).GetMethods()[constructor._slot()];
            #endif
        }