Is there a function to remove the last cell from array?
it's a string array like: {"a","b","c",""}
.
The length of an array is immutable, but you can create a new array without the empty ""
strings:
string[] newArray = myArray.Where(str => str != "").ToArray();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With