fixed member accessibility to match MS (corcompare).
authorPiers Haken <piers@mono-cvs.ximian.com>
Mon, 1 Apr 2002 06:07:43 +0000 (06:07 -0000)
committerPiers Haken <piers@mono-cvs.ximian.com>
Mon, 1 Apr 2002 06:07:43 +0000 (06:07 -0000)
svn path=/trunk/mcs/; revision=3531

76 files changed:
mcs/class/System.XML/System.Xml.Schema/XmlSchemaObjectTable.cs
mcs/class/System.XML/System.Xml/XmlDocumentFragment.cs
mcs/class/System.XML/System.Xml/XmlLinkedNode.cs
mcs/class/System.XML/System.Xml/XmlNode.cs
mcs/class/System.XML/System.Xml/XmlNodeList.cs
mcs/class/System.XML/System.Xml/XmlTextWriter.cs
mcs/class/System/System.CodeDom/CodeDelegateCreateExpression.cs
mcs/class/System/System.ComponentModel/Container.cs
mcs/class/System/System.ComponentModel/DesignerSerializationVisibilityAttribute.cs
mcs/class/System/System.ComponentModel/PropertyDescriptor.cs
mcs/class/System/System.Configuration/ConfigurationSettings.cs
mcs/class/System/System.Diagnostics/Debug.cs
mcs/class/System/System.Diagnostics/Trace.cs
mcs/class/System/System.Diagnostics/TraceListenerCollection.cs
mcs/class/System/System.Net.Sockets/LingerOption.cs
mcs/class/System/System.Net.Sockets/MulticastOption.cs
mcs/class/System/System.Net.Sockets/NetworkStream.cs
mcs/class/System/System.Net/Dns.cs
mcs/class/System/System.Text.RegularExpressions/regex.cs
mcs/class/corlib/System.Collections/Stack.cs
mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorage.cs
mcs/class/corlib/System.IO/Directory.cs
mcs/class/corlib/System.IO/File.cs
mcs/class/corlib/System.IO/IOException.cs
mcs/class/corlib/System.IO/Path.cs
mcs/class/corlib/System.Reflection/Assembly.cs
mcs/class/corlib/System.Reflection/AssemblyName.cs
mcs/class/corlib/System.Reflection/CustomAttributeFormatException.cs
mcs/class/corlib/System.Reflection/InvalidFilterCriteriaException.cs
mcs/class/corlib/System.Reflection/Missing.cs
mcs/class/corlib/System.Reflection/Module.cs
mcs/class/corlib/System.Reflection/TargetException.cs
mcs/class/corlib/System.Reflection/TargetInvocationException.cs
mcs/class/corlib/System.Reflection/TargetParameterCountException.cs
mcs/class/corlib/System.Resources/MissingManifestResourceException.cs
mcs/class/corlib/System.Resources/ResourceManager.cs
mcs/class/corlib/System.Resources/ResourceReader.cs
mcs/class/corlib/System.Resources/ResourceSet.cs
mcs/class/corlib/System.Runtime.CompilerServices/RuntimeHelpers.cs
mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
mcs/class/corlib/System.Runtime.Remoting.Messaging/LogicalCallContext.cs
mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs
mcs/class/corlib/System.Runtime.Remoting/ObjRef.cs
mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs
mcs/class/corlib/System.Security.Cryptography/DSA.cs
mcs/class/corlib/System.Security.Cryptography/SHA256.cs
mcs/class/corlib/System.Security.Cryptography/SHA384.cs
mcs/class/corlib/System.Security.Cryptography/SHA512.cs
mcs/class/corlib/System.Security.Cryptography/X509Certificates.cs
mcs/class/corlib/System.Security.Permissions/CodeAccessSecurityAttribute.cs
mcs/class/corlib/System.Security.Permissions/RegistryPermissionAttribute.cs
mcs/class/corlib/System.Security.Policy/PolicyLevel.cs
mcs/class/corlib/System.Security/SecurityManager.cs
mcs/class/corlib/System.Threading/Interlocked.cs
mcs/class/corlib/System.Threading/Monitor.cs
mcs/class/corlib/System.Threading/RegisteredWaitHandle.cs
mcs/class/corlib/System.Threading/ThreadAbortException.cs
mcs/class/corlib/System.Threading/ThreadPool.cs
mcs/class/corlib/System.Threading/Timeout.cs
mcs/class/corlib/System/AppDomain.cs
mcs/class/corlib/System/ArgumentOutOfRangeException.cs
mcs/class/corlib/System/BitConverter.cs
mcs/class/corlib/System/Buffer.cs
mcs/class/corlib/System/Console.cs
mcs/class/corlib/System/Convert.cs
mcs/class/corlib/System/DllNotFoundException.cs
mcs/class/corlib/System/Environment.cs
mcs/class/corlib/System/FieldAccessException.cs
mcs/class/corlib/System/FormatException.cs
mcs/class/corlib/System/GC.cs
mcs/class/corlib/System/Math.cs
mcs/class/corlib/System/MethodAccessException.cs
mcs/class/corlib/System/PlatformNotSupportedException.cs
mcs/class/corlib/System/StackOverflowException.cs
mcs/class/corlib/System/TypeLoadException.cs
mcs/class/corlib/System/TypeUnloadedException.cs

index de481a97226ea763f313aafcfd39b2bcc3ec631d..cd73d028676f87dbdc55926bb0d63a201e6a9b38 100755 (executable)
@@ -13,7 +13,7 @@ namespace System.Xml.Schema
        {\r
                private Hashtable table;\r
 \r
-               protected XmlSchemaObjectTable()\r
+               internal XmlSchemaObjectTable()\r
                {\r
                        table = new Hashtable(); \r
                }\r
index 324ed0429026bfe4adedaea3402ac29ffb7ca1b8..01d4d5f882ee7c0c7a7cc1be9d0fecbcbdec64fc 100644 (file)
@@ -14,7 +14,7 @@ namespace System.Xml
        {\r
                #region Constructor\r
 \r
-               internal XmlDocumentFragment (XmlDocument doc)\r
+               protected internal XmlDocumentFragment (XmlDocument doc)\r
                        : base (doc)\r
                {\r
                }\r
index 1fd4d12fdb0621d69e7caadaab4c4397dba15c9d..f7b64e8a30d690c5476b4ba5059eb4ab6c98c14f 100644 (file)
@@ -10,7 +10,7 @@ namespace System.Xml
                #endregion
 
                #region Constructors
-               protected internal XmlLinkedNode(XmlDocument doc) : base(doc) { }
+               internal XmlLinkedNode(XmlDocument doc) : base(doc) { }
 
                #endregion
 
index c7f894a6a56a0b16c81763c4db319b631c9b88f3..84d2572fd409d35a5aed0028580e932ad14abcf6 100644 (file)
@@ -25,7 +25,7 @@ namespace System.Xml
 
                #region Constructors
 
-               protected internal XmlNode (XmlDocument ownerDocument)
+               internal XmlNode (XmlDocument ownerDocument)
                {
                        this.ownerDocument = ownerDocument;
                }
index f3214e64b6c68a4d13360667e833503adcda2cd0..eff56279b558acbdafec839e94367f97c92986be 100644 (file)
@@ -16,7 +16,7 @@ namespace System.Xml
        {
                #region Constructors
 
-               protected internal XmlNodeList() { }
+               protected XmlNodeList() { }
 
                #endregion
 
index 4df230e6b4d4bdd2b23c7033d8663a019ddcbfe6..351c4670923ae33c7dcd92e6e4a0c5f34e12eecf 100644 (file)
@@ -24,15 +24,15 @@ namespace System.Xml
                protected bool openStartElement = false;
                protected bool openStartAttribute = false;
                protected bool documentStarted = false;
-               protected bool namespaces = true;
+               private bool namespaces = true;
                protected bool openAttribute = false;
                protected bool attributeWrittenForElement = false;
                protected Stack openElements = new Stack ();
-               protected Formatting formatting = Formatting.None;
-               protected int indentation = 2;
-               protected char indentChar = ' ';
+               private Formatting formatting = Formatting.None;
+               private int indentation = 2;
+               private char indentChar = ' ';
                protected string indentChars = "  ";
-               protected char quoteChar = '\"';
+               private char quoteChar = '\"';
                protected int indentLevel = 0;
                protected string indentFormatting;
                protected Stream baseStream = null;
index 1be84cc27ad4a2ea08cdad740375c58cbefa7d9c..c27c140c29ff13205d1ff4a6a1cf457f8692ed8f 100755 (executable)
@@ -33,7 +33,7 @@ namespace System.CodeDom {
                // Properties
                //
 
-               string DelegateType {
+               public string DelegateType {
                        get {
                                return delegateType;
                        }
index aec2ec4a3c6c6593ea24bd03f1f701e016fe825f..feccae0dcb62757e1f5999111f4e64661015d9e9 100644 (file)
@@ -128,7 +128,7 @@ namespace System.ComponentModel {
 
                bool disposed = false;
                
-               public virtual void Dispose (bool release_all)
+               protected virtual void Dispose (bool release_all)
                {
                        if (disposed)
                                return;
index 4063238a8aa9ee87bfac4e23d046ef7f3f30189a..fd2fffec348248952407844dbce325ff950abecd 100755 (executable)
@@ -24,7 +24,7 @@ namespace System.ComponentModel {
                                DesignerSerializationVisibility.Visible);
                }
                
-               DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility vis)
+               public DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility vis)
                {
                        visibility = vis;
                }
index be061a6da4a4f6aaa027d77260764ca7e6b467b7..4882c3b081eccef5412aeec08a721fac323119ac 100755 (executable)
@@ -14,17 +14,17 @@ namespace System.ComponentModel {
 
        public abstract class PropertyDescriptor : MemberDescriptor {
 
-               public PropertyDescriptor (MemberDescriptor reference)
+               protected PropertyDescriptor (MemberDescriptor reference)
                        : base (reference)
                {
                }
 
-               public PropertyDescriptor (MemberDescriptor reference, Attribute [] attrs)
+               protected PropertyDescriptor (MemberDescriptor reference, Attribute [] attrs)
                        : base (reference, attrs)
                {
                }
 
-               public PropertyDescriptor (string name, Attribute [] attrs)
+               protected PropertyDescriptor (string name, Attribute [] attrs)
                        : base (name, attrs)
                {
                }
index 909dcdf6992fa91488c04f31bd102ec95fa34356..ba5ccf02ad0e331ca1c1005066944b4990857800 100644 (file)
@@ -30,7 +30,7 @@ namespace System.Configuration
                /// <summary>
                ///             ConfigurationSettings Constructor.
                /// </summary>
-               public ConfigurationSettings ()
+               private ConfigurationSettings ()
                {
                        
                }
index 2addc2064c36fe7e4a1349423b8a844a12f0054b..6ed9073de05422588957e8389b68d06bec0ac620 100644 (file)
@@ -20,6 +20,8 @@ namespace System.Diagnostics {
        /// </summary>
        public sealed class Debug {
 
+               private Debug () {}
+
                /// <summary>
                /// Gets or sets value indicating whether Flush should
                /// be called on the listeners.
index 3f195fa493a190e305d9d399cf89d89f44989a4d..bb354d07beb951d4d16803fc68ef18985efb8953 100644 (file)
@@ -20,6 +20,8 @@ namespace System.Diagnostics {
        /// </summary>
        public sealed class Trace {
 
+               private Trace () {}
+
                /// <summary>
                /// Gets or sets value indicating whether Flush should
                /// be called on the listeners.
index 89eb138e898f976f45f332bf821603aa9465da22..8dd0c9a1b16ac72c0187a67c0da14f5f06816bc4 100644 (file)
@@ -25,7 +25,7 @@ namespace System.Diagnostics {
 
                private ArrayList listeners = new ArrayList ();
 
-               public TraceListenerCollection ()
+               internal TraceListenerCollection ()
                {
                        Add (new DefaultTraceListener ());
                }
index 53dc8fa92921be88c00c68ffb3d6dff75e88e659..4c6117f50359280a060edac51686eb31ba340b37 100644 (file)
@@ -18,7 +18,7 @@ namespace System.Net.Sockets
        {
                // Don't change the names of these fields without also
                // changing socket-io.c in the runtime
-               protected bool  enabled;
+               private bool    enabled;
                protected int   seconds;
 
                public LingerOption (bool enable, int secs)
index 0018f0de8a8c173fc0f477d2d80663bcea500fae..759cd48f31448286f5cb3bba1cb2bf5424fb82ac 100644 (file)
@@ -19,7 +19,7 @@ namespace System.Net.Sockets
        {
                // Don't change the names of these fields without also
                // changing socket-io.c in the runtime
-               protected IPAddress group;
+               private IPAddress group;
                protected IPAddress local;
 
                public MulticastOption (IPAddress grp)
index 38990bd8ec54c3a6ae4498734b435818b8bb9966..14059a391364b4f76a7e67f73272be9237b6bce8 100644 (file)
@@ -175,7 +175,7 @@ namespace System.Net.Sockets
                        Dispose (true);
                }
 
-               public virtual void Dispose (bool disposing)
+               protected virtual void Dispose (bool disposing)
                {
                        if (owns_socket)
                                if (socket != null)
index f08f2f85a340c4d289c30f975607ec55b4a50527..510b4ab2dad87434ebb686690212efd089415e8e 100644 (file)
@@ -13,6 +13,8 @@ using System.Runtime.CompilerServices;
 
 namespace System.Net {
         public sealed class Dns {
+
+               private Dns () {}
                 
                 /// <summary>
                 /// Helper class
index df08365661325b1163e6b26366a55982c82fff4b..26fb8f4f8472812d7703ce88cae539fe58e7b855 100644 (file)
@@ -335,7 +335,7 @@ namespace System.Text.RegularExpressions {
                        return factory.NewInstance ();\r
                }\r
 \r
-               private string pattern;\r
+               protected internal string pattern;\r
                private RegexOptions options;\r
 \r
                private IMachineFactory factory;\r
index f6e043207411b1758fee36fff21005fbf50bd693..f37aa2303c56a41034e2dc745899c4019bc807aa 100644 (file)
@@ -49,7 +49,7 @@ namespace System.Collections {
 \r
                        Stack stack;\r
 \r
-                       public SyncStack(Stack s) {\r
+                       internal SyncStack(Stack s) {\r
                                stack = s;\r
                        }\r
                        \r
index 60c5e325e25e1174a7c2157102669565dab09c9d..725acc4059c48897bbacddf26b3036223c89de3b 100644 (file)
@@ -73,6 +73,6 @@ namespace System.IO.IsolatedStorage
                {\r
                }\r
 \r
-               protected abstract void Remove ();\r
+               public abstract void Remove ();\r
        }\r
 }\r
index d8c41bdbefaf9a9d50f606b2def760341aa8e1cf..f023bba4e46db954b99dffcdc566b51f12ec197b 100644 (file)
@@ -21,6 +21,8 @@ namespace System.IO
 {\r
        public sealed class Directory : Object\r
        {\r
+               private Directory () {}
+
                public static DirectoryInfo CreateDirectory (string path)\r
                {\r
                        if (path == null)\r
index 9425f38135d5e0306b2bf8e4fbb6aaeee0a7fdb7..f94f95f0679dc67634a89bc3376eea8f6300c7f2 100644 (file)
@@ -20,6 +20,8 @@ namespace System.IO
        /// </summary>\r
        public sealed class File : Object\r
        {\r
+               private File () {}
+
                public static StreamWriter AppendText (string path)\r
                {       \r
                        return new StreamWriter (path, true);\r
index 48bc749e0f39949ae62a14901cf2e95804a5293f..74593cd03cffb8f43d509f1405559d046de1bdb4 100644 (file)
@@ -29,7 +29,7 @@ namespace System.IO {
                {
                }
 
-               public IOException (SerializationInfo info, StreamingContext context)
+               protected IOException (SerializationInfo info, StreamingContext context)
                        : base (info, context)
                {
                }
index 273515b80a62cc37e63150a0489c07a7ed8a4cc2..ed4c4906d790b5ebb13d7a5d4081e2d4220ee1b7 100644 (file)
@@ -25,6 +25,8 @@ namespace System.IO
 
                private static readonly char[] PathSeparatorChars;
 
+               private Path () {}
+
                // class methods
                public static string ChangeExtension (string path, string extension)
                {
index 88c89dad0a8172227cb98facee82dadd16fce38d..c64e4102815aeafd6baf39c875168e71a9860731 100644 (file)
@@ -21,6 +21,8 @@ namespace System.Reflection {
                System.Security.IEvidenceFactory, System.Runtime.Serialization.ISerializable {
                private IntPtr _mono_assembly;
 
+               internal Assembly () {}
+
                [MethodImplAttribute (MethodImplOptions.InternalCall)]
                private extern string get_code_base ();
                
index 8a04d74df674bbdaf17172b8c35fba7e5388ec6b..becfa1a98b6937bdade2947627664205865bd28d 100755 (executable)
@@ -25,7 +25,7 @@ namespace System.Reflection {
                        name = null;
                }
 
-               public AssemblyName (SerializationInfo si, StreamingContext sc)
+               internal AssemblyName (SerializationInfo si, StreamingContext sc)
                {
                        name = si.GetString ("_Name");
                        codebase = si.GetString ("_CodeBase");
index 071072e551e46dd3baba39ae2b580d7a0463e776..0e1c5c3692ef19cd7d6e006d5fb2c1c681d43191 100644 (file)
@@ -29,7 +29,7 @@ namespace System.Reflection
                        {
                        }
 
-               public CustomAttributeFormatException (SerializationInfo info,
+               protected CustomAttributeFormatException (SerializationInfo info,
                                                       StreamingContext context)
                        {
                        }
index a59d765558977060c6eb11ea991780896bc7502e..f1a73377a28c5464425c1291fa9d5a5a2057bf86 100644 (file)
@@ -28,7 +28,7 @@ namespace System.Reflection
                {
                }
 
-               public InvalidFilterCriteriaException (SerializationInfo info,
+               protected InvalidFilterCriteriaException (SerializationInfo info,
                                                       StreamingContext context)
                        : base (info, context)
                {
index f0a314a8a7ce8ef0d708e59bcfc041d52f3097f1..dfce32dae3e6b8bc616f90f3664d8855c839f68e 100644 (file)
@@ -11,5 +11,7 @@ namespace System.Reflection
        public sealed class Missing
        {
                public static readonly Missing Value;
+
+               internal Missing () {}
        }
 }
index f9a70832db066c9c700e2d08e63c47440b0b23d0..5d058b9743be6903b9e6bdfaf0dabfc62903bed8 100644 (file)
@@ -24,6 +24,8 @@ namespace System.Reflection {
                internal string name;
                internal string scopename;
 
+               internal Module () {}
+
                public Assembly Assembly {get {return assembly;}}
                public virtual string FullyQualifiedName {get {return fqname;}}
                public string Name {get {return name;}}
index c98bb2f93e5d65de065919e07c98d4517c48a797..071bd091771b52dbc9142d4ba9f0bbfc3f2d51dd 100644 (file)
@@ -29,7 +29,7 @@ namespace System.Reflection
                {
                }
 
-               public TargetException (SerializationInfo info, StreamingContext context)
+               protected TargetException (SerializationInfo info, StreamingContext context)
                        : base (info, context)
                {
                }
index 4065a0aa4a3587c132addaea50f6a70bc5257d97..bcf9856554cc22721229970c7c4cc14a98581e99 100644 (file)
@@ -8,5 +8,6 @@ namespace System.Reflection
 {
        public class TargetInvocationException : ApplicationException
        {
+               private TargetInvocationException () {}
        }
 }
index 0dce9509d17c65abe12b4c05f2627ec36f36a315..5ffd55cda68d7c30da1f95fbf8491962efe866e0 100644 (file)
@@ -29,7 +29,7 @@ namespace System.Reflection
                {
                }
 
-               public TargetParameterCountException (SerializationInfo info,
+               internal TargetParameterCountException (SerializationInfo info,
                                                       StreamingContext context)
                        : base (info, context)
                {
index 6ec2fea74e2c10ef751904f1516fb2b0749917af..ddeeed4678c753fe4b695f895ae884cd041671b8 100644 (file)
@@ -28,7 +28,7 @@ namespace System.Resources
                        {
                        }
                
-               public MissingManifestResourceException (SerializationInfo info, StreamingContext context)
+               protected MissingManifestResourceException (SerializationInfo info, StreamingContext context)
                                    :base (info, context)
                        {
                        }
index cd420d2cf367e4bee7efaed73f6bf4ccfbca9854..c592c2d5d2ce07500cbf0936ddb97dfd48736054 100644 (file)
@@ -27,7 +27,7 @@ namespace System.Resources
                private Type resourceSetType;
                
                // constructors
-               public ResourceManager () {}
+               protected ResourceManager () {}
                
                public ResourceManager (Type resourceSource)
                {
index 24c7561d97b1c6026e2b5ac67a72856db7e39317..a0b31fe3944980156fe1f1e55f8e6ecda2689f68 100644 (file)
@@ -190,7 +190,7 @@ namespace System.Resources
                        protected int index = -1;
 
                        
-                       public ResourceEnumerator(ResourceReader readerToEnumerate){
+                       internal ResourceEnumerator(ResourceReader readerToEnumerate){
                                reader = readerToEnumerate;
                        }
 
index 03ed57f4894e67de90ba57a03e93912f9a26b2f4..31054ca9219e9b72d6509fd17b22e55cba0993be 100644 (file)
@@ -21,19 +21,19 @@ namespace System.Resources
                
                // Constructors
                protected ResourceSet () {}
-               protected ResourceSet (IResourceReader reader)
+               public ResourceSet (IResourceReader reader)
                {
                        if (reader == null)
                                throw new ArgumentNullException ("The reader is null.");
                        Reader = reader;
                }
 
-               protected ResourceSet (Stream stream)
+               public ResourceSet (Stream stream)
                {
                        Reader = new ResourceReader (stream);
                 }
                 
-                protected ResourceSet (String fileName)
+                public ResourceSet (String fileName)
                 {
                         Reader = new ResourceReader (fileName);
                 }
@@ -48,7 +48,7 @@ namespace System.Resources
                         Dispose (true);
                 }
                         
-               public void Dispose (bool disposing)
+               protected void Dispose (bool disposing)
                {
                        if (disposing) {
                                Reader = null;
@@ -112,7 +112,7 @@ namespace System.Resources
                         return null;
                 }
                
-               public virtual void ReadResources ()
+               protected virtual void ReadResources ()
                {
                        IDictionaryEnumerator i = Reader.GetEnumerator();
                        
index a2c644ee847036b8acd87de2917895885f9ddc7d..a0df38d9249e29d5e60e272c895b2ba07a9c76b3 100644 (file)
@@ -9,6 +9,8 @@ namespace System.Runtime.CompilerServices
 {
        public sealed class RuntimeHelpers
        {
+               private RuntimeHelpers () {}
+
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                public static extern void InitializeArray (Array array, RuntimeFieldHandle fldHandle);
 
index 6bead740127d1a4326efa6087ace046a1c848b6c..1c1bdf7d3a220b72d3a7c90e8d5b490dd48b8e29 100644 (file)
@@ -10,6 +10,8 @@ namespace System.Runtime.InteropServices
 {
        class Marshal
        {
+               private Marshal () {}
+
                [MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
                public static extern string PtrToStringAuto (IntPtr ptr);       
 
index 32ec35848afecd6cfafc871fd1561870416f075d..840a2d467dfe80b3ad81415c9f3ad81a0c280c24 100644 (file)
@@ -15,6 +15,9 @@ namespace System.Runtime.Remoting.Messaging {
 \r
        [MonoTODO]\r
        public class LogicalCallContext : ISerializable, ICloneable {\r
+
+               internal LogicalCallContext () {}
+
                public bool HasInfo {\r
                        get { return false; }\r
                }\r
index 687a5464505fa6b6e2d164130ac04348777b0bd9..be1c7363e0624a2e9698c05c71d76b0c566624d5 100644 (file)
@@ -22,15 +22,15 @@ namespace System.Runtime.Remoting.Proxies
 
                Type class_to_proxy;
 
-               RealProxy () {
+               protected RealProxy () {
                        throw new NotImplementedException ();
                }
 
-               RealProxy (Type classToProxy) {
+               protected RealProxy (Type classToProxy) {
                        this.class_to_proxy = classToProxy;
                }
 
-               RealProxy (Type classToProxy, IntPtr stub, object stubData) {
+               protected RealProxy (Type classToProxy, IntPtr stub, object stubData) {
                        throw new NotImplementedException ();
                }
 
index 48a7f551feb53d1da09b96fd8029c4210634e8a3..f49964aa7e5cd1509a2347580ceddc71dd948b49 100644 (file)
@@ -31,7 +31,7 @@ namespace System.Runtime.Remoting {
                }
 
                [MonoTODO]
-               public ObjRef (SerializationInfo si, StreamingContext sc)
+               protected ObjRef (SerializationInfo si, StreamingContext sc)
                {
                        // FIXME: Implement.
                        //
index 22ff16b3d002f2d100927801e835e382d0bf2611..25b1cc874a031aad236b318f6c8f26d50d37d80f 100644 (file)
@@ -16,12 +16,14 @@ namespace System.Runtime.Remoting
 {
        public sealed class RemotingServices {
 
+               private RemotingServices () {}
+
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                internal extern static object InternalExecute (MonoMethod method, Object obj,
                                                               Object[] parameters, out object [] out_args);
 
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
-               internal extern static bool IsTransparentProxy (object proxy);
+               public extern static bool IsTransparentProxy (object proxy);
                
                public static IMethodReturnMessage ExecuteMessage (
                        MarshalByRefObject target, IMethodCallMessage reqMsg)
index 35b1aa6796b24c6a398cae094dd1c2185ed8d522..26f366888a0b4f62d1b820e265f4d13a57511ecd 100755 (executable)
@@ -16,6 +16,7 @@ namespace System.Security.Cryptography
        /// </summary>\r
        public abstract class DSA : AsymmetricAlgorithm\r
        {\r
+               internal DSA () {}
        \r
                public static new DSA Create()\r
                {\r
index 0054d0e902762fdfd50db7824dfaba87a9373900..c3fbb573e0746232ecd879c90d4b8ffbdd2b8958 100644 (file)
@@ -21,7 +21,7 @@ namespace System.Security.Cryptography {
                /// <summary>\r
                /// Called from constructor of derived class.\r
                /// </summary>\r
-               protected SHA256 () {\r
+               public SHA256 () {\r
                \r
                }\r
        \r
index cb1cb7fd7d7c35a06f6e83444848182c900dafc8..368d5d76ada40e70d284b2280942d8780142a005 100644 (file)
@@ -20,7 +20,7 @@ namespace System.Security.Cryptography {
                /// <summary>\r
                /// Called from constructor of derived class.\r
                /// </summary>\r
-               protected SHA384 () {\r
+               public SHA384 () {\r
                \r
                }\r
 \r
index 1e76e556636c5b20ef39302aa979fe68eb4d1a83..49f266701e79b378b97ca55e8c740fc2b401206e 100644 (file)
@@ -20,7 +20,7 @@ namespace System.Security.Cryptography {
                /// <summary>\r
                /// Called from constructor of derived class.\r
                /// </summary>\r
-               protected SHA512 () {\r
+               public SHA512 () {\r
                \r
                }\r
 \r
index 35ab02c76df5465e2f571ab6e598ecbe151f4945..8c6e1c6e2d9de067cdb2831c6a2aa1ef7d14bdb7 100755 (executable)
@@ -3,6 +3,7 @@ using System.Security.Cryptography;
 namespace System.Security.Cryptography.X509Certificates {
 
        public class X509Certificate {
+               internal X509Certificate () {}
        }
 }
 
index 389813681daa774adc6e67c4207141defb48751a..78ef50fece93537cba39e4bd0a5783dab613c03e 100644 (file)
@@ -25,7 +25,8 @@ namespace System.Security.Permissions
        ]\r
        public abstract class CodeAccessSecurityAttribute : SecurityAttribute {\r
 \r
-               protected CodeAccessSecurityAttribute(SecurityAction action) : base(action) {}\r
+               public CodeAccessSecurityAttribute(SecurityAction action) : base(action) {}\r
 \r
        }  // public abstract class CodeAccessSecurityAttribute\r
-}  // namespace System.Security.Permissions
\ No newline at end of file
+}  // namespace System.Security.Permissions
+
index 9e0a79fe83355cfc710dacc83f3523a984b74ca6..3ab3eeb160d28650c283a5b3631878a88beffd37 100644 (file)
@@ -27,7 +27,7 @@ namespace System.Security.Permissions
                public RegistryPermissionAttribute (SecurityAction action) : base (action) {}
                
                // Properties
-               string All
+               public string All
                {
                        set { all = value; }
                }
index e135b8983f04f9a8d8616a331783f747de1becc6..215b42c23b4ee6b089cd008afb1c880d7ffc7988 100644 (file)
@@ -12,6 +12,8 @@ namespace System.Security.Policy
        [Serializable]
        public sealed class PolicyLevel
        {
+               internal PolicyLevel () {}
+
                public IList FullTrustAssemblies
                {
                        get
index c5ec392b28a75045b6aa18c0bdfe3d11f5f975fb..d29a2845c637c6d246a6d248700a79f489974ad4 100644 (file)
@@ -15,6 +15,8 @@ namespace System.Security {
        public sealed class SecurityManager  {\r
                private static bool checkExecutionRights;\r
                private static bool securityEnabled;\r
+
+               private SecurityManager () {}
 \r
                public static bool CheckExecutionRights {\r
                        get{\r
@@ -83,4 +85,4 @@ namespace System.Security {
                public static void SavePolicyLevel(PolicyLevel level){}\r
 \r
        }\r
-}
\ No newline at end of file
+}
index f0c340ab2aadc34d9dc7393a27a24999d0281d1e..f0827df4c56fd5edbe5b3dda50cf0c9f19218eae 100755 (executable)
@@ -12,6 +12,8 @@ namespace System.Threading
 {
        public sealed class Interlocked 
        {
+               private Interlocked () {}
+
                public static int CompareExchange(ref int location1, int value, int comparand) {
                        // lock
                        if(comparand==location1) {
index 0c7476dbf85df9012adba2ed6d7fa9c6640f4117..14fe105e6f108fc9147188a4e757f192c6850d92 100755 (executable)
@@ -13,6 +13,8 @@ namespace System.Threading
 {
        public sealed class Monitor
        {
+               private Monitor () {}
+
                // Grabs the mutex on object 'obj', with a maximum
                // wait time 'ms' but doesn't block - if it can't get
                // the lock it returns false, true if it can
index e2e7ddd09f45f4a5ef8491f74c26f8ea66c1d213..44a9994d5ad6b25b28e84dcb1b874f7dea7e029b 100755 (executable)
@@ -12,6 +12,8 @@ namespace System.Threading
 {
        public sealed class RegisteredWaitHandle
        {
+               internal RegisteredWaitHandle () {}
+
                [MonoTODO]
                public bool Unregister(WaitHandle waitObject) {
                        // FIXME
index 4278ce23ae77af3c3e438e3f0b1764a0cd7f0b7c..93c361f33e05f23c1687758a3820719a12377249 100755 (executable)
@@ -12,6 +12,8 @@ namespace System.Threading
 {
        public sealed class ThreadAbortException : SystemException
        {
+               private ThreadAbortException () {}
+
                [MonoTODO]
                public object ExceptionState {
                        get {
index 51a08d2062fef28804c4b8670b68fdb49525f63f..3f652d0321908f838f7c47797f26120cd301e84c 100755 (executable)
@@ -12,6 +12,8 @@ namespace System.Threading
 {
        public sealed class ThreadPool
        {
+               private ThreadPool () {}
+
                [MonoTODO]
                public static bool BindHandle(IntPtr osHandle) {
                        // FIXME
index 83da26f816fdbea6024a230ad5945281dfaad931..397e213ddf7a16fc9207092486eeb4940316617f 100755 (executable)
@@ -12,6 +12,7 @@ namespace System.Threading
 {
        public sealed class Timeout
        {
+               private Timeout () {}
                public const int Infinite=-1;
        }
 }
index f8b3bb0fcdf4f1d3c2c0a999232d734d0f08fc83..a3aecdbec2fbcc2bbf1716c8f507fc48d0779037 100755 (executable)
@@ -27,6 +27,8 @@ namespace System {
                IntPtr _mono_app_domain;
 
                // Evidence evidence;
+
+               private AppDomain () {}
                
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                public extern AppDomainSetup getSetup ();
index b6f21f1f3dd6e4e6887d671e0ba389c0e91a3667..5e3462cf64a353c43ed1a05e83ef94abc6146c50 100644 (file)
@@ -38,7 +38,7 @@ namespace System {
                        this.actual_value = actual_value;
                }
 
-               public ArgumentOutOfRangeException (SerializationInfo info, StreamingContext context)
+               protected ArgumentOutOfRangeException (SerializationInfo info, StreamingContext context)
                        : base (info, context)
                {
                        actual_value = info.GetString ("ActualValue");
index a3ee9ecf4add1283e5c36e312731905e989b8270..c029ab84cd605ef53310e8c7aeb0015ee016328a 100755 (executable)
@@ -10,6 +10,8 @@ using System;
 namespace System {
        public class BitConverter {
 
+               private BitConverter () {}
+
                static bool AmILittleEndian()
                {
                        byte[] one = GetBytes((int)1);
index b1565ea05a4a048e03589fd06a82e6ecb85bac1d..41a4abf4fb1da7efcb9d8f447a545154a5792738 100755 (executable)
@@ -12,6 +12,9 @@ using System.Runtime.CompilerServices;
 
 namespace System {
        public sealed class Buffer {
+
+               private Buffer () {}
+
                public static int ByteLength (Array array) {
                        // note: the other methods in this class also use ByteLength to test for
                        // null and non-primitive arguments as a side-effect.
index 82d4e64e986363aacec5abf9565659bdf836f47f..9f38c6608983ff7711d27590b2294354a6d57e3d 100644 (file)
@@ -23,6 +23,8 @@ namespace System {
                        stdout = new StreamWriter (OpenStandardOutput ());
                        stdin  = new StreamReader (OpenStandardInput ());
                }
+
+               private Console () {}
                
                public static TextWriter Error
                {
index 200f9a4dca09b18cbad7831261bd9e8e45b7d74a..a4e31ace59d1b510b2605d9b685305fea0dc2a37 100644 (file)
@@ -80,6 +80,8 @@ namespace System {
                // Fields\r
                public static readonly object DBNull;\r
        \r
+               private Convert () {}
+
                // ========== BASE 64 Conversions ========== //\r
                // the BASE64 convert methods are using the Base64 converting methods\r
                // from System.Security.Cryptography.ToBase64Transform and\r
index 867953d2773e2cfc6a46d3e2c82478391b8959ab..cc332020623357d73b1fbecc197075b3d3fd1df7 100644 (file)
@@ -27,7 +27,7 @@ namespace System
                        {
                        }
                
-               public DllNotFoundException (SerializationInfo info,
+               protected DllNotFoundException (SerializationInfo info,
                                             StreamingContext context)
                        : base (info, context)
                        {
index 08aa834158a34a86e80f88e5d50b2c2989eefb17..1f2f367224ba755f33d690714cfde37dee30352a 100644 (file)
@@ -22,6 +22,8 @@ namespace System
 {\r
        public sealed class Environment\r
        {\r
+               private Environment () {}
+
                [MonoTODO]\r
                public enum SpecialFolder\r
                {       // TODO: Determine if these windoze style folder identifiers \r
index e78cb07b01bfe9256a7e66d840a7d68ddaf8852c..342a405ddd62cde98ebdb32e2153ba57b40d27c7 100644 (file)
@@ -26,7 +26,7 @@ namespace System
                        {
                        }
                
-               public FieldAccessException (SerializationInfo info,
+               protected FieldAccessException (SerializationInfo info,
                                             StreamingContext context)
                        : base (info, context)
                        {
index e2557f265642b80754b7d4329d88a012244ca30b..03d106f6f9ed21f0894937b7643cc183097d5af6 100644 (file)
@@ -29,7 +29,7 @@ namespace System {
                {
                }
 
-               public FormatException (SerializationInfo info,
+               protected FormatException (SerializationInfo info,
                                        StreamingContext context)
                        : base (info, context)
                {
index 265f5a47d67060b662ffaa3ce453e2cc14951002..8dabab6d3934e29ccc280a06d2361b87f80dabdd 100755 (executable)
@@ -13,6 +13,8 @@ using System;
 
 namespace System {
        public sealed class GC {
+
+               private GC () {}
                
                [MonoTODO]
                public static void SuppressFinalize (object obj)
index f6f231ee7cb38b0d812546b7cb55921edb50bb02..e5eb68a2b42efc8daeb971f3b603be6aca026762 100644 (file)
@@ -19,6 +19,9 @@ namespace System
         {
                 public const double E = 2.7182818284590452354;
                 public const double PI = 3.14159265358979323846;
+
+               private Math () {}
+
                 public static decimal Abs(decimal value)
                 {
                         return (value < 0)? -value: value;
index 4201b979ab48c84aa1b743c84ac3aed3b95f1b29..16295606174d23851ecf37721954d1b2ce48d638 100644 (file)
@@ -27,7 +27,7 @@ namespace System
                        {
                        }
                
-               public MethodAccessException (SerializationInfo info,
+               protected MethodAccessException (SerializationInfo info,
                                              StreamingContext context)
                        : base (info, context)
                        {
index 26c2730fdb7181165dd281350389837378931186..bc334394f8e5bba25fa0cee0ddc9de1754f03d5c 100644 (file)
@@ -27,7 +27,7 @@ namespace System
                        {
                        }
                
-               public PlatformNotSupportedException (SerializationInfo info,
+               protected PlatformNotSupportedException (SerializationInfo info,
                                                      StreamingContext context)
                        : base (info, context)
                        {
index e7710133a29c22576e0e0b1182809ecf566b5763..a9f3b04bbc64d12af24de42e32a285ae90423609 100644 (file)
@@ -30,7 +30,7 @@ namespace System {
                {
                }
 
-               protected StackOverflowException (SerializationInfo info, StreamingContext context)
+               internal StackOverflowException (SerializationInfo info, StreamingContext context)
                        : base (info, context)
                {
                }
index 499b3ff798ce7f953a4017e5106df7ab385a0a59..91458786b3a0bb6bbf1a56b7f0ae1dc9fbf11adb 100644 (file)
@@ -39,7 +39,7 @@ namespace System {
                        msg = message;
                }
 
-               public TypeLoadException (SerializationInfo info,
+               protected TypeLoadException (SerializationInfo info,
                                          StreamingContext context)
                        : base (info, context)
                {
index e4fa88c22cfef0826ccfc89daa8ae495c742f973..10929e3fe6870675181a7cad831757ddf0a01514 100644 (file)
@@ -27,7 +27,7 @@ namespace System
                        {
                        }
                
-               public TypeUnloadedException (SerializationInfo info,
+               protected TypeUnloadedException (SerializationInfo info,
                                              StreamingContext context)
                        : base (info, context)
                        {