asp.net.ph

NumberFormatInfo.Clone Method

System.Globalization Namespace   NumberFormatInfo Class


Creates a shallow copy of the NumberFormatInfo.

[ VB ]
NotOverridable Public Function Clone ( ) As Object Implements _
   ICloneable.Clone

[ C# ]
public object Clone ( );

[ C++ ]
public: __sealed Object* Clone ( );

[ JScript ]
function Clone ( ) : Object;

Return Value

A new NumberFormatInfo copied from the original NumberFormatInfo.

Implements

ICloneable.Clone

Remarks

The clone is writable even if the original NumberFormatInfo 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 will not create copies of the referred objects. It will refer to the original objects instead. On the other hand, a deep copy of an object creates a copy of the object and a copy of everything directly or indirectly referenced by that object.

See Also

NumberFormatInfo Members Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note