Microsoft.AspNetCore.SignalR.Hubs.MethodExtensions.Matches C# (CSharp) Method

Matches() private method

private Matches ( this methodDescriptor, IList parameters ) : bool
methodDescriptor this
parameters IList
return 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