Example #1
0
        /// <summary>
        /// Finds command schema by name.
        /// </summary>
        public DirectiveSchema?TryFindDirective(string directiveName)
        {
            if (string.IsNullOrWhiteSpace(directiveName))
            {
                return(null);
            }

            Directives.TryGetValue(directiveName, out DirectiveSchema? value);

            return(value);
        }
Example #2
0
 public string GetDirective(string name) => Directives.TryGetValue(name, out string value) ? value : null;