System.Globalization Namespace DateTimeFormatInfo Class
Creates a shallow copy of the DateTimeFormatInfo.
[ VB ]
NotOverridable Public Function Clone ( ) As Object Implements _
ICloneable.Clone
[ C# ]
public object Clone ( );
[ C++ ]
public: __sealed Object* Clone ( );
[ JScript ]
function Clone ( ) : Object;
A new DateTimeFormatInfo copied from the original DateTimeFormatInfo.
ICloneable.Clone
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.
DateTimeFormatInfo Members