.NET List Concat vs AddRange

后端 未结 3 886
死守一世寂寞
死守一世寂寞 2020-11-27 16:46

What is the difference between the AddRange and Concat functions on a generic List? Is one recommended over the other?

3条回答
  •  旧巷少年郎
    2020-11-27 17:15

    I found this interesting article talking about the difference between these 2 structures and comparing their performance...

    The main idea is that AddRange is way much faster when its about big size collections.

    Here is the Link

    Hope this helps,

提交回复
热议问题