P peggjones Active Member Licensed User Longtime User Aug 4, 2017 #1 Whenever I try to use InsertAt with a list I get "unsupported operation exception" Is this a bug? Many thanks.
Whenever I try to use InsertAt with a list I get "unsupported operation exception" Is this a bug? Many thanks.
R Roycefer Well-Known Member Licensed User Longtime User Aug 4, 2017 #2 You are probably using an immutable List which you get by assigning an Array to a List. If you want to add a bunch of items to a List, use List.AddAll and the List will remain mutable. Upvote 0
You are probably using an immutable List which you get by assigning an Array to a List. If you want to add a bunch of items to a List, use List.AddAll and the List will remain mutable.