5.3.4 How to Compare Strings

In C#, strings cannot be compared directly using greater than and less than operators. Instead, you can use the static Compare method on the string class. The method takes two strings as parameters and returns an int value that represents how the strings relate to each other.