When implemented by a class, returns a deep copy of the persistent
state, stopping at entities and at collections.
Namespace:
NHibernate.TypeAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Overrides NotOverridable Function DeepCopy ( _ val As Object _ ) As Object |
C# |
---|
public override sealed Object DeepCopy( Object val ) |
Visual C++ |
---|
public: virtual Object^ DeepCopy( Object^ val ) override sealed |
JavaScript |
---|
function deepCopy(val); |
Parameters
- val
- Type: System..::.Object
A Collection element or Entity field
Return Value
A deep copy of the object.Implements
IType..::.DeepCopy(Object)
Remarks
This implemenation forwards the call to DeepCopyNotNull(Object) if the parameter value is not null.
It has been "sealed" because the Types inheriting from NullableType do not need and should not override this method. All of their implementation should be in DeepCopyNotNull(Object).