C# String CompareTo()The C# CompareTo() method is used to compare String instance with a specified String object. It indicates whether this String instance precedes, follows, or appears in the same position in the sort order as the specified string or not. SignatureParametersstr: it is a string argument which is used to compare. ReturnIt returns an integer value. C# String CompareTo() Method ExampleOutput: 0 1
Next TopicC# String Concat()
|