Computes a hash code for coll.
Namespace:
NHibernate.UtilAssembly: 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); |
Parameters
- coll
- Type: System.Collections..::.ICollection
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.