When I tried to split a string value of some text here
with ++
. I expected the result to be an empty list. Since the ++
is not found in the string some text here
, the result of a Count
on the List
should be 0
.
However, the result I get is 1
(when I Count
on the List
).
How am I able to determine if the string has no ++
in it ? (a Count did not work)
List<string> l = value.Split("++").ToList();