c# - Add List<T> to beginning of another List<T> -
i'm looking way add list beginning of list (specifically, strings).
i have found list.insert method, single object.
i have thought each loop insert item, add them backwards.
how can this?
thanks.
you can use list.insertrange:
list.insertrange(0, otherstrings);
Comments
Post a Comment