Author: toshok
Date: 2005-03-02 23:24:32 -0500 (Wed, 02 Mar 2005)
New Revision: 41380

Added:
   trunk/mcs/class/corlib/System.Diagnostics/DebuggerBrowsableAttribute.cs
   trunk/mcs/class/corlib/System.Diagnostics/DebuggerBrowsableState.cs
   trunk/mcs/class/corlib/System.Diagnostics/DebuggerDisplayAttribute.cs
   trunk/mcs/class/corlib/System.Diagnostics/DebuggerTypeProxyAttribute.cs
Modified:
   trunk/mcs/class/corlib/System.Diagnostics/ChangeLog
Log:
2005-03-02  Chris Toshok  <[EMAIL PROTECTED]>

        * DebuggerTypeProxyAttribute.cs, DebuggerBrowsableState.cs,
        DebuggerDisplayAttribute.cs, DebuggerBrowsableAttribute: first cut
        at 3/4 of the .net 2.0 debugger attributes.



Modified: trunk/mcs/class/corlib/System.Diagnostics/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Diagnostics/ChangeLog 2005-03-03 04:20:26 UTC 
(rev 41379)
+++ trunk/mcs/class/corlib/System.Diagnostics/ChangeLog 2005-03-03 04:24:32 UTC 
(rev 41380)
@@ -1,7 +1,13 @@
+2005-03-02  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * DebuggerTypeProxyAttribute.cs, DebuggerBrowsableState.cs,
+       DebuggerDisplayAttribute.cs, DebuggerBrowsableAttribute: first cut
+       at 3/4 of the .net 2.0 debugger attributes.
+
 2005-02-12  Marek Safar  <[EMAIL PROTECTED]>
 
        * ConditionalAttribute.cs: NET_2_0 extension.
-
+
 2005-01-27  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * StackFrame.cs: Add path discovery permission check for GetFilename 

Added: trunk/mcs/class/corlib/System.Diagnostics/DebuggerBrowsableAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Diagnostics/DebuggerBrowsableAttribute.cs     
2005-03-03 04:20:26 UTC (rev 41379)
+++ trunk/mcs/class/corlib/System.Diagnostics/DebuggerBrowsableAttribute.cs     
2005-03-03 04:24:32 UTC (rev 41380)
@@ -0,0 +1,55 @@
+//
+// System.Diagnostics.DebuggerBrowsableAttribute.cs
+//
+// Author:
+//   Chris Toshok ([EMAIL PROTECTED])
+//
+
+//
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+
+namespace System.Diagnostics {
+
+       [AttributeUsageAttribute(AttributeTargets.Field | 
AttributeTargets.Property)]   
+       public sealed class DebuggerBrowsableAttribute : Attribute {
+
+               DebuggerBrowsableState state;
+
+               public DebuggerBrowsableAttribute (DebuggerBrowsableState 
state) {
+                       this.state = state;
+               }
+
+               public DebuggerBrowsableState State {
+                       get {
+                               return state;
+                       }
+               }
+       }
+
+}
+
+#endif

Added: trunk/mcs/class/corlib/System.Diagnostics/DebuggerBrowsableState.cs
===================================================================
--- trunk/mcs/class/corlib/System.Diagnostics/DebuggerBrowsableState.cs 
2005-03-03 04:20:26 UTC (rev 41379)
+++ trunk/mcs/class/corlib/System.Diagnostics/DebuggerBrowsableState.cs 
2005-03-03 04:24:32 UTC (rev 41380)
@@ -0,0 +1,45 @@
+//
+// System.Diagnostics.DebuggerDisplayAttribute.cs
+//
+// Author:
+//   Chris Toshok ([EMAIL PROTECTED])
+//
+
+//
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.Diagnostics {
+
+       // XXX make sure this matches MS's enum
+       public enum DebuggerBrowsableState
+       {
+               Never,
+               Collapsed,
+               Expanded,
+               RootHidden
+       }
+}
+
+#endif

Added: trunk/mcs/class/corlib/System.Diagnostics/DebuggerDisplayAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Diagnostics/DebuggerDisplayAttribute.cs       
2005-03-03 04:20:26 UTC (rev 41379)
+++ trunk/mcs/class/corlib/System.Diagnostics/DebuggerDisplayAttribute.cs       
2005-03-03 04:24:32 UTC (rev 41380)
@@ -0,0 +1,49 @@
+//
+// System.Diagnostics.DebuggerDisplayAttribute.cs
+//
+// Author:
+//   Chris Toshok ([EMAIL PROTECTED])
+//
+
+//
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+
+namespace System.Diagnostics {
+
+       [AttributeUsageAttribute(AttributeTargets.Class | 
AttributeTargets.Struct)]     
+       public sealed class DebuggerDisplayAttribute : Attribute {
+
+               public readonly string Value;
+
+               public DebuggerDisplayAttribute (string value) {
+                       Value = value;
+               }
+       }
+
+}
+
+#endif

Added: trunk/mcs/class/corlib/System.Diagnostics/DebuggerTypeProxyAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Diagnostics/DebuggerTypeProxyAttribute.cs     
2005-03-03 04:20:26 UTC (rev 41379)
+++ trunk/mcs/class/corlib/System.Diagnostics/DebuggerTypeProxyAttribute.cs     
2005-03-03 04:24:32 UTC (rev 41380)
@@ -0,0 +1,75 @@
+//
+// System.Diagnostics.DebuggerTypeProxyAttribute.cs
+//
+// Author:
+//   Chris Toshok ([EMAIL PROTECTED])
+//
+
+//
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+
+namespace System.Diagnostics {
+
+       [AttributeUsageAttribute(AttributeTargets.Class | 
AttributeTargets.Struct)]     
+       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 (Type type) {
+                       proxy_type = type;
+                       proxy_type_name = type.Name;
+               }
+
+               public string ProxyTypeName {
+                       get {
+                               return proxy_type_name;
+                       }
+               }
+
+               public Type Target {
+                       get {
+                               return target_type;
+                       }
+               }
+
+               public string TargetTypeName {
+                       get {
+                               return target_type_name;
+                       }
+               }
+       }
+
+}
+
+#endif

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

Reply via email to