/// <summary> /// Перегружаем для отладки /// </summary> /// <returns></returns> public override string ToString() { return(DirectiveType.ToString()); }
/// <summary> /// Clear a directive of all values /// </summary> /// <param name="directiveType">The directive to clear</param> public void ClearDirective(DirectiveType directiveType) { this.ClearDirective(directiveType.ToString().ToLower()); }
/// <summary> /// Add one or more values to a directive /// </summary> /// <param name="directiveType">The directive to add to</param> /// <param name="values">The value(s) to add</param> /// <exception cref="ArgumentNullException">Values may not be empty</exception> public void AddDirective(DirectiveType directiveType, params String[] values) { this.AddDirective(directiveType.ToString().ToLower(), values.ToList <String>()); }
/// <summary> /// Remove one or more values from a directive /// </summary> /// <param name="directiveType">The directive to remove from</param> /// <param name="values">The value(s) to remove</param> /// <exception cref="ArgumentNullException">Values may not be empty</exception> public void RemoveDirectiveValues(DirectiveType directiveType, params String[] values) { this.RemoveDirectiveValue(directiveType.ToString().ToLower(), values.ToList <String>()); }
internal virtual Parser <DirectiveType> DirectiveDeclarator(DirectiveType type) => from start in Parse.Char('#') from keyword in Parse.String(type.ToString().ToLowerInvariant()) select type;