public static MethodInfo FindOverLoadMethod(string name, int parameterLenth) { MethodInfo method = null; foreach (var DecalredMethod in methods) { if (DecalredMethod.GetParameters().Length == parameterLenth && DecalredMethod.Name == name) { method = DecalredMethod; break; } } return(method); }
public static MethodInfo FindOverLoadMethod(MethodInfo[] methodInfo, string name, int parameterLenth) { MethodInfo method = null; foreach (var DecalredMethod in methodInfo) { if (debug) { Log.Info($"Method name: {DecalredMethod.Name}"); } if (DecalredMethod.GetParameters().Length == parameterLenth && DecalredMethod.Name == name) { method = DecalredMethod; break; } } return(method); }