X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Diagnostics%2FDebuggerTypeProxyAttribute.cs;h=92ccb86c9031f0c9bca1ea446b9d0ab5a00dcaa7;hb=21dacdc57e3f08c1fbcdc840f127a90b7bff193e;hp=51101253078d0f2739285a23c8091bfe46c2e5f6;hpb=53497da09c4928635f4d4c4776c8c7e48c6098c3;p=mono.git diff --git a/mcs/class/corlib/System.Diagnostics/DebuggerTypeProxyAttribute.cs b/mcs/class/corlib/System.Diagnostics/DebuggerTypeProxyAttribute.cs index 51101253078..92ccb86c903 100644 --- a/mcs/class/corlib/System.Diagnostics/DebuggerTypeProxyAttribute.cs +++ b/mcs/class/corlib/System.Diagnostics/DebuggerTypeProxyAttribute.cs @@ -28,26 +28,25 @@ // 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