Why is this happen
ienumerable<object> iee = (ienumarable<object>)this.where(c=>c.condition1 == true); //example satisfy 10 items
//now iee has 10 items
foreach(object o in this.where(c=>c.condition1 == true))
{
o.condition1 = false;
}
//iee here becomes empty;
the_method_that_will_recieve("sample", iee);
the_method_that_will_recieve(string s, ienumarable<object> ie)
{
//ie is still empty
//some process
}could you help me why the variable iee becomes empty.
thanks.