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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas N <andreas@mono-cvs.ximian.com>2003-07-10 18:13:55 +0400
committerAndreas N <andreas@mono-cvs.ximian.com>2003-07-10 18:13:55 +0400
commit9f4c4a035f29bc1a8324978a84ae081f71ab3ceb (patch)
tree9b0491b8a4633a3fb1f977b8eb1ab0521eddd50e /mcs/class/System/System.Collections.Specialized
parent4709afd8eef1ee22726b0d4b13d365fdd6c4ee0d (diff)
2003-07-09 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* NameObjectCollectionBase.cs: Fixed signature to be CLSCompliant, changed/corrected header * StringCollection.cs: Improved implementation (should perform better) svn path=/trunk/mcs/; revision=16092
Diffstat (limited to 'mcs/class/System/System.Collections.Specialized')
-rwxr-xr-xmcs/class/System/System.Collections.Specialized/ChangeLog6
-rw-r--r--mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs17
-rwxr-xr-xmcs/class/System/System.Collections.Specialized/StringCollection.cs3
3 files changed, 17 insertions, 9 deletions
diff --git a/mcs/class/System/System.Collections.Specialized/ChangeLog b/mcs/class/System/System.Collections.Specialized/ChangeLog
index 4cdc4842688..304b1ef81ea 100755
--- a/mcs/class/System/System.Collections.Specialized/ChangeLog
+++ b/mcs/class/System/System.Collections.Specialized/ChangeLog
@@ -1,4 +1,10 @@
+2003-07-09 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+ * NameObjectCollectionBase.cs: Fixed signature to be CLSCompliant, changed/corrected header
+ * StringCollection.cs: Improved implementation (should perform better)
+
2003-07-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
* BitVector32.cs: Implemented missing method
* NameValueCollection.cs: Fixed public signature, Styleguidelined header
* StringDictionary.cs: Added missing attribute, fixed visibilities
diff --git a/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs b/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs
index 09b4d952988..8e862c3edce 100644
--- a/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs
+++ b/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs
@@ -1,8 +1,11 @@
-/**
- * System.Collections.Specialized.NamaValueCollection class implementation
- *
- * Author: Gleb Novodran
- */
+//
+// System.Collections.Specialized.NameObjectCollectionBase.cs
+//
+// Author:
+// Gleb Novodran
+//
+// (C) Ximian, Inc. http://www.ximian.com
+//
using System;
using System.Collections;
@@ -32,7 +35,7 @@ namespace System.Collections.Specialized
get {return m_hashprovider;}
}
- internal protected /*?*/ class _Item
+ internal class _Item
{
public string key;
public object value;
@@ -46,7 +49,7 @@ namespace System.Collections.Specialized
/// Implements IEnumerable interface for KeysCollection
/// </summary>
[Serializable]
- internal protected /*?*/ class _KeysEnumerator : IEnumerator
+ internal class _KeysEnumerator : IEnumerator
{
private NameObjectCollectionBase m_collection;
private int m_position;
diff --git a/mcs/class/System/System.Collections.Specialized/StringCollection.cs b/mcs/class/System/System.Collections.Specialized/StringCollection.cs
index 1ae2e729ab3..8edb67a0cd2 100755
--- a/mcs/class/System/System.Collections.Specialized/StringCollection.cs
+++ b/mcs/class/System/System.Collections.Specialized/StringCollection.cs
@@ -43,8 +43,7 @@ namespace System.Collections.Specialized {
if (value == null)
throw new ArgumentNullException ("value");
- foreach (string s in value)
- Add(s);
+ strings.AddRange (value);
}
public void Clear () {