GetHiddenParameterCount() static private method

static private GetHiddenParameterCount ( OverloadInfo method, SelfCallConvention callConvention ) : int
method Microsoft.Scripting.Actions.Calls.OverloadInfo
callConvention SelfCallConvention
return int
Ejemplo n.º 1
0
        private bool IsOverloadSignature(OverloadInfo /*!*/ method, Type /*!*/[] /*!*/ parameterTypes)
        {
            int firstInfo = RubyOverloadResolver.GetHiddenParameterCount(method, CallConvention);
            var infos     = method.Parameters;

            if (infos.Count - firstInfo != parameterTypes.Length)
            {
                return(false);
            }

            for (int i = 0; i < parameterTypes.Length; i++)
            {
                if (infos[firstInfo + i].ParameterType != parameterTypes[i])
                {
                    return(false);
                }
            }

            return(true);
        }