private static bool IndexIsNotReturnType(int index, MethodInfo target, ParameterInfo[] pi) { return pi.Length != index || (pi.Length == index && !target.IsStatic); }