System.Globalization.NumberFormatInfo.NegativeSign Property

Gets or sets the string that denotes that the associated number is negative.

Syntax

public string NegativeSign { get; set; }

Value

A string containing the symbol that indicates a value is negative.

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 culture-invariant value for this property is "-".

Requirements

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