Export (0) Print
Expand All

DateTimeFormatInfo.Clone Method

Creates a shallow copy of the DateTimeFormatInfo.

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)

public Object Clone ()
public final Object Clone ()
public final function Clone () : Object

Return Value

A new DateTimeFormatInfo copied from the original DateTimeFormatInfo.

The clone is writable even if the original DateTimeFormatInfo is read-only; therefore, the properties of the clone can be modified with user-defined patterns.

A shallow copy of an object is a copy of the object only. If the object contains references to other objects, the shallow copy does not create copies of the referred objects. It refers to the original objects instead. In contrast, a deep copy of an object creates a copy of the object and a copy of everything directly or indirectly referenced by that object.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft