Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CollectionsUtil.cs « System.Collections.Specialized « System « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82d103134f1d4105b65a9cb05b1ee6f7c33038c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// System.Collections.Specialized.CollectionsUtil.cs
//
// Author:
//   Lawrence Pit (loz@cable.a2000.nl)
//

using System.Collections;

namespace System.Collections.Specialized {
	
	public class CollectionsUtil {
		
		public CollectionsUtil () {}
		
		public static Hashtable CreateCaseInsensitiveHashtable ()
		{
			return new Hashtable (CaseInsensitiveHashCodeProvider.Default, 
					      CaseInsensitiveComparer.Default);			
		}
		

		public static Hashtable CreateCaseInsensitiveHashtable (IDictionary d) {
			return new Hashtable (d, CaseInsensitiveHashCodeProvider.Default, 
						 CaseInsensitiveComparer.Default);
		}

		public static Hashtable CreateCaseInsensitiveHashtable (int capacity) {
			return new Hashtable (capacity, CaseInsensitiveHashCodeProvider.Default, 
							CaseInsensitiveComparer.Default);
		}


		public static SortedList CreateCaseInsensitiveSortedList () {
			return new SortedList (CaseInsensitiveComparer.Default);
		}
	}
}