+ 1

What is meaning of StringSplitOptions.None and StringSplitOptions.RemoveEmptyEntries

9th Jul 2018, 3:21 PM
kamlesh
kamlesh - avatar
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.
18th Jul 2018, 1:23 PM
Jacob Gandemo
Jacob Gandemo - avatar
+ 1
The Remove empty entries literally removes empty or null elements in a splitted string array.
11th Jul 2018, 2:28 AM
John
John - avatar
0
okay thank you
25th Jul 2018, 10:34 AM
kamlesh
kamlesh - avatar
- 1
I don't understand. why there will be null elements while splitting the string array
11th Jul 2018, 5:54 AM
kamlesh
kamlesh - avatar