Namespaces

Types

Type CollectionHelper

Namespace NHibernate.Util

Methods

Fields

Public instance methods

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

string ToString()

Parameters
return string

Public static methods

bool CollectionEquals(ICollection c1, ICollection c2)

Parameters
return bool
ICollection c1
ICollection c2

Hashtable CreateCaseInsensitiveHashtable()

Creates a Hashtable that uses case-insensitive string comparison associated with invariant culture.
This is different from the method in CollectionsUtil in that the latter uses the current culture and is thus vulnerable to the "Turkish I" problem.
Parameters
return Hashtable

Hashtable CreateCaseInsensitiveHashtable(IDictionary dictionary)

Creates a Hashtable that uses case-insensitive string comparison associated with invariant culture.
This is different from the method in CollectionsUtil in that the latter uses the current culture and is thus vulnerable to the "Turkish I" problem.
Parameters
return Hashtable
IDictionary dictionary

bool DictionaryEquals(IDictionary a, IDictionary b)

Parameters
return bool
IDictionary a
IDictionary b

int GetHashCode(ICollection coll)

Computes a hash code for .
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.
Parameters
return int
ICollection coll

bool SetEquals(ISet a, ISet b)

Parameters
return bool
ISet a
ISet b

Public fields

IDictionary EmptyMap

return IDictionary

ICollection EmptyCollection

return ICollection