How do I compare strings greater than in C#?

C# String Compare() The C# Compare() method is used to compare first string with second string lexicographically. It returns an integer value. If both strings are equal, it returns 0. If first string is greater than second string, it returns 1 else it returns -1 .

Sizin İçin Seçtik  How do I make a .contain case insensitive?

Leave a Reply

Your email address will not be published. Required fields are marked *