ArrayList vs List<object>

前端 未结 6 1583
夕颜
夕颜 2020-11-27 17:43

I saw this reply from Jon on Initialize generic object with unknown type:

If you want a single collection to contain multiple unrelated types of v

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 18:34

    Do some benchmarking and you will know what performs best. I guestimate that the difference is very small.

提交回复
热议问题