How to compare characters (respecting a culture)

Posted by tanascius on Stack Overflow See other posts from Stack Overflow or by tanascius
Published on 2010-05-21T09:06:18Z Indexed on 2010/05/21 9:10 UTC
Read the original article Hit count: 264

Filed under:
|
|
|

For my answer in this question I have to compare two characters. I thought that the normal char.CompareTo() method would allow me to specify a CultureInfo, but that's not the case.

So my question is: How can I compare two characters and specify a CultureInfo for the comparison?

© Stack Overflow or respective owner

Related posts about c#

Related posts about char