System.Globalization.NumberFormatInfo.CurrencySymbol Property

Gets or sets the string to use as the currency symbol.

Syntax

public string CurrencySymbol { get; set; }

Value

A string containing the currency symbol.

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 string assigned to the NumberFormatInfo.CurrencySymbol property is included in the result string when a numeric value is formatted with the "C" standard numeric format specifier.

Requirements

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