2004-09-08 Marek Safar <marek.safar@seznam.cz>
authorMarek Safar <marek.safar@gmail.com>
Wed, 8 Sep 2004 13:30:17 +0000 (13:30 -0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 8 Sep 2004 13:30:17 +0000 (13:30 -0000)
* Console.cs,
* GC.cs: Class is static for NET_2_0.

svn path=/trunk/mcs/; revision=33574

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/Console.cs
mcs/class/corlib/System/GC.cs

index 679f7a00534aaf9ee7b839fdcafebd01482cff9e..06aacdd9154e410f350b75e87d70026b89112c24 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-08  Marek Safar  <marek.safar@seznam.cz>
+
+       * Console.cs,
+       * GC.cs: Class is static for NET_2_0.
+
 2004-09-07 Ben Maurer  <bmaurer@users.sourceforge.net>
 
        * Activator.cs: Make sure not to call .GetType on a
index 8a0830a7328fe070b22824d5fb939c45cd3a41a6..833232ee5fa1a203137df643e5ad22baa61f5787 100644 (file)
@@ -35,7 +35,13 @@ using System.Text;
 
 namespace System
 {
-       public sealed class Console
+       public
+#if NET_2_0
+       static
+#else
+       sealed
+#endif
+       class Console
        {
                private static TextWriter stdout;
                private static TextWriter stderr;
@@ -75,9 +81,11 @@ namespace System
                        stdin = TextReader.Synchronized (stdin);
                }
 
+#if !NET_2_0
                private Console ()
                {
                }
+#endif
 
                public static TextWriter Error {
                        get {
index 396552fbf364bc85e153177ecff643ec7aef67c6..818c2ec22e831904d0194301324cfe9f5b3efc49 100755 (executable)
@@ -34,11 +34,20 @@ using System.Runtime.CompilerServices;
 
 namespace System
 {
-       public sealed class GC
+       public
+#if NET_2_0
+       static
+#else
+       sealed
+#endif
+       class GC
        {
+
+#if !NET_2_0
                private GC ()
                {
                }
+#endif
 
                // TODO: as long as we use Boehm leave 0...
                public static int MaxGeneration {