2007-11-14 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mcs / class / corlib / System / Nullable.cs
index 9d44ea4554e119d84ad59267df738fbc66653069..b981afb00596bb21fb9788cce4c8513c2a355adc 100644 (file)
@@ -34,9 +34,13 @@ using System.Reflection;
 using System.Collections.Generic;
 #endif
 using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
 
 #if NET_2_0
 namespace System {
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public static class Nullable {
                public static int Compare<T> (Nullable<T> left, Nullable<T> right) where T: struct
                {
@@ -144,7 +148,7 @@ namespace System {
                        if (has_value)
                                return value.ToString ();
                        else
-                               return "";
+                               return String.Empty;
                }
 
                public static implicit operator Nullable<T> (T value)
@@ -157,16 +161,6 @@ namespace System {
                        return value.Value;
                }
 
-               public static bool operator == (Nullable<T> left, Nullable<T> right)
-               {
-                       return left.Equals (right);
-               }
-
-               public static bool operator != (Nullable<T> left, Nullable<T> right)
-               {
-                       return !left.Equals (right);
-               }
-
                // These are called by the JIT
                // Ironicly, the C#  code is the same for these two,
                // however, on the inside they do somewhat different things