CollectionsUtil.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / Collections / Specialized / CollectionsUtil.cs / 1305376 / 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); 
        } 

    } 

}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     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); 
        } 

    } 

}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

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