/// <summary> /// Initializes a new instance of the class. /// </summary> public TagFormat(TagFormatType formatType, string format) { FormatType = formatType; Format = format ?? throw new ArgumentNullException(nameof(format)); EnumValues = null; }
/// <summary> /// Initializes a new instance of the class. /// </summary> public TagFormat(TagFormatType formatType, string[] enumValues) { FormatType = formatType; Format = ""; EnumValues = enumValues ?? throw new ArgumentNullException(nameof(enumValues)); }
/// <summary> /// Initializes a new instance of the class. /// </summary> public TagFormat(TagFormatType formatType) { FormatType = formatType; Format = ""; EnumValues = null; }