fjgandrade / sharpkit

Automatically exported from code.google.com/p/sharpkit
0 stars 0 forks source link

Concat iterator issue #365

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The concat iterator becomes unusable after Any() is called on it. Here's a 
repro:

var l1 = new int[]{1, 2};
var l2 = new int[]{3, 4};
var lc = l1.Concat(l2);
lc.Any();
lc.Any();

this will throw an exception on the second Any().

Original issue reported on code.google.com by polofili...@gmail.com on 3 Sep 2014 at 10:16

GoogleCodeExporter commented 9 years ago

Original comment by sebastia...@gmail.com on 8 Oct 2014 at 4:33