Posted on 2007-07-31
I am getting a list of results from my database which is being returned in a constructor taking various parameters (ID, name, description etc). This will be formed as an IList<MyConstruct>
From here I am appending additional data to this by doing a foreach:
foreach (MyConstruct in returnedList)
// add data to constructor
My question is how can I then take the newly created ones in my foreach and make it an IList so that it fits in with my return type?