* 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
+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
{
[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) {
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)
WinCE = 3,
#endif
#if NET_2_0
- Unix = 4
+ Unix = 4,
+#endif
+#if NET_2_1
+ Xbox,
+ MacOSX,
#endif
}
}
}
//Constructors
+#if NET_2_1
+ protected WeakReference ()
+ {
+ }
+#endif
public WeakReference (object target)
: this (target, false)
{