Computes a hash code for coll.

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

Syntax

Visual Basic (Declaration)
Public Shared Function GetHashCode ( _
	coll As ICollection _
) As Integer
C#
public static int GetHashCode(
	ICollection coll
)
Visual C++
public:
static int GetHashCode(
	ICollection^ coll
)
JavaScript
NHibernate.Util.CollectionHelper.getHashCode = function(coll);

Remarks

The hash code is computed as the sum of hash codes of individual elements, so that the value is independent of the collection iteration order.

See Also