Boo.Lang.Runtime.MethodResolver.IsApplicableMethod C# (CSharp) Méthode

IsApplicableMethod() private méthode

private IsApplicableMethod ( MethodInfo method ) : CandidateMethod
method System.Reflection.MethodInfo
Résultat CandidateMethod
        private CandidateMethod IsApplicableMethod(MethodInfo method)
        {
            ParameterInfo[] parameters = method.GetParameters();
            bool varargs = IsVarArgs(parameters);
            if (!ValidArgumentCount(parameters, varargs)) return null;

            CandidateMethod candidateMethod = new CandidateMethod(method, _arguments.Length, varargs);
            if (CalculateCandidateScore(candidateMethod)) return candidateMethod;

            return null;
        }