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

System.Globalization.DateTimeFormatInfo.Clone Method

Creates a copy of the current instance. [Edit]

public object Clone ()

Returns

A new System.Globalization.DateTimeFormatInfo instance with property values equal to the property values of the original System.Globalization.DateTimeFormatInfo instance. [Edit]

Remarks

The DateTimeFormatInfo.Clone method creates a new instance of the same type as the current instance, and then copies the contents of each of the current instance's non-static fields.

The new instance is not read-only, and its properties can be modified with user-defined patterns.

Note: This method is implemented to support the ICloneable interface.

[Edit]

Requirements

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