Aperea.Commands.CommandDispatcher.GetValidators C# (CSharp) Метод

GetValidators() публичный Метод

public GetValidators ( ICommand command ) : IEnumerable
command ICommand
Результат IEnumerable
        public IEnumerable<ICommandValidator> GetValidators(ICommand command)
        {
            if (command == null) throw new ArgumentNullException("command");

            var validatorType = typeof (ICommandValidator<>).MakeGenericType(command.GetType());
            return locator.GetAllInstances(validatorType).Cast<ICommandValidator>();
        }