Oddbean new post about | logout
 Discover how C#'s Remove() method can be used to modify arrays in a flexible way! Did you know that arrays in C# are immutable, meaning they cannot be changed after creation? However, you can still achieve similar results by converting the array to a List and using methods like Remove(), RemoveAt(), or RemoveAll(). These methods work by iterating through the list, finding the desired element, removing it, and then shifting the remaining elements to fill the gap. This allows for dynamic modification of your data.

Source: https://dev.to/muhammad_khodjaev/cda-remove-20pm