Share via


LogicalStringComparer.Equals Method

Definition

Overloads

Equals(String, String)

Determines whether two strings are logically equal.

Equals(String, Int32, Int32, String, Int32, Int32)

Determines whether two strings are logically equal.

Equals(String, String)

Determines whether two strings are logically equal.

public override bool Equals (string? s1, string? s2);
override this.Equals : string * string -> bool
Public Overrides Function Equals (s1 As String, s2 As String) As Boolean

Parameters

s1
String

The first string to compare.

s2
String

The second string to compare.

Returns

true if the strings are logically equal, false if they are not.

Applies to

Equals(String, Int32, Int32, String, Int32, Int32)

Determines whether two strings are logically equal.

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

Parameters

s1
String

The first string to use in the comparison.

start1
Int32

The position of the substring within s1.

length1
Int32

The length of the substring within s1.

s2
String

The second string to use in the comparison.

start2
Int32

The position of the substring within s2.

length2
Int32

The length of the substring within s2.

Returns

true if the strings are logically equal, false if they are not.

Applies to