When implemented by a class, compare two instances of the class mapped by this IType for persistence "equality" - ie. Equality of persistent state.

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

Syntax

Visual Basic (Declaration)
Function Equals ( _
	x As Object, _
	y As Object _
) As Boolean
C#
bool Equals(
	Object x,
	Object y
)
Visual C++
bool Equals(
	Object^ x, 
	Object^ y
)
JavaScript
function equals(x, y);

Parameters

x
Type: System..::.Object
The left hand side object.
y
Type: System..::.Object
The right hand side object.

Return Value

True if the two objects contain the same values.

See Also