Author: rolf
Date: 2007-05-11 04:23:59 -0400 (Fri, 11 May 2007)
New Revision: 77204

Modified:
   trunk/mcs/class/corlib/System.Diagnostics/ChangeLog
   trunk/mcs/class/corlib/System.Diagnostics/DebuggerDisplayAttribute.cs
Log:
2007-05-11  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>

        * DebuggerDisplayAttribute.cs: Default Type, Name and Value is an empty 
string. 
        Fix name setter. Can't set a null TargetType, and use 
AssemblyQualifiedName 
        for the TargetTypeName.



Modified: trunk/mcs/class/corlib/System.Diagnostics/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Diagnostics/ChangeLog 2007-05-11 08:06:26 UTC 
(rev 77203)
+++ trunk/mcs/class/corlib/System.Diagnostics/ChangeLog 2007-05-11 08:23:59 UTC 
(rev 77204)
@@ -1,3 +1,9 @@
+2007-05-11  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
+
+       * DebuggerDisplayAttribute.cs: Default Type, Name and Value is an empty 
string. 
+       Fix name setter. Can't set a null TargetType, and use 
AssemblyQualifiedName 
+       for the TargetTypeName.
+
 2007-04-27  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * StackTrace.cs: Fix ToString () to be compatible with MS. Fixes #81207.

Modified: trunk/mcs/class/corlib/System.Diagnostics/DebuggerDisplayAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Diagnostics/DebuggerDisplayAttribute.cs       
2007-05-11 08:06:26 UTC (rev 77203)
+++ trunk/mcs/class/corlib/System.Diagnostics/DebuggerDisplayAttribute.cs       
2007-05-11 08:23:59 UTC (rev 77204)
@@ -50,7 +50,12 @@
                Type target_type;
 
                public DebuggerDisplayAttribute (string value) {
+                       if (value == null)
+                               value = string.Empty;
+
                        this.value = value;
+                       this.type = string.Empty;
+                       this.name = string.Empty;
                }
 
                public string Value {
@@ -64,8 +69,11 @@
                                return target_type;
                        }
                        set {
+                               if (value == null)
+                                       throw new ArgumentNullException 
("value");
+
                                target_type = value;
-                               target_type_name = target_type.Name;
+                               target_type_name = 
target_type.AssemblyQualifiedName;
                        }
                }
 
@@ -94,7 +102,7 @@
                        }
 
                        set {
-                               type = name;
+                               name = value;
                        }
                }
        }

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

Reply via email to