Microsoft.AspNetCore.SignalR.Hubs.MethodExtensions.Matches C# (CSharp) 메소드

Matches() 개인적인 메소드

private Matches ( this methodDescriptor, IList parameters ) : bool
methodDescriptor this
parameters IList
리턴 bool
        public static bool Matches(this MethodDescriptor methodDescriptor, IList<IJsonValue> parameters)
        {
            if (methodDescriptor == null)
            {
                throw new ArgumentNullException("methodDescriptor");
            }

            if ((methodDescriptor.Parameters.Count > 0 && parameters == null)
                || methodDescriptor.Parameters.Count != parameters.Count)
            {
                return false;
            }

            return true;
        }
    }
MethodExtensions