I got ienumerable method which I read data from database and this data i put in array of object
while (reader.Read())
{
var values = new object[reader.FieldCount];
reader.GetValues(values);
yield return values;
}
And in another method i'm iterating these objects
foreach (var items in repo.ExecuteReader()
{
rss.Id = items[0]; // not work
yield return items;
}
How can I indexing there array of 'items'?