共用方式為


CaseInsensitiveComparison.Compare 方法

定義

多載

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

根據不區分大小寫識別碼比較的 Unicode 規則,比較兩個字串, (小寫對應) 。

Compare(String, String)

根據不區分大小寫識別碼比較的 Unicode 規則,比較兩個字串, (小寫對應) 。

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

根據不區分大小寫識別碼比較的 Unicode 規則,比較兩個字串, (小寫對應) 。

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

參數

left
ReadOnlySpan<Char>

要比較的第一個識別碼

right
ReadOnlySpan<Char>

要比較的第二個識別碼

傳回

如果 為 ,則為 -1 left<right ,如果 left>right 相等,則為 0。

備註

這些也是用於 VB 識別碼比較的規則。

適用於

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

根據不區分大小寫識別碼比較的 Unicode 規則,比較兩個字串, (小寫對應) 。

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

參數

left
String

要比較的第一個識別碼

right
String

要比較的第二個識別碼

傳回

如果 為 ,則為 -1 left<right ,如果 left>right 相等,則為 0。

備註

這些也是用於 VB 識別碼比較的規則。

適用於