2008-08-21 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Thu, 21 Aug 2008 21:42:05 +0000 (21:42 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Thu, 21 Aug 2008 21:42:05 +0000 (21:42 -0000)
* Nullable.cs: Add two ComVisible(false) for SL2 profile.
* PlatformID.cs: Add Xbox and MacOX for SL2 profile.
* WeakReference.cs: Add default, protected, ctor for SL2.

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

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/Nullable.cs
mcs/class/corlib/System/PlatformID.cs
mcs/class/corlib/System/WeakReference.cs

index a57712f4c5dfcfe60ca70cab4ea2275ba06f764f..a1109534a69b104e3ac40b8cee0ca2f7f349310b 100644 (file)
@@ -1,3 +1,9 @@
+2008-08-21  Sebastien Pouliot  <sebastien@ximian.com> 
+
+       * Nullable.cs: Add two ComVisible(false) for SL2 profile.
+       * PlatformID.cs: Add Xbox and MacOX for SL2 profile.
+       * WeakReference.cs: Add default, protected, ctor for SL2.
+
 2008-08-20  Miguel de Icaza  <miguel@novell.com>
 
        * ConsoleDriver.cs: TtySetup now takes an extra argument: the
index e282a5422d5e14b00f9b5bed04a47a697b8fac9b..f8d49c3e6a0d13ce89b49a1ae3ea3977d923a5db 100644 (file)
@@ -41,6 +41,10 @@ namespace System
 {
        [ComVisible (true)]
        public static class Nullable {
+
+#if NET_2_1
+               [ComVisible (false)]
+#endif
                public static int Compare<T> (T? value1, T? value2) where T: struct
                {
                        if (value1.has_value) {
@@ -53,6 +57,9 @@ namespace System
                        return value2.has_value ? -1 : 0;
                }
 
+#if NET_2_1
+               [ComVisible (false)]
+#endif
                public static bool Equals<T> (T? value1, T? value2) where T: struct
                {
                        if (value1.has_value != value2.has_value)
index 2c7849e7095dee13a96dec5ca7918433e8689865..aa63e0966eeba6d3989800991cfb324a0971c742 100644 (file)
@@ -51,7 +51,11 @@ namespace System
                WinCE = 3,
 #endif
 #if NET_2_0
-               Unix = 4
+               Unix = 4,
+#endif
+#if NET_2_1
+               Xbox,
+               MacOSX,
 #endif
        }
 }
index 24f6ffab5a6da7d69e6c6889bd30d88f60872329..64d260af2d217991892e845e88b84fb8531c0648 100644 (file)
@@ -56,6 +56,11 @@ namespace System
                }
 
                //Constructors
+#if NET_2_1
+               protected WeakReference ()
+               {
+               }
+#endif
                public WeakReference (object target)
                        : this (target, false)
                {