LogicalStringComparer.Equals 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Equals(String, String) |
判斷兩個字串是否邏輯相等。 |
Equals(String, Int32, Int32, String, Int32, Int32) |
判斷兩個字串是否邏輯相等。 |
Equals(String, String)
Equals(String, Int32, Int32, String, Int32, Int32)
判斷兩個字串是否邏輯相等。
public bool Equals (string? s1, int start1, int length1, string? s2, int start2, int length2);
override this.Equals : string * int * int * string * int * int -> bool
Public Function Equals (s1 As String, start1 As Integer, length1 As Integer, s2 As String, start2 As Integer, length2 As Integer) As Boolean
參數
- s1
- String
要用於比較中的第一個字串。
- start1
- Int32
s1
中子字串的位置。
- length1
- Int32
內的 s1
子字串長度。
- s2
- String
要用於比較的第二個字串。
- start2
- Int32
s2
中子字串的位置。
- length2
- Int32
內的 s2
子字串長度。
傳回
true
如果字串在邏輯上相等,則為 , false
否則為 。