Example #1
0
        /// <summary>
        /// Whether command has a directive.
        /// </summary>
        public bool HasDirective(string directive)
        {
            string v = directive.Trim('[', ']')
                       .ToLower();

            return(Directives.Where(x => x.Name == v)
                   .Any());
        }