Merge pull request #664 from symform/xbuild-AssignProjectConfiguration
[mono.git] / mcs / class / corlib / System.Diagnostics / DebuggerTypeProxyAttribute.cs
index 51101253078d0f2739285a23c8091bfe46c2e5f6..92ccb86c9031f0c9bca1ea446b9d0ab5a00dcaa7 100644 (file)
 // 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;
                }
 
@@ -61,15 +60,20 @@ namespace System.Diagnostics {
                        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