IronPython.Runtime.Binding.SlotOrFunction.MatchesMethodSignature C# (CSharp) Method

MatchesMethodSignature() private static method

private static MatchesMethodSignature ( ParameterInfo pis, MethodBase mb ) : bool
pis System.Reflection.ParameterInfo
mb System.Reflection.MethodBase
return bool
        private static bool MatchesMethodSignature(ParameterInfo/*!*/[]/*!*/ pis, MethodBase/*!*/ mb) {
            ParameterInfo[] pis1 = mb.GetParameters();
            if (pis.Length == pis1.Length) {
                for (int i = 0; i < pis.Length; i++) {
                    if (pis[i].ParameterType != pis1[i].ParameterType) return false;
                }
                return true;
            } else {
                return false;
            }
        }
    }