Inserting items to a collection,
MyList.Clear();
MyList.InsertRange(MyList.Count, Collection1);
MyList.InsertRange(MyList.Count, Collection2);
MyList.InsertRange(MyList.Count, Collection3);
In the above code, I am inserting 3 times to the same list in order to follow the sequence. Can this be replaced efficiently?
See Question&Answers more detail:os