// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-
using System;
+using System.Runtime.InteropServices;
namespace System.Diagnostics {
- [AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Struct)]
- public sealed class DebuggerTypeProxyAttribute : Attribute {
+ [AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Assembly, AllowMultiple = true)]
+ [ComVisible (true)]
+ public sealed class DebuggerTypeProxyAttribute : Attribute
+ {
string proxy_type_name;
- Type proxy_type;
string target_type_name;
Type target_type;
- public DebuggerTypeProxyAttribute (string typename) {
- throw new NotImplementedException ();
+ public DebuggerTypeProxyAttribute (string typeName) {
+ proxy_type_name = typeName;
}
public DebuggerTypeProxyAttribute (Type type) {
- proxy_type = type;
proxy_type_name = type.Name;
}
get {
return target_type;
}
+ set {
+ target_type = value;
+ target_type_name = target_type.Name;
+ }
}
public string TargetTypeName {
get {
return target_type_name;
}
+ set {
+ target_type_name = value;
+ }
}
}
}
-
-#endif