using System;
namespace System.Collections.Specialized
{
/// Creates collections that ignore the case in strings.
// Token: 0x02000027 RID: 39
internal class CollectionsUtil
{
/// Creates a new case-insensitive instance of the class with the default initial capacity.
/// A new case-insensitive instance of the class with the default initial capacity.
///
///
///
// Token: 0x0600018F RID: 399 RVA: 0x00006CA8 File Offset: 0x00004EA8
public static Hashtable CreateCaseInsensitiveHashtable()
{
return new Hashtable(CaseInsensitiveHashCodeProvider.Default, CaseInsensitiveComparer.Default);
}
/// Copies the entries from the specified dictionary to a new case-insensitive instance of the class with the same initial capacity as the number of entries copied.
/// A new case-insensitive instance of the class containing the entries from the specified .
/// The to copy to a new case-insensitive .
///
/// is null.
// Token: 0x06000190 RID: 400 RVA: 0x00006CBC File Offset: 0x00004EBC
public static Hashtable CreateCaseInsensitiveHashtable(IDictionary d)
{
return new Hashtable(d, CaseInsensitiveHashCodeProvider.Default, CaseInsensitiveComparer.Default);
}
/// Creates a new case-insensitive instance of the class with the specified initial capacity.
/// A new case-insensitive instance of the class with the specified initial capacity.
/// The approximate number of entries that the can initially contain.
///
/// is less than zero.
// Token: 0x06000191 RID: 401 RVA: 0x00006CD0 File Offset: 0x00004ED0
public static Hashtable CreateCaseInsensitiveHashtable(int capacity)
{
return new Hashtable(capacity, CaseInsensitiveHashCodeProvider.Default, CaseInsensitiveComparer.Default);
}
/// Creates a new instance of the class that ignores the case of strings.
/// A new instance of the class that ignores the case of strings.
// Token: 0x06000192 RID: 402 RVA: 0x00006CE4 File Offset: 0x00004EE4
public static SortedList CreateCaseInsensitiveSortedList()
{
return new SortedList(CaseInsensitiveComparer.Default);
}
}
}