Question:You need to compare two strings, s1 and s2, in such a way that the comparison is made in exactly the same way regardless of culture settings. Which code sample does this correctly?
A String.Compare(s1, s2, true)
B String.Compare(s1, s2, StringComparison.InvariantCulture)
C String.Compare(s1, s2, StringComparison.CurrentCulture)
D String.Compare(s1, s2, CultureTypes.NeutralCultures)
+ AnswerB
+ Report