Property Separator
Separator
Gets or sets a string containing a separator character with an optional leading and trailing space to be used for flags enumerations. Ignored for
non-flags enumerations. Defaults to ", " (comma followed by a space).
Declaration
public string Separator { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The separator must contain exactly one separator character with an optional leading and trailing space. The spaces are used for formatting when a value
is converted to a string, but the spaces are optional when parsing a string. The separator character cannot be a hyphen ('-').
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | A hyphen was used as the separator character. |