[Mono-bugs] [Bug 74717][Nor] New - [GMCS] SerializableAttribute added for all enums

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 24 Apr 2005 18:48:55 -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 gonzalo@ximian.com.

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

--- shadow/74717	2005-04-24 18:48:55.000000000 -0400
+++ shadow/74717.tmp.22638	2005-04-24 18:48:55.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 74717
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] SerializableAttribute added for all enums
+
+Compile with gmcs:
+-------------
+using System;
+using System.Security.Cryptography;
+
+class C {
+        static void Main ()
+        {
+                Type t = typeof (CipherMode);
+                Console.WriteLine (t);
+                Console.WriteLine (t.IsSerializable);
+                object [] objs = t.GetCustomAttributes (false);
+                foreach (object o in objs)
+                        Console.WriteLine (o.GetType ());
+        }
+}
+-------------
+
+and run.
+
+Actual results:
+System.Security.Cryptography.CipherMode
+True
+System.SerializableAttribute
+
+Expected results (this is what you get on MS beta2 and mono 1.1/mcs):
+System.Security.Cryptography.CipherMode
+True