minor CLS conformance tweaks (visibility, virtual, abstract, sealed, etc...)
authorPiers Haken <piers@mono-cvs.ximian.com>
Wed, 3 Apr 2002 06:28:53 +0000 (06:28 -0000)
committerPiers Haken <piers@mono-cvs.ximian.com>
Wed, 3 Apr 2002 06:28:53 +0000 (06:28 -0000)
svn path=/trunk/mcs/; revision=3568

73 files changed:
mcs/class/System.XML/System.Xml.Schema/XmlSchemaCollectionEnumerator.cs
mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs
mcs/class/System.XML/System.Xml.XPath/XPathScanner.cs
mcs/class/System.XML/System.Xml/XmlCharacterData.cs
mcs/class/System.XML/System.Xml/XmlDocument.cs
mcs/class/System.XML/System.Xml/XmlElement.cs
mcs/class/System.XML/System.Xml/XmlNode.cs
mcs/class/System/System.ComponentModel/Container.cs
mcs/class/System/System.ComponentModel/DesignOnlyAttribute.cs
mcs/class/System/System.ComponentModel/EventHandlerList.cs
mcs/class/System/System.ComponentModel/MemberDescriptor.cs
mcs/class/System/System.Configuration/DictionarySectionHandler.cs
mcs/class/System/System.Configuration/SingleTagSectionHandler.cs
mcs/class/System/System.Diagnostics/FileVersionInfo.cs
mcs/class/System/System.Text.RegularExpressions/collections.cs
mcs/class/System/System.Text.RegularExpressions/match.cs
mcs/class/corlib/System.Collections/ArrayList.cs
mcs/class/corlib/System.Collections/BitArray.cs
mcs/class/corlib/System.Collections/CaseInsensitiveHashCodeProvider.cs
mcs/class/corlib/System.Collections/CollectionBase.cs
mcs/class/corlib/System.Collections/ReadOnlyCollectionBase.cs
mcs/class/corlib/System.Diagnostics.SymbolStore/SymLanguageVendor.cs
mcs/class/corlib/System.Globalization/HebrewCalendar.cs
mcs/class/corlib/System.Globalization/HijriCalendar.cs
mcs/class/corlib/System.Globalization/JulianCalendar.cs
mcs/class/corlib/System.IO/File.cs
mcs/class/corlib/System.IO/Path.cs
mcs/class/corlib/System.IO/StreamReader.cs
mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs
mcs/class/corlib/System.Reflection/Assembly.cs
mcs/class/corlib/System.Reflection/AssemblyName.cs
mcs/class/corlib/System.Reflection/FieldInfo.cs
mcs/class/corlib/System.Reflection/MonoField.cs
mcs/class/corlib/System.Reflection/TargetInvocationException.cs
mcs/class/corlib/System.Reflection/TargetParameterCountException.cs
mcs/class/corlib/System.Resources/ResourceReader.cs
mcs/class/corlib/System.Resources/ResourceSet.cs
mcs/class/corlib/System.Runtime.CompilerServices/IndexerNameAttribute.cs
mcs/class/corlib/System.Runtime.CompilerServices/MethodImplAttribute.cs
mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
mcs/class/corlib/System.Runtime.Remoting.Contexts/Context.cs
mcs/class/corlib/System.Runtime.Remoting.Contexts/ContextAttribute.cs
mcs/class/corlib/System.Runtime.Remoting.Messaging/AsyncResult.cs
mcs/class/corlib/System.Runtime.Remoting.Messaging/LogicalCallContext.cs
mcs/class/corlib/System.Runtime.Remoting.Messaging/ReturnMessage.cs
mcs/class/corlib/System.Runtime.Serialization/SerializationException.cs
mcs/class/corlib/System.Security.Cryptography/DESCryptoServiceProvider.cs
mcs/class/corlib/System.Security.Cryptography/FromBase64Transform.cs
mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs
mcs/class/corlib/System.Security.Cryptography/RijndaelManaged.cs
mcs/class/corlib/System.Security.Cryptography/SHA1CryptoServiceProvider.cs
mcs/class/corlib/System.Security.Cryptography/ToBase64Transform.cs
mcs/class/corlib/System.Security.Permissions/IsolatedStorageContainment.cs
mcs/class/corlib/System.Security.Permissions/IsolatedStoragePermissionAttribute.cs
mcs/class/corlib/System.Security.Policy/PolicyStatement.cs
mcs/class/corlib/System.Security.Principal/GenericIdentity.cs
mcs/class/corlib/System.Security.Principal/GenericPrincipal.cs
mcs/class/corlib/System.Security.Principal/WindowsAccountType.cs
mcs/class/corlib/System.Security.Principal/WindowsBuiltInRole.cs
mcs/class/corlib/System.Text/Encoding.cs
mcs/class/corlib/System/AttributeUsage.cs
mcs/class/corlib/System/BitConverter.cs
mcs/class/corlib/System/CLSCompliantAttribute.cs
mcs/class/corlib/System/ICustomFormatter.cs
mcs/class/corlib/System/IntPtr.cs
mcs/class/corlib/System/LoaderOptimizationAttribute.cs
mcs/class/corlib/System/MTAThreadAttribute.cs
mcs/class/corlib/System/NotFiniteNumberException.cs
mcs/class/corlib/System/ObsoleteAttribute.cs
mcs/class/corlib/System/STAThreadAttribute.cs
mcs/class/corlib/System/StackOverflowException.cs
mcs/class/corlib/System/Type.cs
mcs/class/corlib/System/TypeInitializationException.cs

index 9d15f4c8e1a4c7e3a45a3f2e9f8ab32a757988d8..3130c3094acde5f339481cd72caafe679bf7956f 100755 (executable)
@@ -9,7 +9,7 @@ namespace System.Xml.Schema
        /// <summary>\r
        /// Summary description for XmlSchemaCollectionEnumerator.\r
        /// </summary>\r
-       public class XmlSchemaCollectionEnumerator : IEnumerator\r
+       public sealed class XmlSchemaCollectionEnumerator : IEnumerator\r
        {\r
                private IDictionaryEnumerator xenum;\r
                internal XmlSchemaCollectionEnumerator(Hashtable htable)\r
index 2f66d42111926537cefa305826dfe880f8871a49..ca7b23025d5542472f5f69c737fa5c29be9e1131 100644 (file)
@@ -151,7 +151,7 @@ namespace System.Xml.XPath
 
                public abstract bool MoveToPrevious ();
 
-               public abstract bool MoveToRoot ();
+               public abstract void MoveToRoot ();
 
                [MonoTODO]
                public virtual XPathNodeIterator Select (string xpath)
index 0b7e1bc6cc549365a3f6f00e9446cfdb4d19f3f0..9142f5da1392b9c9da64a540420e844fb13cbe76 100644 (file)
@@ -67,7 +67,7 @@ namespace System.Xml.XPath
                VariableReference\r
        }\r
 \r
-       public class XPathScanner\r
+       public sealed class XPathScanner\r
        {\r
                private string xpath;\r
                private int index;\r
index 415211e51bc1a9201b64d4b9bedcb0a3e170418f..5fc8e20dbe7b5c23c15e93a30ef244433f7c68da 100644 (file)
@@ -39,7 +39,7 @@ namespace System.Xml
                        set { data = value; }
                }
 
-               public int Length {
+               public virtual int Length {
                        get { return data != null ? data.Length : 0; }
                }
 
index 67bd3eb03928bb9590f4de8e49d5611125be855d..0fd361d683f2585a7dd61f13131f8049427f6262 100644 (file)
@@ -133,7 +133,7 @@ namespace System.Xml
                }
 
                [MonoTODO]
-               public XmlResolver XmlResolver {
+               public virtual XmlResolver XmlResolver {
                        set { throw new NotImplementedException(); }
                }
 
index 9141ba48d212e1ef58645e78117f99e4808b43ad..41758ae7dd05993a9d3c79a4ab0d86b90a1db5cc 100644 (file)
@@ -249,7 +249,7 @@ namespace System.Xml
                }
 
                [MonoTODO]
-               public virtual void SetAttribute (string localName, string namespaceURI, string value)
+               public virtual string SetAttribute (string localName, string namespaceURI, string value)
                {
                        throw new NotImplementedException ();
                }
index 84d2572fd409d35a5aed0028580e932ad14abcf6..d25998638e6c797ef1c546526aab5ee30bc9c2bd 100644 (file)
@@ -311,25 +311,25 @@ namespace System.Xml
                }
 
                [MonoTODO]
-               public virtual XmlNodeList SelectNodes (string xpath)
+               public XmlNodeList SelectNodes (string xpath)
                {
                        throw new NotImplementedException ();
                }
 
                [MonoTODO]
-               public virtual XmlNodeList SelectNodes (string xpath, XmlNamespaceManager nsmgr)
+               public XmlNodeList SelectNodes (string xpath, XmlNamespaceManager nsmgr)
                {
                        throw new NotImplementedException ();
                }
 
                [MonoTODO]
-               public virtual XmlNode SelectSingleNode (string xpath)
+               public XmlNode SelectSingleNode (string xpath)
                {
                        throw new NotImplementedException ();
                }
 
                [MonoTODO]
-               public virtual XmlNode SelectSingleNode (string xpath, XmlNamespaceManager nsmgr)
+               public XmlNode SelectSingleNode (string xpath, XmlNamespaceManager nsmgr)
                {
                        throw new NotImplementedException ();
                }
index feccae0dcb62757e1f5999111f4e64661015d9e9..f1b6b58abb6685cb007e17b44ca697c89891b084 100644 (file)
@@ -120,7 +120,7 @@ namespace System.ComponentModel {
                        return new DefaultSite (name, component, this);
                }
 
-               public virtual void Dispose ()
+               public void Dispose ()
                {
                        Dispose (true);
                        GC.SuppressFinalize (this);
index 2cb9e77a6c88e74314d9c9883a07a9a63e96cf03..81b39db62f17116f6b955899d8ad6c39ef3ba47a 100755 (executable)
@@ -11,7 +11,7 @@
 namespace System.ComponentModel {
 
        [AttributeUsage (AttributeTargets.Property)]
-       public class DesignOnlyAttribute : Attribute {
+       public sealed class DesignOnlyAttribute : Attribute {
                bool design_only;
                
                public static readonly DesignOnlyAttribute No;
index 2c610702f40a2e658090bd885920610266e36bcc..dba45525db582c40e0e82ee2fdc8e99718706982 100644 (file)
@@ -19,7 +19,7 @@ namespace System.ComponentModel {
        // <remarks>
        //   Longer description
        // </remarks>
-       public class EventHandlerList : IDisposable {
+       public sealed class EventHandlerList : IDisposable {
                Hashtable table;
                
                public EventHandlerList ()
index 51cb853ffca5a90df6a0700b973ad902c6db1e00..2481bdffa7cf78edec5bb901ef630f3ea5002698 100755 (executable)
@@ -9,7 +9,7 @@
 
 namespace System.ComponentModel {
 
-       public class MemberDescriptor {
+       public abstract class MemberDescriptor {
                string name;
                Attribute [] attrs;
                
index 14eb65af6bcf4c359a2a9a3f8596a2121e9658ae..f48eea8f38a231cfede1190fd20f394b7ed94ac2 100644 (file)
@@ -39,7 +39,7 @@ namespace System.Configuration
                /// <param name="section">The XML node that contains the configuration information to be handled. section provides direct access to the XML contents of the configuration section.</param>\r
                /// <returns></returns>\r
                [MonoTODO]\r
-               public object Create(object parent, object context, XmlNode section)\r
+               public virtual object Create(object parent, object context, XmlNode section)\r
                {\r
                        //FIXME: Enter a meaningful error message\r
                        if(section == null)\r
index d01b3f893d28b210866d6ff8fd47afce0ef0259c..601ed10d82ab348f26e12ff2858a2f2144d25c93 100644 (file)
@@ -36,7 +36,7 @@ namespace System.Configuration
                /// <param name="section">The name of the configuration section.</param>
                /// <returns></returns>
                [MonoTODO]
-               public object Create(object parent, object context, XmlNode section)
+               public virtual object Create(object parent, object context, XmlNode section)
                {
                        //FIXME: I'm not quite sure how to implement 'parent' or 'context'.
                        //TODO: Add in proper Error Handling.
index 98c41c56e72dc0bbc2039e301f0a80201af55ec4..1dee15373deff49dfd96f2b60e156316a9c42bb6 100755 (executable)
@@ -10,7 +10,7 @@
 using System;
 
 namespace System.Diagnostics {
-       public class FileVersionInfo {
+       public sealed class FileVersionInfo {
                [MonoTODO]
                public string Comments {
                        get {
index 893ff1b3efbb5580ab2160bfa512ff75fa24f89b..6f2407990e0efcf1e367a44289270f5de839461f 100644 (file)
@@ -115,7 +115,7 @@ namespace System.Text.RegularExpressions {
        }\r
 \r
        public class MatchCollection : RegexCollectionBase, ICollection, IEnumerable {\r
-               public Match this[int i] {\r
+               public virtual Match this[int i] {\r
                        get { return (Match)list[i]; }\r
                }\r
 \r
index 5d41928ac512e28c889ff23565b0daafda05db4d..b2bc5dcca9d7b21a30547473e3c780baeb100cc0 100644 (file)
@@ -156,7 +156,7 @@ namespace System.Text.RegularExpressions {
                        return inner;   // FIXME need to sync on machine access\r
                }\r
                \r
-               public GroupCollection Groups {\r
+               public virtual GroupCollection Groups {\r
                        get { return groups; }\r
                }\r
 \r
index 1eda6da1adbb73efe7c1eb1f496f54486ab2f28e..71f8e8492ccfd386e393db982c93e08e008dc80a 100644 (file)
@@ -352,17 +352,17 @@ namespace System.Collections {
                                return new ArrayListEnumerator (start, num, data);
                        }
 \r
-                       public object Current {\r
+                       public virtual object Current {\r
                                get {\r
                                        return data [idx];\r
                                }\r
                        }\r
-                       public bool MoveNext() {\r
+                       public virtual bool MoveNext() {\r
                                if (++idx < start + num)\r
                                        return true;\r
                                return false;\r
                        }\r
-                       public void Reset() {\r
+                       public virtual void Reset() {\r
                                idx = start - 1;\r
                        }\r
                }\r
index fd01a42f3b8ab76e23d1f24a1b28e6d2086f4907..1fc6b156c0d35f9ef429ba6a77f98564d5811662 100644 (file)
@@ -4,7 +4,7 @@ namespace System.Collections
 {
   // do we really need to specify IEnumerable since ICollection extends it?
   [Serializable]
-  public class BitArray : ICollection, IEnumerable, ICloneable
+  public sealed class BitArray : ICollection, IEnumerable, ICloneable
   {
     private Int32[] m_array;
     private int m_length;
@@ -149,7 +149,7 @@ namespace System.Collections
     
 
     /* --- Public properties --- */
-    public virtual int Count
+    public int Count
     {
       get
       {
@@ -157,7 +157,7 @@ namespace System.Collections
       }
     }
 
-    public virtual bool IsReadOnly
+    public bool IsReadOnly
     {
       get
       {
@@ -165,7 +165,7 @@ namespace System.Collections
       }
     }
 
-    public virtual bool IsSynchronized
+    public bool IsSynchronized
     {
       get
       {
@@ -173,7 +173,7 @@ namespace System.Collections
       }
     }
 
-    public virtual bool this[int index]
+    public bool this[int index]
     {
       get
       {
@@ -186,7 +186,7 @@ namespace System.Collections
 
     }
 
-    public virtual int Length
+    public int Length
     {
       get
       {
@@ -216,7 +216,7 @@ namespace System.Collections
       }
     }
 
-    public virtual object SyncRoot
+    public object SyncRoot
     {
       get
       {
index 35d799881c407174c99826f23ea4cd880f56d785..109ae18a40b1b9aa48b8922b37146e171402d183 100644 (file)
@@ -57,7 +57,7 @@ namespace System.Collections {
                //\r
 \r
                [MonoTODO]\r
-               public virtual int GetHashCode (object obj)\r
+               public int GetHashCode (object obj)\r
                {\r
                        if (obj == null) {\r
                                throw new ArgumentNullException ("obj is null");\r
index cfa730ba9a8e4a959f75e07984b78a68eac74783..3d288f475dfd7bc9410600a23d5fc469d486d5bb 100644 (file)
@@ -18,16 +18,16 @@ namespace System.Collections {
                private System.Collections.ArrayList myList;\r
                \r
                // public instance properties\r
-               public virtual int Count { get { return InnerList.Count; } }\r
+               public int Count { get { return InnerList.Count; } }\r
                \r
                // Public Instance Methods\r
-               public virtual System.Collections.IEnumerator GetEnumerator() { return InnerList.GetEnumerator(); }\r
-               public virtual void Clear() { \r
+               public System.Collections.IEnumerator GetEnumerator() { return InnerList.GetEnumerator(); }\r
+               public void Clear() { \r
                        OnClear();\r
                        InnerList.Clear(); \r
                        OnClearComplete();\r
                }\r
-               public virtual void RemoveAt (int index) {\r
+               public void RemoveAt (int index) {\r
                        object objectToRemove;\r
                        objectToRemove = InnerList[index];\r
                        OnValidate(objectToRemove);\r
index 10f5a69a5d01c6ef05c966719c203857044e47aa..9aafb5ff282b7db3631d4fd1334bb25c8d6baeaa 100644 (file)
@@ -18,10 +18,10 @@ namespace System.Collections {
                private System.Collections.ArrayList myList;\r
                \r
                // public instance properties\r
-               public virtual int Count { get { return InnerList.Count; } }\r
+               public int Count { get { return InnerList.Count; } }\r
                \r
                // Public Instance Methods\r
-               public virtual System.Collections.IEnumerator GetEnumerator() { return InnerList.GetEnumerator(); }\r
+               public System.Collections.IEnumerator GetEnumerator() { return InnerList.GetEnumerator(); }\r
                \r
                // Protected Instance Constructors\r
                protected ReadOnlyCollectionBase() {\r
@@ -29,7 +29,7 @@ namespace System.Collections {
                }\r
                \r
                // Protected Instance Properties\r
-               protected virtual System.Collections.ArrayList InnerList {get { return this.myList; } }\r
+               protected System.Collections.ArrayList InnerList {get { return this.myList; } }\r
                \r
                // ICollection methods\r
                void ICollection.CopyTo(Array array, int index) {\r
index 3110f7a5c90f4e6f1b66ffd71e05613e38139a88..a9b439eb3e5df5b760a219d473ed6a381942758c 100644 (file)
@@ -16,6 +16,6 @@ namespace System.Diagnostics.SymbolStore
                }
 
                // Fields
-               public static Guid Microsoft;
+               public static readonly Guid Microsoft;
        }
 }
index ce9744ddf0d9f718e004ddfb8d1e784a7527da45..0162fd580bfe98058f223bd98d89c9e526cef4c5 100644 (file)
@@ -35,7 +35,7 @@ public class HebrewCalendar : Calendar {
        /// The era number for the Anno Mundi (A.M.) era, called
        /// plain HebrewEra.
        /// </summary>
-       public const int HebrewEra = 1;
+       public static readonly int HebrewEra = 1;
 
        /// <summary>
        /// The
index 836b92d9eefac69ac6d900f2ed13089b1535a6a9..9df3b005a3a005d3c30f4cc02c6c8758133b94e3 100644 (file)
@@ -43,7 +43,7 @@ public class HijriCalendar : Calendar {
        /// <summary>
        /// The era number for the Anno Hegirae (A.H.) era.
        /// </summary>
-       public const int HijriEra = 1;
+       public static readonly int HijriEra = 1;
 
        /// <summary>
        /// The minimum fixed day number supported by the Hijri calendar.
index 6b743903a0fb87d79691d2671cacec8b66ce4f1d..8d1c98f21c7bb818acc180852ac636e407ce1cd3 100644 (file)
@@ -34,7 +34,7 @@ public class JulianCalendar : Calendar {
        /// The era number for the Common Era (C.E.) or Anno Domini (A.D.)
        /// respective.
        /// </summary>
-       public const int JulianEra = 1;
+       public static readonly int JulianEra = 1;
 
        /// <value>Overridden. Gives the eras supported by the Julian
        /// calendar as an array of integers.
index f94f95f0679dc67634a89bc3376eea8f6300c7f2..7632041cc57c70adca03f64e4ee4779af37472b1 100644 (file)
@@ -140,7 +140,7 @@ namespace System.IO
                        return new StreamReader (path);\r
                }\r
 \r
-               public FileStream OpenWrite (string path)\r
+               public static FileStream OpenWrite (string path)\r
                {\r
                        return new FileStream(path, FileMode.OpenOrCreate, FileAccess.Write, FileShare.None);\r
                }\r
index ed4c4906d790b5ebb13d7a5d4081e2d4220ee1b7..46aa09454208a21c2c5e314aedd8a013f0104cc8 100644 (file)
@@ -14,7 +14,7 @@ using System;
 
 namespace System.IO
 {
-       public class Path
+       public sealed class Path
        {
                public static readonly char AltDirectorySeparatorChar;
                public static readonly char DirectorySeparatorChar;
index 3c0dd7d303724eaa9b013cea444c8f63ba1d1ebc..97125554e0862a76dd77abb17c92bcbdcf05284d 100644 (file)
@@ -90,7 +90,7 @@ namespace System.IO {
                        }\r
                }\r
 \r
-               public Encoding CurrentEncoding\r
+               public virtual Encoding CurrentEncoding\r
                {\r
                        get {\r
                                return internalEncoding;\r
index 00356ed88b1ab04bc10b852234e1c81fd13d8f61..5909a7b0b2ce3ee26d54c72c03941bb60552efb3 100644 (file)
@@ -303,7 +303,7 @@ namespace System.Reflection.Emit {
                        if (sym_writer != null)
                                scopes.Push (sym_writer.OpenScope (code_len));
                }
-               public virtual LocalBuilder DeclareLocal (Type localType) {
+               public LocalBuilder DeclareLocal (Type localType) {
                        LocalBuilder res = new LocalBuilder (module, localType);
                        if (locals != null) {
                                LocalBuilder[] new_l = new LocalBuilder [locals.Length + 1];
@@ -486,7 +486,7 @@ namespace System.Reflection.Emit {
                                cur_stack -= mparams.Length;
                }
                [CLSCompliant(false)]
-               public virtual void Emit (OpCode opcode, sbyte val) {
+               public void Emit (OpCode opcode, sbyte val) {
                        make_room (3);
                        ll_emit (opcode);
                        code [code_len++] = (byte)val;
@@ -577,7 +577,7 @@ namespace System.Reflection.Emit {
                public virtual void ThrowException (Type exceptionType) {
                        throw new NotImplementedException ();
                }
-               public virtual void UsingNamespace (String usingNamespace) {
+               public void UsingNamespace (String usingNamespace) {
                        throw new NotImplementedException ();
                }
 
index 9cde9cb50df1c6f3dbfd90362865853040e2c8ed..e053ec405e0204e4642ec8d506f3a21014c3ae93 100644 (file)
@@ -241,7 +241,7 @@ namespace System.Reflection {
                        throw new NotImplementedException ();
                }
 
-               public String[] GetManifestResourceNames ()
+               public virtual String[] GetManifestResourceNames ()
                {
                        throw new NotImplementedException ();
                }
@@ -256,7 +256,7 @@ namespace System.Reflection {
                        throw new NotImplementedException ();
                }
 
-               public ManifestResourceInfo GetManifestResourceInfo (String resourceName)
+               public virtual ManifestResourceInfo GetManifestResourceInfo (String resourceName)
                {
                        throw new NotImplementedException ();
                }
index 4349e7174d3466fb8d6f62ab3be01ec7b57af5bb..9387e1c157b698bfc5e5dab33649a6042c59f60f 100755 (executable)
@@ -15,7 +15,7 @@ using System.Runtime.Serialization;
 namespace System.Reflection {
 
        [Serializable]
-       public class AssemblyName  : ISerializable // ICloneable, , IDeserializationCallback
+       public sealed class AssemblyName  : ISerializable // ICloneable, , IDeserializationCallback
        {
                string name;
                string codebase;
@@ -33,7 +33,7 @@ namespace System.Reflection {
                        version = (Version)si.GetValue ("_Version", typeof (Version));
                }
 
-               public virtual string Name {
+               public string Name {
                        get {
                                return name;
                        }
@@ -42,7 +42,7 @@ namespace System.Reflection {
                        }
                }
 
-               public virtual string CodeBase {
+               public string CodeBase {
                        get {
                                return codebase;
                        }
@@ -52,7 +52,7 @@ namespace System.Reflection {
                        }
                }
 
-               public virtual Version Version {
+               public Version Version {
                        get {
                                return version;
                        }
index 10a3d30233a7804f8a12e712764defcde108a416..666581f4928dadb7fa7dae1eadf5b4b16f24db7e 100755 (executable)
@@ -46,10 +46,7 @@ namespace System.Reflection {
                        get {return (Attributes & FieldAttributes.InitOnly) != 0;}
                } 
 
-               [MonoTODO]
-               public virtual void SetValue (object obj, object val, BindingFlags invokeAttr, Binder binder,
-                                             CultureInfo culture) {
-               }
+               public abstract void SetValue (object obj, object val, BindingFlags invokeAttr, Binder binder, CultureInfo culture);
 
                [MonoTODO]
                public void SetValue( object obj, object value) {
index 109d9e0041384195d08faf1b7b120a65b410b254..1c427e141646d66539a84685f59c0466137e0edc 100755 (executable)
@@ -90,5 +90,10 @@ namespace System.Reflection {
                        MonoFieldInfo.get_field_info (this, out info);
                        return String.Format ("{0} {1}", info.type, info.name);
                }
+
+               [MonoTODO]
+               public override void SetValue (object obj, object val, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
+               {
+               }
        }
 }
index cad6426a8ba5247e3c3e1699b21dfe2cb4e9536a..0948d3897ad80fed6804a4c1ba82c1edf47a26eb 100644 (file)
@@ -7,7 +7,7 @@
 namespace System.Reflection
 {
        [Serializable]
-       public class TargetInvocationException : ApplicationException
+       public sealed class TargetInvocationException : ApplicationException
        {
                private TargetInvocationException () {}
        }
index 5ffd55cda68d7c30da1f95fbf8491962efe866e0..b138cd1d0b2d7aea65a5413897bea11f62743215 100644 (file)
@@ -12,7 +12,7 @@ using System.Globalization;
 namespace System.Reflection
 {
        [Serializable]
-       public class TargetParameterCountException : ApplicationException
+       public sealed class TargetParameterCountException : ApplicationException
        {
                public TargetParameterCountException ()
                        : base (Locale.GetText ("Number of parameter does not match expected count."))
index a0b31fe3944980156fe1f1e55f8e6ecda2689f68..6c2efa3fcf24e714d522eab9517709e5525def50 100644 (file)
@@ -194,7 +194,7 @@ namespace System.Resources
                                reader = readerToEnumerate;
                        }
 
-                       public DictionaryEntry Entry
+                       public virtual DictionaryEntry Entry
                        {
                                get {
                                        if (null == reader.stream)
@@ -209,7 +209,7 @@ namespace System.Resources
                                }
                        }
                        
-                       public object Key
+                       public virtual object Key
                        {
                                get { 
                                        if (null == reader.stream)
@@ -220,7 +220,7 @@ namespace System.Resources
                                }
                        }
                        
-                       public object Value
+                       public virtual object Value
                        {
                                get { 
                                        if (null == reader.stream)
@@ -231,7 +231,7 @@ namespace System.Resources
                                }
                        }
                        
-                       public object Current
+                       public virtual object Current
                        {
                                get {
                                        if (null == reader.stream)
@@ -242,7 +242,7 @@ namespace System.Resources
                                }
                        }
                        
-                       public bool MoveNext ()
+                       public virtual bool MoveNext ()
                        {
                                if (null == reader.stream)
                                        throw new InvalidOperationException("ResourceReader is closed.");
index 31054ca9219e9b72d6509fd17b22e55cba0993be..d96df5e5fa20e454c329d2455daa050fd3d5d59d 100644 (file)
@@ -15,10 +15,10 @@ namespace System.Resources
        [Serializable]
        public class ResourceSet : IDisposable
        {
-               
+
                protected IResourceReader Reader;
                protected Hashtable Table;
-               
+
                // Constructors
                protected ResourceSet () {}
                public ResourceSet (IResourceReader reader)
@@ -31,52 +31,52 @@ namespace System.Resources
                public ResourceSet (Stream stream)
                {
                        Reader = new ResourceReader (stream);
-                }
-                
-                public ResourceSet (String fileName)
-                {
-                        Reader = new ResourceReader (fileName);
-                }
-
-                public virtual void Close ()
-                {
-                           Dispose (true);
-                }
-
-                public void Dispose()
-                {
-                        Dispose (true);
-                }
-                        
-               protected void Dispose (bool disposing)
+               }
+
+               public ResourceSet (String fileName)
+               {
+                       Reader = new ResourceReader (fileName);
+               }
+
+               public virtual void Close ()
+               {
+                       Dispose (true);
+               }
+
+               public void Dispose()
+               {
+                       Dispose (true);
+               }
+
+               protected virtual void Dispose (bool disposing)
                {
                        if (disposing) {
                                Reader = null;
                                Table = null;
                        } 
                }
-                        
-                public virtual Type GetDefaultReader ()
-                {
-                        return (typeof (ResourceReader));
-                
-                public virtual Type GetDefaultWriter ()
-                {
-                        return (typeof (ResourceWriter));
-                }
-
-                public virtual object GetObject (string name)
-                {
-                        if (name == null)
-                                throw new ArgumentNullException ("The name parameter is null.");
-                        if (Reader == null)
-                                throw new InvalidOperationException ("The ResourceSet has been closed.");
-                        if (Table == null) {
-                                ReadResources ();
-                                return Table[name];
-                        } else 
-                                return Table[name];
-                }
+
+               public virtual Type GetDefaultReader ()
+               {
+                       return (typeof (ResourceReader));
+               } 
+               public virtual Type GetDefaultWriter ()
+               {
+                       return (typeof (ResourceWriter));
+               }
+
+               public virtual object GetObject (string name)
+               {
+                       if (name == null)
+                               throw new ArgumentNullException ("The name parameter is null.");
+                       if (Reader == null)
+                               throw new InvalidOperationException ("The ResourceSet has been closed.");
+                       if (Table == null) {
+                               ReadResources ();
+                               return Table[name];
+                       } else 
+                               return Table[name];
+               }
                public virtual object GetObject (string name, bool ignoreCase)
                {
                        if (name == null)
@@ -98,28 +98,28 @@ namespace System.Resources
 
                public virtual string GetString (string name)
                {
-                               Object o = GetObject (name);
-                               if (o is string)
-                                       return (string) o;
-                               return null;
+                       Object o = GetObject (name);
+                       if (o is string)
+                               return (string) o;
+                       return null;
                }
 
                public virtual string GetString (string name, bool ignoreCase)
-                {
-                        Object o = GetObject (name, ignoreCase);
-                        if (o is string)
-                                return (string) o;
-                        return null;
-                }
-               
+               {
+                       Object o = GetObject (name, ignoreCase);
+                       if (o is string)
+                               return (string) o;
+                       return null;
+               }
+
                protected virtual void ReadResources ()
                {
                        IDictionaryEnumerator i = Reader.GetEnumerator();
-                       
+
                        if (Table == null)
                                Table = new Hashtable ();
                        i.Reset ();
-                       
+
                        while (i.MoveNext ()) 
                                Table.Add (i.Key, i.Value);
                }
index 3eecb562c8249c42438ed90db732408acd61d7cd..cf61a66b979da8bfc7c3723f58d863658fc026d8 100755 (executable)
@@ -10,7 +10,7 @@
 namespace System.Runtime.CompilerServices {
 
        [AttributeUsage(AttributeTargets.Property, Inherited=false)] [Serializable]
-       public class IndexerNameAttribute : Attribute {
+       public sealed class IndexerNameAttribute : Attribute {
                public IndexerNameAttribute (string indexer_name)
                {
                }
index 1d22bae743187bf386c9213640288e84272f49a8..fd3e181bc95a895abe71a114227cc2e7072aebe6 100644 (file)
@@ -12,7 +12,7 @@ using System.Runtime.InteropServices;
 namespace System.Runtime.CompilerServices {
 
        [AttributeUsage(AttributeTargets.Method, Inherited=false)] [Serializable]
-       public class MethodImplAttribute : Attribute {
+       public sealed class MethodImplAttribute : Attribute {
                MethodImplOptions impl_options;
                
                public MethodImplAttribute ()
index 1c1bdf7d3a220b72d3a7c90e8d5b490dd48b8e29..cf596b9b07ca13c3e9bc640f7f832ecefad32e86 100644 (file)
@@ -8,7 +8,7 @@ using System.Runtime.CompilerServices;
 
 namespace System.Runtime.InteropServices
 {
-       class Marshal
+       sealed class Marshal
        {
                private Marshal () {}
 
index 3f2a0f327ab6f395757493ffac1fc6ff4747ab06..6a923ac52b271d702ab5ff9b7a27478eac54e429 100644 (file)
@@ -41,7 +41,7 @@ namespace System.Runtime.Remoting.Contexts {
                        }
                }
 
-               public IContextProperty GetProperty (string name)
+               public virtual IContextProperty GetProperty (string name)
                {
                        if (context_properties == null)
                                return null;
@@ -53,7 +53,7 @@ namespace System.Runtime.Remoting.Contexts {
                        return null;
                }
 
-               public void SetProperty (IContextProperty prop)
+               public virtual void SetProperty (IContextProperty prop)
                {
                        if (prop == null)
                                throw new ArgumentNullException ("IContextProperty");
index fc919bad1f2d8b26dc2c00f92399066d76908c11..46705c6683d1eb986f2542d3d8d4eeee64b9ddca 100644 (file)
@@ -54,7 +54,7 @@ namespace System.Runtime.Remoting.Contexts {
                /// <summary>
                ///    Adds the current context property to the IConstructionCallMessage
                /// </summary>
-               public void GetPropertiesForNewContext (IConstructionCallMessage msg)
+               public virtual void GetPropertiesForNewContext (IConstructionCallMessage msg)
                {
                        if (msg == null)
                                throw new ArgumentNullException ("IConstructionCallMessage");
@@ -68,7 +68,7 @@ namespace System.Runtime.Remoting.Contexts {
                //   True whether the context arguments satisfies the requirements
                //   of the current context.
                // </summary>
-               public bool IsContextOK (Context ctx, IConstructionCallMessage msg)
+               public virtual bool IsContextOK (Context ctx, IConstructionCallMessage msg)
                {
                        if (msg == null)
                                throw new ArgumentNullException ("IConstructionCallMessage");
@@ -88,7 +88,7 @@ namespace System.Runtime.Remoting.Contexts {
                        return true;
                }
 
-               public bool IsNewContextOK (Context ctx)
+               public virtual bool IsNewContextOK (Context ctx)
                {
                        return true;
                }
index 676c938b3077b2af3bae5684a8b5943888e1e6a9..10eb384e8469efd2ac7995f46f9e6a1697947d31 100644 (file)
@@ -25,28 +25,28 @@ public class AsyncResult : IAsyncResult {
        bool completed;
        bool endinvoke_called;
                
-       public object AsyncState
+       public virtual object AsyncState
        {
                get {
                        return async_state;
                }
        }
 
-       public WaitHandle AsyncWaitHandle
+       public virtual WaitHandle AsyncWaitHandle
        {
                get {
                        return handle;
                }
        }
 
-       public bool CompletedSynchronously
+       public virtual bool CompletedSynchronously
        {
                get {
                        return sync_completed;
                }
        }
 
-       public bool IsCompleted
+       public virtual bool IsCompleted
        {
                get {
                        return completed;
@@ -58,9 +58,12 @@ public class AsyncResult : IAsyncResult {
                get {
                        return endinvoke_called;
                }
+               set {
+                       endinvoke_called = value;
+               }
        }
                
-       public object AsyncDelegate
+       public virtual object AsyncDelegate
        {
                get {
                        return async_delegate;
index 37827daf9e4d9c16b9049ff3b4a7d153fd351f7f..a9e44a0ca4b21a5b5a590d213d84dddbe1fd6b59 100644 (file)
@@ -15,7 +15,7 @@ namespace System.Runtime.Remoting.Messaging {
 \r
        [MonoTODO]\r
        [Serializable]
-       public class LogicalCallContext : ISerializable, ICloneable {\r
+       public sealed class LogicalCallContext : ISerializable, ICloneable {\r
 
                internal LogicalCallContext () {}
 
index 49da9295a6e73b71c4c25218edad8ee13427fce8..b52d2fa2060574e1c83f6c92cc499338d2822c37 100644 (file)
@@ -119,7 +119,7 @@ namespace System.Runtime.Remoting.Messaging {
                        }
                }
 
-               public object ReturnValue {
+               public virtual object ReturnValue {
                        get {
                                return msg.rval;
                        }
index 3e7b2fc890561259c6dfe6c15c0150b05b4c346f..ecfd1b28005974faef84ebd7eeb4622a25df8a31 100755 (executable)
@@ -12,7 +12,7 @@ using System;
 namespace System.Runtime.Serialization {
 
        [Serializable]
-       public sealed class SerializationException : SystemException {
+       public class SerializationException : SystemException {
                // Constructors
                public SerializationException ()
                        : base ("An error occurred during (de)serialization")
index 963506e4278016975a0fb09ed3074b5c2a35a5f3..e04c3d3622717b1dca4897d9a0dc95fec420267f 100644 (file)
@@ -188,7 +188,7 @@ namespace System.Security.Cryptography {
        } // DESDecryptor
 
 
-       public class DESCryptoServiceProvider {
+       public sealed class DESCryptoServiceProvider {
                private byte [] iv;
                private byte [] key;
 
@@ -201,12 +201,12 @@ namespace System.Security.Cryptography {
                // Factories
                //
 
-               public virtual ICryptoTransform CreateEncryptor()
+               public ICryptoTransform CreateEncryptor()
                {
                        return new DESEncryptor (key, iv);
                }
 
-               public virtual ICryptoTransform CreateDecryptor()
+               public ICryptoTransform CreateDecryptor()
                {
                        return new DESDecryptor (key, iv);
                }
@@ -226,7 +226,7 @@ namespace System.Security.Cryptography {
                        }
                }
 
-               public virtual byte[] IV {
+               public byte[] IV {
                        get {
                                return this.iv;
                        }
index 16a2f597a8fc2f679f462aebe8e62dde8599f884..d67fce6e678a6d9c152cfe0cd78e3a3e03034d11 100644 (file)
@@ -49,7 +49,7 @@ namespace System.Security.Cryptography {
 
                /// <summary>
                /// </summary>
-               public virtual bool CanTransformMultipleBlocks {
+               public bool CanTransformMultipleBlocks {
                        get {
                                return false;
                        }
@@ -62,7 +62,7 @@ namespace System.Security.Cryptography {
                /// <remarks>
                ///  The input block size for Base64 decoder is always 1 byte.
                /// </remarks>
-               public virtual int InputBlockSize {
+               public int InputBlockSize {
                        get {
                                return 1;
                        }
@@ -75,7 +75,7 @@ namespace System.Security.Cryptography {
                /// <remarks>
                ///  The value returned by this property is always 3.
                /// </remarks>
-               public virtual int OutputBlockSize {
+               public int OutputBlockSize {
                        get {
                                return 3;
                        }
@@ -170,7 +170,7 @@ namespace System.Security.Cryptography {
 
                /// <summary>
                /// </summary>
-               public virtual int TransformBlock (byte [] inputBuffer,
+               public int TransformBlock (byte [] inputBuffer,
                                                   int inputOffset,
                                                   int inputCount,
                                                   byte [] outputBuffer,
@@ -216,7 +216,7 @@ namespace System.Security.Cryptography {
 
                /// <summary>
                /// </summary>
-               public virtual byte [] TransformFinalBlock (byte [] inputBuffer,
+               public byte [] TransformFinalBlock (byte [] inputBuffer,
                                                            int inputOffset,
                                                            int inputCount)
                {
index 96166c7d734d85bcaedbaaed7f258bc7d94b2f91..c2564eb236eb29dc2d15bfed18b6f2f80163a50b 100644 (file)
@@ -38,7 +38,7 @@ namespace System.Security.Cryptography {
                /// <summary>\r
                /// Computes the entire hash of all the bytes in the byte array.\r
                /// </summary>\r
-               public virtual byte[] ComputeHash (byte[] input) {\r
+               public byte[] ComputeHash (byte[] input) {\r
                        // inputData = input.Clone();\r
                        HashCore (input, 0, input.Length);\r
                        HashValue = HashFinal ();\r
index 205a00cfa63166b09c55a9f67a9e3e3aad2d317a..9b2428f13d93060605535bf04365ab7acb8e8444 100644 (file)
@@ -20,7 +20,7 @@ using System.Security.Cryptography;
 ///    created on - 2/23/2002 6:21:44 PM\r
 /// </remarks>\r
 namespace System.Security.Cryptography {\r
-       public class RijndaelManaged : Rijndael {\r
+       public sealed class RijndaelManaged : Rijndael {\r
                \r
                /// <summary>\r
                /// RijndaelManaged constructor.\r
index fe84262080f5ee3607204b3cbc806664176449c3..d7061e496aefe0651c256c73a5a67918308301c8 100644 (file)
@@ -16,12 +16,12 @@ namespace System.Security.Cryptography {
        /// C# implementation of the SHA1 cryptographic hash function.\r
        /// LAMESPEC?: Basically the same thing as SHA1Managed except for how its implemented.\r
        /// </summary>\r
-       public class SHA1CryptoServiceProvider : SHA1 {\r
+       public sealed class SHA1CryptoServiceProvider : SHA1 {\r
                private const int BLOCK_SIZE_BYTES =  64;\r
                private const int HASH_SIZE_BYTES  =  20;\r
                private const int HASH_SIZE_BITS   = 160;\r
-               [CLSCompliant(false)] protected uint[] _H;  // these are my chaining variables\r
-               [CLSCompliant(false)] protected uint count;\r
+               [CLSCompliant(false)] private uint[] _H;  // these are my chaining variables\r
+               [CLSCompliant(false)] private uint count;\r
                private byte[] _ProcessingBuffer;   // Used to start data when passed less than a block worth.\r
                private int _ProcessingBufferCount; // Counts how much data we have stored that still needs processed.\r
        \r
index 702c450a19fb0584365b93bde2b32fead5571e14..8f72bbee4ee8313950d148a10971a4c89dfbad11 100644 (file)
@@ -24,7 +24,7 @@ namespace System.Security.Cryptography {
 
                /// <summary>
                /// </summary>
-               public virtual bool CanTransformMultipleBlocks {
+               public bool CanTransformMultipleBlocks {
                        get {
                                return false;
                        }
@@ -37,7 +37,7 @@ namespace System.Security.Cryptography {
                /// <remarks>
                ///  The returned value is always 3.
                /// </remarks>
-               public virtual int InputBlockSize {
+               public int InputBlockSize {
                        get {
                                return 3;
                        }
@@ -50,7 +50,7 @@ namespace System.Security.Cryptography {
                /// <remarks>
                ///  The value returned by this property is always 4.
                /// </remarks>
-               public virtual int OutputBlockSize {
+               public int OutputBlockSize {
                        get {
                                return 4;
                        }
@@ -59,7 +59,7 @@ namespace System.Security.Cryptography {
 
                /// <summary>
                /// </summary>
-               public virtual int TransformBlock (byte [] inputBuffer,
+               public int TransformBlock (byte [] inputBuffer,
                                                   int inputOffset,
                                                   int inputCount,
                                                   byte [] outputBuffer,
@@ -97,7 +97,7 @@ namespace System.Security.Cryptography {
 
                /// <summary>
                /// </summary>
-               public virtual byte [] TransformFinalBlock (byte [] inputBuffer,
+               public byte [] TransformFinalBlock (byte [] inputBuffer,
                                                            int inputOffset,
                                                            int inputCount)
                {
index 0004b520a3f57eb9f77236572bd1265dd97d526c..d4cedbf9d4fb8c464f87b8d981cb98e7761f4ac5 100755 (executable)
@@ -13,6 +13,7 @@
 namespace System.Security.Permissions {
 
 
+       [MonoTODO ("These values are WRONG!!!, and incomplete")]
        /// <summary>
        /// </summary>
        public enum IsolatedStorageContainment {
@@ -38,4 +39,18 @@ namespace System.Security.Permissions {
                UnrestrictedIsolatedStorage = 7,
        } // IsolatedStorageContainment
 
+/* here are the correct ones (from msdn)
+       [Serializable]
+       public enum IsolatedStorageContainment
+       {
+               None = 0x00,
+               DomainIsolationByUser = 0x10,
+               AssemblyIsolationByUser = 0x20,
+               DomainIsolationByRoamingUser = 0x50,
+               AssemblyIsolationByRoamingUser = 0x60,
+               AdministerIsolatedStorageByUser = 0x70,
+               UnrestrictedIsolatedStorage = 0xF0,
+       };
+*/
+
 } // System.Security.Permissions
index ce44c66edc58fc67da041d96ad601dde8b74ee29..21563b6b5164d5cde9c9f89e3a17062877664a1d 100644 (file)
@@ -16,7 +16,7 @@ namespace System.Security.Permissions {
                AttributeTargets.Struct | AttributeTargets.Constructor |\r
                AttributeTargets.Method)]\r
        [Serializable]\r
-       public class IsolatedStoragePermissionAttribute : CodeAccessSecurityAttribute {\r
+       public abstract class IsolatedStoragePermissionAttribute : CodeAccessSecurityAttribute {\r
                \r
                public IsolatedStoragePermissionAttribute (SecurityAction action) : base (action) {\r
                }\r
index a099f7feff6773cc0c06887cebda74e403475f39..95a37d39b56e63b6573c681174e0568d8d0b16c6 100644 (file)
@@ -10,7 +10,7 @@
 namespace System.Security.Policy {\r
 \r
        [Serializable]\r
-       public class PolicyStatement : ISecurityEncodable, ISecurityPolicyEncodable {\r
+       public sealed class PolicyStatement : ISecurityEncodable, ISecurityPolicyEncodable {\r
                public PolicyStatement (PermissionSet perms) :\r
                        this (perms, PolicyStatementAttribute.Nothing)\r
                {\r
index f17fba38b0925b43e1f88ce6b35c9c4c3966c69a..0b5aea58c8a713ecde060b1c534684f3e5c80847 100644 (file)
@@ -25,19 +25,19 @@ namespace System.Security.Principal {
                        this.user_name = user_name;
                }
 
-               public string AuthenticationType {
+               public virtual string AuthenticationType {
                        get {
                                return authentication_type;
                        }
                }
 
-               public string Name {
+               public virtual string Name {
                        get {
                                return user_name;
                        }
                }
 
-               public bool IsAuthenticated {
+               public virtual bool IsAuthenticated {
                        get {
                                return true;
                        }
index da39ae5a13d2584827dd4c348fafef36daad46fd..5fa85b9e72bc1155884f0f83ee39bae703fc3ea7 100644 (file)
@@ -20,13 +20,13 @@ namespace System.Security.Principal {
                        this.roles = roles;
                }
 
-               public IIdentity Identity {
+               public virtual IIdentity Identity {
                        get {
                                return identity;
                        }
                }
 
-               public bool IsInRole (string role)
+               public virtual bool IsInRole (string role)
                {
                        foreach (string r in roles)
                                if (role == r)
index 6f88bb04f8aed06b7aa617bcc5de43cf5ddabc90..43b4c063797ee41c8d5056f9179e33fa213de3d5 100644 (file)
@@ -9,7 +9,7 @@
 
 namespace System.Security.Principal {
 
-       enum WindowsAccountType {
+       internal enum WindowsAccountType {
                Normal,
                Guest,
                System,
index 3e2b37e93c53084f77f4f4d6eab5adf25b616b99..d1541cb951bd0d506a12c9bf6ddb4ef5bab6d444 100644 (file)
@@ -9,7 +9,7 @@
 
 namespace System.Security.Principal {
 
-       enum WindowsBuiltInRole {
+       internal enum WindowsBuiltInRole {
                Administrator = 544,
                User = 545,
                Guest = 546,
index 15d0f8822db296db69e8eb9b014dbd79c58f3921..a4eaf87bbae92c2166c1523f324bc358d8677510 100755 (executable)
@@ -313,14 +313,14 @@ namespace System.Text {
                 }
 
                [MonoTODO]
-                public virtual Encoding GetEncoding (int codepage)
+                public static Encoding GetEncoding (int codepage)
                {
                         // FIXME
                         return null;
                 }
                
                [MonoTODO]
-                public virtual Encoding GetEncoding (string name)
+                public static Encoding GetEncoding (string name)
                {
                         // FIXME
                         return null;
index d364760c5463b47443829ae6a1e6366a09cd64c0..c0bcb0616a28b3fa70950a3da2a4859b60be42e8 100644 (file)
@@ -11,7 +11,7 @@ namespace System {
 \r
        [AttributeUsage(AttributeTargets.All)]\r
        [Serializable]\r
-       public class AttributeUsageAttribute : Attribute {\r
+       public sealed class AttributeUsageAttribute : Attribute {\r
                AttributeTargets valid_on;\r
                bool allow_multiple, inherited;\r
                \r
index c029ab84cd605ef53310e8c7aeb0015ee016328a..c7a5e7bddde28107a5d181eff1002ae19e309d8e 100755 (executable)
@@ -8,7 +8,7 @@
 using System;
 
 namespace System {
-       public class BitConverter {
+       public sealed class BitConverter {
 
                private BitConverter () {}
 
index ab5a531d7fd6f8adecfcecaff328897fa123a48a..aae9120a250981102549602d06d618f0b19d75af 100755 (executable)
@@ -17,7 +17,7 @@ namespace System {
        /// </remarks>
        [AttributeUsage(AttributeTargets.All)]
        [Serializable]
-       public class CLSCompliantAttribute : Attribute {
+       public sealed class CLSCompliantAttribute : Attribute {
 
                bool is_compliant;
 
index a370647f37f187d9c579d4e01edd494d281ae2c7..1c51ab9c025ae778a23f0d4f6ce6533cc16ede68 100644 (file)
@@ -9,7 +9,7 @@
 
 namespace System {
 
-       interface ICustomFormatter {
+       public interface ICustomFormatter {
                string Format (string format, object arg, IFormatProvider formatProvider);
        }
 }
index 9b14399a3a69e1c0a252519ddf8123960d200f18..bb12f2482f1d95b91a871069c53475965994f430 100644 (file)
@@ -38,7 +38,7 @@ namespace System {
 
                private void *value;
 
-               public static IntPtr Zero;
+               public static readonly IntPtr Zero;
 
                static IntPtr ()
                {
index 62783746da9a042c8105bb96f450546a3dd772d1..5a53196530603f14d66b9dafb9c0bc3a9c3d1663 100644 (file)
@@ -9,7 +9,7 @@
 namespace System
 {
        [AttributeUsage (AttributeTargets.Method)]
-       public class LoaderOptimizationAttribute : Attribute
+       public sealed class LoaderOptimizationAttribute : Attribute
        {
                private LoaderOptimization lo;
                
index 6c44026c93444dc78a6336aec84e755462b6d8bd..514bca495a4fe63a18cc178506ac9130f7e48636 100644 (file)
@@ -9,7 +9,7 @@
 namespace System
 {
        [AttributeUsage (AttributeTargets.Method)]
-       public class MTAThreadAttribute : Attribute
+       public sealed class MTAThreadAttribute : Attribute
        {
                // Constructors
                public MTAThreadAttribute () : base ()
index 9691ea985287b98ae35743bd504297ecb78456be..dd3cc054b48d2311a3820162068ab81fd9fccbc5 100644 (file)
@@ -50,7 +50,7 @@ namespace System {
                }               
 
                // Properties
-               public virtual double OffendingNumber {
+               public double OffendingNumber {
                        get {
                                return offending_number;
                        }
index 6023a2be52fa41fa01fee0874a800269fda05efb..6215c9379fda8f51d45ab05b0ca806f33cbee009 100644 (file)
@@ -14,7 +14,7 @@ namespace System
                      AttributeTargets.Field | AttributeTargets.Event |
                      AttributeTargets.Interface | AttributeTargets.Delegate)]
             [Serializable]
-            public class ObsoleteAttribute : Attribute
+            public sealed class ObsoleteAttribute : Attribute
             {
                     private string message;
                     private bool isError = false;
index 6224f9bfa382a57d2d81036241d98c068ab5862f..da8e92cd0df0d3fdb2bd8946e826aaf590558688 100644 (file)
@@ -9,7 +9,7 @@
 namespace System
 {
        [AttributeUsage (AttributeTargets.Method)]
-       public class STAThreadAttribute : Attribute
+       public sealed class STAThreadAttribute : Attribute
        {
                   // Constructors
                public STAThreadAttribute () : base ()
index 45d8bbddfb5d74f9bf41f820b1026ed504f75424..82edf55c607992e96a5c7c13771fa6c87dabf6a8 100644 (file)
@@ -14,7 +14,7 @@ using System.Runtime.Serialization;
 namespace System {
 
        [Serializable]
-       public class StackOverflowException : SystemException {
+       public sealed class StackOverflowException : SystemException {
                // Constructors
                public StackOverflowException ()
                        : base (Locale.GetText ("The requested operation caused a stack overflow"))
index af592358a1ae6eafbe1a32e4e41846723c233841..b21db83ee75d79b61da7dfe57173d4cb7cd143de 100644 (file)
@@ -435,7 +435,7 @@ namespace System {
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                internal static extern bool type_is_subtype_of (Type a, Type b, bool check_interfaces);
                
-               public bool IsSubclassOf (Type c)
+               public virtual bool IsSubclassOf (Type c)
                {
                        return type_is_subtype_of (this, c, false);
                }
index 80c88fe561208695bf2dc9c51c24749d72270232..cae537d64b524fc355a976a8316ba8da9ce11dcd 100644 (file)
@@ -12,7 +12,7 @@ using System.Runtime.Serialization;
 namespace System {
 
        [Serializable]
-       public class TypeInitializationException : SystemException {
+       public sealed class TypeInitializationException : SystemException {
                string type_name;
 
                // Constructors