[Mono-bugs] [Bug 490016] New: Enumerable.Intersect(...) doesn't follow the spec

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Mar 28 15:14:02 EDT 2009


https://bugzilla.novell.com/show_bug.cgi?id=490016


           Summary: Enumerable.Intersect(...) doesn't follow the spec
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: chris at dunelm.org.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem:
The Enumerable.Intersect(...) functions don't quite follow the spec, and don't
have the same functionality as MS.NET.
There are two issues:
1. The parameters are enumerated in the wrong order.
2. The output should only contain distinct values - it contains duplicates at
the moment.

Steps to reproduce the problem:
Just look at the code to see problem 1.
Problem 2:
int[] a = { 1, 1 }, b = { 1, 1 };
foreach (var x in a.Intersect(b)) {
    Console.WriteLine(x);
}


Actual Results:


Expected Results:


How often does this happen? 
Every time

Additional Information:

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list