AppHarbor.AliasMatcher.AliasMatcher C# (CSharp) Method

AliasMatcher() public method

public AliasMatcher ( IEnumerable candidateTypes ) : System
candidateTypes IEnumerable
return System
        public AliasMatcher(IEnumerable<Type> candidateTypes)
        {
            if (candidateTypes.Any(x => !x.GetCustomAttributes(true).OfType<CommandHelpAttribute>().Any()))
            {
                throw new ArgumentException("All candidate types must be decorated with CommandHelpAttribute");
            }
            _candidateTypes = candidateTypes;
        }