How do I check if a string is greater than another C#?

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  Bir kütle nasıl ölçülür?

Leave a Reply

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