TakeLast changes order of items

Example:   var source = Enumerable.Range(1, 25); var items = source.TakeLast(10); foreach (int i in items) Console.WriteLine(i);   Expected output: 16..25 Actual output: 20..16, 25..21   Solution: ...

Id #29135 | Release: None | Updated: Feb 2, 2013 at 5:23 AM by richarddeeming | Created: Oct 11, 2010 at 8:56 PM by richarddeeming

SkipLast changes order of items

Example:   var source = Enumerable.Range(1, 30); var items = source.SkipLast(10); foreach (int i in items) Console.WriteLine(i);   Expected output: 1..20 Actual output: 2..10, 1, 11..20   Solution:...

Id #29134 | Release: None | Updated: Feb 2, 2013 at 5:23 AM by richarddeeming | Created: Oct 11, 2010 at 8:46 PM by richarddeeming

  • 1-2 of 2 Work Items
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Work Items