ASP MVC LINQ to SQL IQueryable Array out of bounds?
Posted
by Jacob Huggart
on Stack Overflow
See other posts from Stack Overflow
or by Jacob Huggart
Published on 2010-05-22T20:48:06Z
Indexed on
2010/05/22
20:50 UTC
Read the original article
Hit count: 256
Hey guys,
I have an Iqueryable that is populated from the database and then converted to an Array.
That works fine.
The issue is when I only have 1 element in the Array. I try to use the 0th element and it says "ArrayOutOfBoundsException". When I have 2+ elements in the array and pull elements 0 and 1 it works fine.
What gives?
© Stack Overflow or respective owner