Ncqrs.Eventing.Sourcing.Mapping.AttributeBasedDomainSourcedEventHandlerMappingStrategy.NumberOfParameters C# (CSharp) Method

NumberOfParameters() private static method

private static NumberOfParameters ( MethodInfo target ) : int
target System.Reflection.MethodInfo
return int
        private static int NumberOfParameters(MethodInfo target)
        {
            Contract.Requires<ArgumentNullException>(target != null, "The target cannot be null.");

            return target.GetParameters().Count();
        }