public static List <TObject> CopyAllToList <TObject>(IEnumerable <TObject> source) { List <TObject> copy = new List <TObject>(); CollectionHelper.ActionOnEach <TObject>(source, delegate(TObject t) { copy.Add(t); }); return(copy); }
public static List <TObject> CopyAllToList <TObject>(IEnumerable <TObject> source) { List <TObject> copy = new List <TObject>(); CollectionHelper.ActionOnEach <TObject>(source, delegate(TObject t) { copy.Add(t); }); return(copy); }