System.Globalization.NumberFormatInfo.NumberDecimalSeparator Property

Gets or sets the string to use as the decimal separator in numeric values.

Syntax

public string NumberDecimalSeparator { get; set; }

Value

A string containing the decimal separator.

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 NumberFormatInfo.NumberDecimalSeparator property is used with the "E", "F", "G", "N", and "R" standard format strings to define the symbol that separates integral from fractional digits. For more information, see Standard Numeric Format Strings.

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

Requirements

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