This method performs a word (case-sensitive and culture-sensitive) search using the current culture.
Which means that it is equivalent to:
int notesFirstSpaceIndex = notes.IndexOf(" ", StringComparison.CurrentCulture);
Regarding the difference (between calling an overload that takes no parameter, and the corresponding overload passing the default value as the paremeter), the difference is almost nothing. If you look at the source code of the first overload of the method, it actually calls the other overload of the method passing the default value as the parameter value.
Asked in February 2016Viewed 2,817 timesVoted 14Answered 1 times