Example of when the culture parameter of string.Equals (c#) actually makes a difference?

Posted by dru-zod on Stack Overflow See other posts from Stack Overflow or by dru-zod
Published on 2010-05-27T08:43:22Z Indexed on 2010/05/27 10:41 UTC
Read the original article Hit count: 234

Filed under:
|

I don’t fully understand the second parameter of string.Equals, and this is because I can’t find any examples of when it would actually make a difference. For example, the example given here is the same, regardless of the value of the second parameter (aside from IgnoreCase): http://msdn.microsoft.com/en-us/library/c64xh8f9.aspx

I am just talking about the values StringComparison.CurrentCulture, InvariantCulture, or Ordinal.
I can understand the difference between these and their IgnoreCase equivalents.

© Stack Overflow or respective owner

Related posts about c#

Related posts about string