Megosztás a következőn keresztül:


CaseInsensitiveComparison.Compare Method

Definition

Overloads

Compare(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

Compares two strings according to the Unicode rules for case-insensitive identifier comparison (lower-case mapping).

Compare(String, String)

Compares two strings according to the Unicode rules for case-insensitive identifier comparison (lower-case mapping).

Compare(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs

Compares two strings according to the Unicode rules for case-insensitive identifier comparison (lower-case mapping).

public static int Compare (ReadOnlySpan<char> left, ReadOnlySpan<char> right);
static member Compare : ReadOnlySpan<char> * ReadOnlySpan<char> -> int
Public Shared Function Compare (left As ReadOnlySpan(Of Char), right As ReadOnlySpan(Of Char)) As Integer

Parameters

left
ReadOnlySpan<Char>

First identifier to compare

right
ReadOnlySpan<Char>

Second identifier to compare

Returns

-1 if left < right, 1 if left > right, 0 if they are equal.

Remarks

These are also the rules used for VB identifier comparison.

Applies to

Compare(String, String)

Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs
Source:
CaseInsensitiveComparison.cs

Compares two strings according to the Unicode rules for case-insensitive identifier comparison (lower-case mapping).

public:
 static int Compare(System::String ^ left, System::String ^ right);
public static int Compare (string left, string right);
static member Compare : string * string -> int
Public Shared Function Compare (left As String, right As String) As Integer

Parameters

left
String

First identifier to compare

right
String

Second identifier to compare

Returns

-1 if left < right, 1 if left > right, 0 if they are equal.

Remarks

These are also the rules used for VB identifier comparison.

Applies to