How to compare characters (respecting a culture)
问题 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? 回答1: There is indeed a difference between comparing characters and strings. Let me try to explain the basic issue, which is quite simple: A character always represents a single unicode point. Comparing characters