I have this piece of code:
var index = some_string.IndexOf(Delimiter);
When Delimiter equals "\u0003", this seems not to work, so I have solved this as follows:
var index = some_string.IndexOf(Delimiter, System.StringComparison.Ordinal);
Delimiter equals "\u0003" and I can confirm this is working (I did some trial-and-error with all possible System.StringComparison enums and the Ordinal (and its case-related brother) were able to find the delimiter).
It's the idea that this piece of code also works for other delimiter characters. Some obvious ones, like "|", "@" are already tested and are working fine. I don't expect my customers to use language-typical characters.
Can anybody confirm if ±all to-be-expected-as-delimiter characters are covered by the Ordinal enum, or expressed more clearly: which non-language-typical characters are not found by the expression var index = some_string.IndexOf(Delimiter, System.StringComparison.Ordinal);?