<PackageReference Include="NUnit" Version="4.3.1" />

StringSyntaxAttribute

Specifies the syntax used in a string.
public const string CompositeFormat = "CompositeFormat"

The syntax identifier for strings containing composite formats for string formatting.

public const string DateOnlyFormat = "DateOnlyFormat"

The syntax identifier for strings containing date format specifiers.

public const string DateTimeFormat = "DateTimeFormat"

The syntax identifier for strings containing date and time format specifiers.

public const string EnumFormat = "EnumFormat"

The syntax identifier for strings containing Enum format specifiers.

public const string GuidFormat = "GuidFormat"

The syntax identifier for strings containing Guid format specifiers.

public const string Json = "Json"

The syntax identifier for strings containing JavaScript Object Notation (JSON).

public const string NumericFormat = "NumericFormat"

The syntax identifier for strings containing numeric format specifiers.

public const string Regex = "Regex"

The syntax identifier for strings containing regular expressions.

public const string TimeOnlyFormat = "TimeOnlyFormat"

The syntax identifier for strings containing time format specifiers.

public const string TimeSpanFormat = "TimeSpanFormat"

The syntax identifier for strings containing TimeSpan format specifiers.

public const string Uri = "Uri"

The syntax identifier for strings containing URIs.

public const string Xml = "Xml"

The syntax identifier for strings containing XML.

public object[] Arguments { get; }

Gets optional arguments associated with the specific syntax employed.

public string Syntax { get; }

Gets the identifier of the syntax used.

public StringSyntaxAttribute(string syntax)

Initializes a new instance of the StringSyntaxAttribute class with the identifier of the syntax used.

public StringSyntaxAttribute(string syntax, object[] arguments)

Initializes a new instance of the StringSyntaxAttribute class with the identifier of the syntax used.