Creates a Hashtable that uses case-insensitive string comparison associated with invariant culture.

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

Syntax

C#
public static IDictionary<string, T> CreateCaseInsensitiveHashtable<T>(
	IDictionary<string, T> dictionary
)
Visual Basic
Public Shared Function CreateCaseInsensitiveHashtable(Of T) ( _
	dictionary As IDictionary(Of String, T) _
) As IDictionary(Of String, T)
Visual C++
public:
generic<typename T>
static IDictionary<String^, T>^ CreateCaseInsensitiveHashtable(
	IDictionary<String^, T>^ dictionary
)

Parameters

dictionary
Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, T>)>)>

[Missing <param name="dictionary"/> documentation for "M:NHibernate.Util.CollectionHelper.CreateCaseInsensitiveHashtable``1(System.Collections.Generic.IDictionary{System.String,``0})"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:NHibernate.Util.CollectionHelper.CreateCaseInsensitiveHashtable``1(System.Collections.Generic.IDictionary{System.String,``0})"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Util.CollectionHelper.CreateCaseInsensitiveHashtable``1(System.Collections.Generic.IDictionary{System.String,``0})"]

Remarks

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.

See Also