dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnetlib/System/Collections/Specialized ReadOnlyNam


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/System/Collections/Specialized ReadOnlyNameValueCollection.cs, NONE, 1.1
Date: Sun, 23 Nov 2003 05:14:31 +0000

Update of /cvsroot/dotgnu-pnet/pnetlib/System/Collections/Specialized
In directory subversions:/tmp/cvs-serv17645/System/Collections/Specialized

Added Files:
        ReadOnlyNameValueCollection.cs 
Log Message:


Implement most of the "System.Configuration" namespace.


--- NEW FILE: ReadOnlyNameValueCollection.cs ---
/*
 * ReadOnlyNameValueCollection.cs - Implementation of
 *              "System.Collections.Specialized.ReadOnlyNameValueCollection".
 *
 * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Collections.Specialized
{

#if !ECMA_COMPAT

internal class ReadOnlyNameValueCollection : NameValueCollection
{
        // Constructors.
        public ReadOnlyNameValueCollection(NameValueCollection col) : base(col) 
{}
        public ReadOnlyNameValueCollection()
                        : base(CaseInsensitiveHashCodeProvider.Default,
                                   CaseInsensitiveComparer.Default) {}

        // Make this collection read-only after it has been populated.
        public void MakeReadOnly()
                        {
                                IsReadOnly = true;
                        }

}; // class NameValueCollection

#endif // !ECMA_COMPAT

}; // namespace System.Collections.Specialized





reply via email to

[Prev in Thread] Current Thread [Next in Thread]