C# List

What is the AddRange method in C# List

Adds items of another list (or an IEnumerable collection) to the end of the list.

Using AddRange method:

AddRange example:

Firstly, set a list in C# and add elements. after add listB to listA

Full example:

 

 

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.