CollectionsUtil.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / Collections / Specialized / CollectionsUtil.cs / 1 / CollectionsUtil.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

// Wrapper for a case insensitive Hashtable. 
 
namespace System.Collections.Specialized {
 
    using System.Collections;

    /// 
    ///    [To be supplied.] 
    /// 
    public class CollectionsUtil { 
 
        /// 
        ///    [To be supplied.] 
        /// 
        public static Hashtable CreateCaseInsensitiveHashtable()  {
            return new Hashtable(StringComparer.CurrentCultureIgnoreCase);
        } 

        ///  
        ///    [To be supplied.] 
        /// 
        public static Hashtable CreateCaseInsensitiveHashtable(int capacity)  { 
            return new Hashtable(capacity, StringComparer.CurrentCultureIgnoreCase);
        }

        ///  
        ///    [To be supplied.]
        ///  
        public static Hashtable CreateCaseInsensitiveHashtable(IDictionary d)  { 
            return new Hashtable(d, StringComparer.CurrentCultureIgnoreCase);
        } 

        /// 
        ///    [To be supplied.]
        ///  
        public static SortedList CreateCaseInsensitiveSortedList() {
            return new SortedList(CaseInsensitiveComparer.Default); 
        } 

    } 

}
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK