Mono Class Library: System.Globalization.DateTimeFormatInfo Overview | Members

System.Globalization.DateTimeFormatInfo.ReadOnly Method

Returns a read-only copy of the specified instance of System.Globalization.DateTimeFormatInfo .

public static DateTimeFormatInfo ReadOnly (DateTimeFormatInfo dtfi)

Parameters

dtfi
The System.Globalization.DateTimeFormatInfo to copy.

Returns

A read-only instance of System.Globalization.DateTimeFormatInfo that is a copy of dtfi.

Exceptions

TypeReason
ArgumentNullExceptiondtfi is a null reference.

Remarks

Note: Use a read-only System.Globalization.DateTimeFormatInfo copy to prevent modifications to the specified instance.

Requirements

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