Closed GoogleCodeExporter closed 9 years ago
> What version of the product are you using?
> 1.2
Is the 1.2 a typo? The most current release at the time this issue was reported
was 1.1. I checked against version 1.1 and ElementAtOrDefault does not throw
ArgumentOutOfRangeException. You can see from line 588 on of Enumerable.cs [1]
that the implementation specifically handles a negative index to return
default(T). It also does this when the index is greater than or equal to the
count of items in the list. Attached is a complete solution that tried to
reproduce the problem but it does not demonstrate the reported behavior.
[1]
http://code.google.com/p/linqbridge/source/browse/tags/REL-1.1/src/Enumerable.cs
#588
Original comment by azizatif
on 19 Oct 2010 at 8:57
Attachments:
Apologies, I was working with 1.0.2. The latest version works correctly.
Regards
Original comment by kevinkn...@gmail.com
on 20 Oct 2010 at 5:26
Original issue reported on code.google.com by
kevinkn...@gmail.com
on 19 Oct 2010 at 1:45