Author: martin
Date: 2005-03-10 01:40:51 -0500 (Thu, 10 Mar 2005)
New Revision: 41633

Modified:
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/Nullable.cs
Log:
2005-03-10  Martin Baulig  <[EMAIL PROTECTED]>

        * Nullable.cs (Nullable<T>.ToString): Return an empty string if
        we're null.



Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2005-03-10 05:55:34 UTC (rev 
41632)
+++ trunk/mcs/class/corlib/System/ChangeLog     2005-03-10 06:40:51 UTC (rev 
41633)
@@ -1,3 +1,8 @@
+2005-03-10  Martin Baulig  <[EMAIL PROTECTED]>
+
+       * Nullable.cs (Nullable<T>.ToString): Return an empty string if
+       we're null.
+
 2005-03-09  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * Activator.cs MonoType.cs: Applied patch from Carlos Alberto Cortez

Modified: trunk/mcs/class/corlib/System/Nullable.cs
===================================================================
--- trunk/mcs/class/corlib/System/Nullable.cs   2005-03-10 05:55:34 UTC (rev 
41632)
+++ trunk/mcs/class/corlib/System/Nullable.cs   2005-03-10 06:40:51 UTC (rev 
41633)
@@ -202,7 +202,10 @@
 
                public override string ToString ()
                {
-                       return value.ToString ();
+                       if (has_value)
+                               return value.ToString ();
+                       else
+                               return "";
                }
 
                public static implicit operator Nullable<T> (T value)

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

Reply via email to