Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Compare

func Compare(left: string, right: string) -> int

Declaring type: StringComparer
Module: System
Assembly: System.Runtime.dll
Source file: StringComparer.rvn

Implements Comparer<String>.Compare

Compares canonical, exact or simply folded scalar sequences under the selected policy.

Parameters

Name Type Description
left String The first non-null string.
right String The second non-null string.

Return value

Int32

A negative, zero or positive value according to order.