LIST<> AddRange throwing ArgumentException

后端 未结 2 1156
我寻月下人不归
我寻月下人不归 2021-02-14 18:34

I have a particular method that is occasionally crashing with an ArgumentException:

Destination array was not long enough. Check destIndex and length, and the ar         


        
2条回答
  •  一个人的身影
    2021-02-14 18:53

    Are you trying to update the same list from multiple threads? That could cause problems... List isn't safe for multiple writers.

提交回复
热议问题