System.Globalization.NumberFormatInfo.CurrencyGroupSeparator Property

Gets or sets the string that separates groups of digits to the left of the decimal in currency values.

Syntax

public string CurrencyGroupSeparator { get; set; }

Value

A string containing the group separator used in currency values.

Exceptions

TypeReason
ArgumentNullExceptionThe value specified for a set operation is a null reference.
InvalidOperationExceptionThe current instance is read-only and a set operation was attempted.

Remarks

The initial value of this property is derived from the settings in the Regional and Language item in Control Panel.

The NumberFormatInfo.CurrencyGroupSeparator property is used with the "C" standard format string to define the symbol that separates groups of integers. For more information, see Standard Numeric Format Strings.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0