Author: spouliot
Date: 2005-04-22 22:53:43 -0400 (Fri, 22 Apr 2005)
New Revision: 43468

Modified:
   trunk/mcs/class/corlib/System/Attribute.cs
   trunk/mcs/class/corlib/System/ChangeLog
Log:
 * Attribute.cs: Added _Attribute interface to NET_2_0 to reduce the number of 
missing in the class status pages.

Modified: trunk/mcs/class/corlib/System/Attribute.cs
===================================================================
--- trunk/mcs/class/corlib/System/Attribute.cs  2005-04-23 02:51:06 UTC (rev 
43467)
+++ trunk/mcs/class/corlib/System/Attribute.cs  2005-04-23 02:53:43 UTC (rev 
43468)
@@ -7,11 +7,8 @@
 //   Gonzalo Paniagua Javier ([EMAIL PROTECTED])
 //
 // (C) 2002, 2003 Ximian, Inc.  http://www.ximian.com
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
-
-//
-// Copyright (C) 2004 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
@@ -33,13 +30,19 @@
 //
 
 using System.Reflection;
+using System.Runtime.InteropServices;
 
 namespace System
 {
        [AttributeUsage (AttributeTargets.All)]
        [Serializable]
-       public abstract class Attribute
-       {
+#if NET_2_0
+       [ComVisible (true)]
+       [ClassInterfaceAttribute (ClassInterfaceType.None)]
+       public abstract class Attribute : _Attribute {
+#else
+       public abstract class Attribute {
+#endif
                protected Attribute ()
                {
                }
@@ -332,5 +335,29 @@
 
                        return ((Attribute) obj) == this;
                }
+
+#if NET_2_0
+               [MonoTODO]
+               void _Attribute.GetIDsOfNames ([In] ref Guid riid, IntPtr 
rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
+               {
+               }
+
+               [MonoTODO]
+               void _Attribute.GetTypeInfo (uint iTInfo, uint lcid, IntPtr 
ppTInfo)
+               {
+               }
+
+               [MonoTODO]
+               void _Attribute.GetTypeInfoCount (out uint pcTInfo)
+               {
+                       pcTInfo = 0;
+               }
+
+               [MonoTODO]
+               void _Attribute.Invoke (uint dispIdMember, [In] ref Guid riid, 
uint lcid, short wFlags, IntPtr pDispParams,
+                       IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
+               {
+               }
+#endif
        }
 }

Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2005-04-23 02:51:06 UTC (rev 
43467)
+++ trunk/mcs/class/corlib/System/ChangeLog     2005-04-23 02:53:43 UTC (rev 
43468)
@@ -1,3 +1,8 @@
+2005-04-22  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * Attribute.cs: Added _Attribute interface to NET_2_0 to reduce the 
+       number of "missing" in the class status pages.
+
 2005-04-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * MulticastDelegate.cs: (GetInvocationList) when building the list that

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

Reply via email to