+ 1
What is meaning of StringSplitOptions.None and StringSplitOptions.RemoveEmptyEntries
4 ответов
+ 2
kamlesh Let's say you have a string like this "1,3, ,8," and split it with ","
RemoveEmptyEnties option => { "1", "3", "8" }
None option => { "1", "3", " ", "8", "" }
Conclusion: RemoveEmptyEnties will automatically remove empty entries that only include spaces or an empty string.
+ 1
The Remove empty entries literally removes empty or null elements in a splitted string array.
0
okay thank you
- 1
I don't understand. why there will be null elements while splitting the string array