[Mono-dev] Problem with List<T>.Sort(IComparer<T>)
atsushi at ximian.com
Tue Dec 6 20:16:36 EST 2005
No worry! it's nothing more than just a hint to find bugs. I couldn't
find that bug when I queried InvalidCastException ;-) Thanks for
(attempt for) filing couple of bugs.
Grant Monroe wrote:
> Sorry about that. Looks like I checked something incorrectly when I
> did my bugzilla search. I figured someone would have already found it.
> that's why I posted to the list.
> Grant Monroe
> On 12/6/05, Atsushi Eno <atsushi at ximian.com> wrote:
>> I've already filed it as
>> Basically you can query bugs before filing new one (and is highly
>> recommended). For class libraries, try the type name of the target
>> class (with the target assembly) if you know. In this case, you
>> will find this bug when you query "List" in CORLIB.
>> (Feel free to add cc: to yourself on that bug if you'd like to
>> keep track of the bug.)
>> Atsushi Eno
>> Grant Monroe wrote:
>>> The following code results in an InvalidCastException rather than an
>>> InvalidOperationExcepation wrapping the ApplicationException. I didn't
>>> find any bug explicitly about this, but I just wanted make sure this
>>> wasn't covered by another bug in bugzilla. If not, I'll go ahead and
>>> post it.
>>> using System;
>>> using System.IO;
>>> using System.Collections.Generic;
>>> public class TestComparer: IComparer<string>
>>> public int Compare(string x, string y)
>>> throw new ApplicationException("doesn't even get called");
>>> class Test
>>> public static void Main(string args)
>>> List<string> l = new List<string>();
>>> TestComparer sc = new TestComparer();
>>> Mono-devel-list mailing list
>>> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list