Author: atsushi
Date: 2007-11-21 02:21:25 -0500 (Wed, 21 Nov 2007)
New Revision: 90064

Modified:
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/Console.cs
   trunk/mcs/class/corlib/System/MarshalByRefObject.cs
Log:
2007-11-21  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * MarshalByRefObject.cs : Added MemberwiseClose() stub.
          GetLifetimeService() is not virtual (in both 2.0 and 1.1).
        * Console.cs : implemented missing 2.0 key members.



Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2007-11-21 06:52:27 UTC (rev 
90063)
+++ trunk/mcs/class/corlib/System/ChangeLog     2007-11-21 07:21:25 UTC (rev 
90064)
@@ -1,3 +1,9 @@
+2007-11-21  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * MarshalByRefObject.cs : Added MemberwiseClose() stub.
+         GetLifetimeService() is not virtual (in both 2.0 and 1.1).
+       * Console.cs : implemented missing 2.0 key members.
+
 2007-11-18  Gert Driesen  <[EMAIL PROTECTED]>
 
        * Enum.cs: Provided ParamName of Argument(Null)Exceptions. Rewrote

Modified: trunk/mcs/class/corlib/System/Console.cs
===================================================================
--- trunk/mcs/class/corlib/System/Console.cs    2007-11-21 06:52:27 UTC (rev 
90063)
+++ trunk/mcs/class/corlib/System/Console.cs    2007-11-21 07:21:25 UTC (rev 
90064)
@@ -520,6 +520,10 @@
                        set { ConsoleDriver.BufferWidth = value; }
                }
 
+               public static bool CapsLock {
+                       get { return ConsoleDriver.CapsLock; }
+               }
+
                public static int CursorLeft {
                        get { return ConsoleDriver.CursorLeft; }
                        set { ConsoleDriver.CursorLeft = value; }
@@ -530,6 +534,11 @@
                        set { ConsoleDriver.CursorTop = value; }
                }
 
+               public static int CursorSize {
+                       get { return ConsoleDriver.CursorSize; }
+                       set { ConsoleDriver.CursorSize = value; }
+               }
+
                public static bool CursorVisible {
                        get { return ConsoleDriver.CursorVisible; }
                        set { ConsoleDriver.CursorVisible = value; }
@@ -544,6 +553,18 @@
                        get { return ConsoleDriver.KeyAvailable; }
                }
 
+               public static int LargestWindowHeight {
+                       get { return ConsoleDriver.LargestWindowHeight; }
+               }
+
+               public static int LargestWindowWidth {
+                       get { return ConsoleDriver.LargestWindowWidth; }
+               }
+
+               public static bool NumberLock {
+                       get { return ConsoleDriver.NumberLock; }
+               }
+
                public static string Title {
                        get { return ConsoleDriver.Title; }
                        set { ConsoleDriver.Title = value; }

Modified: trunk/mcs/class/corlib/System/MarshalByRefObject.cs
===================================================================
--- trunk/mcs/class/corlib/System/MarshalByRefObject.cs 2007-11-21 06:52:27 UTC 
(rev 90063)
+++ trunk/mcs/class/corlib/System/MarshalByRefObject.cs 2007-11-21 07:21:25 UTC 
(rev 90064)
@@ -79,8 +79,10 @@
                        return _identity.CreateObjRef (type);
                }
 
+               // corcompare says it is "virtual final", so there is likely
+               // an internal interface in .NET.
                [SecurityPermission (SecurityAction.LinkDemand, Infrastructure 
= true)]
-               public virtual object GetLifetimeService ()
+               public object GetLifetimeService ()
                {
                        if (_identity == null)
                                return null;
@@ -92,5 +94,13 @@
                {
                        return new System.Runtime.Remoting.Lifetime.Lease();
                }
+
+#if NET_2_0
+               [MonoTODO]
+               protected MarshalByRefObject MemberwiseClone (bool 
cloneIdentity)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to