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
}