/// <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); }
public string GetDirective(string name) => Directives.TryGetValue(name, out string value) ? value : null;