diff options
author | Piers Haken <piers@mono-cvs.ximian.com> | 2002-05-08 17:21:13 +0400 |
---|---|---|
committer | Piers Haken <piers@mono-cvs.ximian.com> | 2002-05-08 17:21:13 +0400 |
commit | 9e63489461c89458c5793fd1b48040fdf2e4edba (patch) | |
tree | ec748201bf72e469a95bd0b471d3b16f1bed02a6 /mcs/class/System/System.Collections.Specialized | |
parent | 7a7c18e47c3b3a9eadf1761242def44747ca7981 (diff) |
Miscellaneous minor compliancy fixes:
* System/System/UriBuilder.cs: use visible EscapeString
* corlib/System.Reflection/ManifestResourceInfo.cs: constructor access, define fields
* corlib/System/Convert.cs: remove erroneous CLSCompliant attributes
* corlib/System/Math.cs: remove erroneous CLSCompliant attribute
Fix enum values:
* System/System.CodeDom/CodeBinaryOperatorType.cs
* System/System.Net.Sockets/ProtocolFamily.cs
* corlib/System.Globalization/CultureTypes.cs
* corlib/System.Reflection/FieldAttributes.cs
* corlib/System.Runtime.InteropServices/AssemblyRegistrationFlags.cs
* corlib/System.Security.Cryptography/CipherMode.cs
* corlib/System.Security.Cryptography/CspProviderFlags.cs
* corlib/System.Security.Cryptography/PaddingMode.cs
* corlib/System.Security.Permissions/IsolatedStorageContainment.cs
* corlib/System.Security.Permissions/ReflectionPermissionFlag.cs
* corlib/System.Security.Permissions/SecurityPermissionFlag.cs
* corlib/System.Security/PolicyLevelType.cs
* corlib/System.Security/SecurityZone.cs
* corlib/System/AttributeTargets.cs
* corlib/System/Environment.cs
Remove redundant overrides:
* corlib/System.Reflection.Emit/EnumBuilder.cs
* corlib/System.Reflection.Emit/TypeBuilder.cs
* corlib/System/MissingFieldException.cs
* corlib/System/MissingMemberException.cs
* corlib/System/MissingMethodException.cs
Fix visibility and access modifiers:
* System/System.CodeDom.Compiler/CodeGenerator.cs
* System/System.Collections.Specialized/NameObjectCollectionBase.cs
* System/System.Collections.Specialized/NameValueCollection.cs
* System/System.ComponentModel/EventDescriptor.cs
* System/System.ComponentModel/EventDescriptorCollection.cs
* System/System.Diagnostics/ProcessStartInfo.cs
* System/System.Net/DnsPermission.cs
* System/System.Net/SocketPermission.cs
* System/System/Uri.cs
* corlib/System.IO/StreamReader.cs
* corlib/System.IO/StringReader.cs
* corlib/System.IO/StringWriter.cs
* corlib/System.IO/TextWriter.cs
* corlib/System.Reflection.Emit/ConstructorBuilder.cs
* corlib/System.Reflection.Emit/MethodBuilder.cs
* corlib/System.Reflection.Emit/OpCodes.cs
* corlib/System.Reflection/Assembly.cs
* corlib/System.Runtime.Remoting.Messaging/ReturnMessage.cs
* corlib/System.Runtime.Serialization/SerializationException.cs
* corlib/System/Activator.cs
* corlib/System/Array.cs
* corlib/System/Boolean.cs
* corlib/System/Byte.cs
* corlib/System/Char.cs
* corlib/System/DateTime.cs
* corlib/System/DivideByZeroException.cs
* corlib/System/Double.cs
* corlib/System/Int16.cs
* corlib/System/Int32.cs
* corlib/System/Int64.cs
* corlib/System/SByte.cs
* corlib/System/Single.cs
* corlib/System/Type.cs
* corlib/System/UInt16.cs
* corlib/System/UInt32.cs
* corlib/System/UInt64.cs
Fix IDisposable, Dispose() mess
* corlib/System.IO/BinaryWriter.cs
* corlib/System.IO/BufferedStream.cs
* corlib/System.IO/FileStream.cs
* corlib/System.IO/MemoryStream.cs
* corlib/System.IO/Stream.cs
svn path=/trunk/mcs/; revision=4416
Diffstat (limited to 'mcs/class/System/System.Collections.Specialized')
-rw-r--r-- | mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs | 31 | ||||
-rw-r--r-- | mcs/class/System/System.Collections.Specialized/NameValueCollection.cs | 2 |
2 files changed, 15 insertions, 18 deletions
diff --git a/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs b/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs index d9406ba0e1a..b1dfeb76106 100644 --- a/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs +++ b/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs @@ -24,11 +24,11 @@ namespace System.Collections.Specialized private int m_defCapacity;
private bool m_readonly;
- internal protected IComparer Comparer {
+ internal IComparer Comparer {
get {return m_comparer;}
}
- internal protected IHashCodeProvider HashCodeProvider {
+ internal IHashCodeProvider HashCodeProvider {
get {return m_hashprovider;}
}
@@ -127,7 +127,7 @@ namespace System.Collections.Specialized /// <summary>
/// Gets the number of keys in the NameObjectCollectionBase.KeysCollection
/// </summary>
- public virtual int Count
+ public int Count
{
get{
return m_collection.Count;
@@ -247,11 +247,7 @@ namespace System.Collections.Specialized {
throw new Exception("Not implemented yet");
}
- public/*?*/ virtual void /*ISerializable*/ CopyTo(Array arr, int index)
- {
- throw new Exception("Not implemented yet");
- }
-
+
// ICollection
public virtual int Count
{
@@ -260,19 +256,20 @@ namespace System.Collections.Specialized //throw new Exception("Not implemented yet");
}
}
- public virtual bool IsSynchronized
+ bool ICollection.IsSynchronized
{
- get{
- throw new Exception("Not implemented yet");
- }
+ get { return false; }
}
- public virtual object SyncRoot
+ object ICollection.SyncRoot
{
- get
- {
- throw new Exception("Not implemented yet");
- }
+ get { return this; }
+ }
+
+ void ICollection.CopyTo (Array array, int index)
+ {
+ throw new NotImplementedException ();
}
+
// IDeserializationCallback
public virtual void OnDeserialization( object sender)
diff --git a/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs b/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs index ed12b672b17..cc9b5da98fc 100644 --- a/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs +++ b/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs @@ -210,7 +210,7 @@ namespace System.Collections.Specialized{ /// starting at the specified index of the target array.</summary> [MonoTODO] - override public void CopyTo( Array dest, int index ) + public void CopyTo( Array dest, int index ) { if (dest==null) throw new ArgumentNullException("Null argument - dest"); |