//
using System;
+using System.Runtime.InteropServices;
namespace System.Diagnostics {
AttributeTargets.Delegate |
AttributeTargets.Property |
AttributeTargets.Assembly, AllowMultiple=true)]
-#if NET_2_0
+ [ComVisible (true)]
public sealed class DebuggerDisplayAttribute : Attribute
-#else
- internal sealed class DebuggerDisplayAttribute : Attribute
-#endif
{
string value, type, name;
string target_type_name;
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 {
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;
}
}
}
set {
- type = name;
+ name = value;
}
}
}