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. There are several overloads with various uses, but we will be focusing on the method overload takes two strings as parameters and returns an int value that represents how the strings relate to each other.