+ 1
remove element from array
I can not for the life of me remember how to remove an element from an array in c# I know its simple but I cant remember any help would be great
5 ответов
+ 3
hinanawi Resize is just one of many ways to a replace with a new array.
+ 2
Arrays in C# can not change size. Use Lists or replace with a new array.
+ 1
John Wells well you can use Array.Resize() to create a new array of a different length and replace the old array with that one, but it is beyond inefficient
+ 1
I think you should use dynamic container classes eg. vector, list etc.
which has erase member function.