[Mono-bugs] [Bug 62372][Wis] New - GetCustomAttributes does not return SerializableAttribute (2.0)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 3 Aug 2004 14:22:09 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by duncan@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=62372

--- shadow/62372	2004-08-03 14:22:09.000000000 -0400
+++ shadow/62372.tmp.12301	2004-08-03 14:22:09.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 62372
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: duncan@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: GetCustomAttributes does not return SerializableAttribute (2.0)
+
+Given something like:
+
+using System;
+
+class FooAttribute : Attribute {}
+
+[Serializable, Foo]
+class Test {}
+
+class X {
+
+        static void Main ()
+        {
+                Type t = typeof (Test);
+
+                foreach (Attribute attr in t.GetCustomAttributes (false))
+                {
+                        Console.WriteLine (attr.ToString ());
+                }
+        }
+}
+
+On net-2-0, it'll return both FooAttribute as well as
+System.SerializableAttribute.