System.Globalization.NumberFormatInfo.ReadOnly Method

Returns a read-only System.Globalization.NumberFormatInfo wrapper.

Syntax

public static NumberFormatInfo ReadOnly (NumberFormatInfo nfi)

Parameters

nfi
The System.Globalization.NumberFormatInfo to wrap.

Returns

A read-only System.Globalization.NumberFormatInfo wrapper around nfi.

Exceptions

TypeReason
ArgumentNullException nfi is a null reference.

Remarks

This wrapper prevents any modifications to nfi.

Attempting to perform an assignment to a property of a read-only System.Globalization.NumberFormatInfo causes an InvalidOperationException.

Requirements

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