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) 

+ Answer
+ Report
Total Preview: 1138

Copyright © 2024. Powered by Intellect Software Ltd