[Mono-bugs] [Bug 80929][Wis] New - [System.Collections.Generic.Comparer<T>] Comparer<T> isn't really Serializable

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 22 01:05:21 EST 2007

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 dmitchell at logos.com.


--- shadow/80929	2007-02-22 01:05:21.000000000 -0500
+++ shadow/80929.tmp.30734	2007-02-22 01:05:21.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 80929
+Product: Mono: Class Libraries
+Version: 1.0
+OS: other
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: dmitchell at logos.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: [System.Collections.Generic.Comparer<T>] Comparer<T> isn't really Serializable
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+Comparer<T> is Serializable, and Comparer<T>.Default should also be Serializable. However, 
+Comparer<T>.Default is of type IComparableofTComparer<T>, which is not marked as 
+Serializable (even though it defines no additional fields...). This causes exceptions when trying to 
+Serialize an object that includes Comparer<T>.Default, which is...well...bad.
+Steps to reproduce the problem:
+1. Get Comparer<T>.Default
+2. Try to Serialize it
+3. pain
+Actual Results:
+Exceptions are thrown
+Expected Results:
+Exceptions should not be thrown
+How often does this happen? 
+Additional Information:

More information about the mono-bugs mailing list