예제 #1
0
        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);
        }
예제 #2
0
        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);
        }