The CollectionsUtil Class

The System.Collections.Specialized namespace also contains the CollectionUtil class, which we think would be better located in the main System.Collections namespace. Static methods of this factory class create case-insensitive instances of the ArrayList and Hashtable classes discussed earlier. This is achieved by using case-insensitive implementations of the underlying hash code provider and comparer.

Get C# for Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.