Returns a deep copy of the persistent state.

Namespace:  NHibernate.Type
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Overrides NotOverridable Function DeepCopyNotNull ( _
	val As Object _
) As Object
C#
public override sealed Object DeepCopyNotNull(
	Object val
)
Visual C++
public:
virtual Object^ DeepCopyNotNull(
	Object^ val
) override sealed
JavaScript
function deepCopyNotNull(val);

Parameters

val
Type: System..::.Object
The value to deep copy.

Return Value

A deep copy of the object.

Remarks

A ValueType is considered immutable because a boxed version of the ValueType is being stored by NHibernate. So any changes made to it would require the ValueType to be unboxed and then reboxed.

See Also