public IList <T> ToList <T>(ToListCallback <T> callback) { List <T> list = new List <T>(); using (this) while (reader.Read()) { list.Add(callback(this)); } return(list); }
public IList ToList(ToListCallback callback) { ArrayList list = new ArrayList(); using (this) while (reader.Read()) { list.Add(callback(this)); } return(list); }