Condividi tramite


StringSegment.Equals Method

Definition

Overloads

Equals(StringSegment, StringSegment, StringComparison)

Determines whether two specified StringSegment objects have the same value. A parameter specifies the culture, case, and sort rules used in the comparison.

Equals(String, StringComparison)

Checks if the specified String is equal to the current StringSegment.

Equals(StringSegment, StringComparison)

Indicates whether the current object is equal to another object of the same type.

Equals(StringSegment)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Indicates whether the current object is equal to another object of the same type.

Equals(String)

Checks if the specified String is equal to the current StringSegment.

Equals(StringSegment, StringSegment, StringComparison)

Source:
StringSegment.cs
Source:
StringSegment.cs
Source:
StringSegment.cs

Determines whether two specified StringSegment objects have the same value. A parameter specifies the culture, case, and sort rules used in the comparison.

public:
 static bool Equals(Microsoft::Extensions::Primitives::StringSegment a, Microsoft::Extensions::Primitives::StringSegment b, StringComparison comparisonType);
public static bool Equals (Microsoft.Extensions.Primitives.StringSegment a, Microsoft.Extensions.Primitives.StringSegment b, StringComparison comparisonType);
static member Equals : Microsoft.Extensions.Primitives.StringSegment * Microsoft.Extensions.Primitives.StringSegment * StringComparison -> bool
Public Shared Function Equals (a As StringSegment, b As StringSegment, comparisonType As StringComparison) As Boolean

Parameters

a
StringSegment

The first StringSegment to compare.

b
StringSegment

The second StringSegment to compare.

comparisonType
StringComparison

One of the enumeration values that specifies the rules for the comparison.

Returns

true if the objects are equal; otherwise, false.

Applies to

Equals(String, StringComparison)

Source:
StringSegment.cs
Source:
StringSegment.cs
Source:
StringSegment.cs

Checks if the specified String is equal to the current StringSegment.

public:
 bool Equals(System::String ^ text, StringComparison comparisonType);
public bool Equals (string? text, StringComparison comparisonType);
override this.Equals : string * StringComparison -> bool
Public Function Equals (text As String, comparisonType As StringComparison) As Boolean

Parameters

text
String

The String to compare with the current StringSegment.

comparisonType
StringComparison

One of the enumeration values that specifies the rules to use in the comparison.

Returns

true if the specified String is equal to the current StringSegment; otherwise, false.

Exceptions

text is null.

Applies to

Equals(StringSegment, StringComparison)

Source:
StringSegment.cs
Source:
StringSegment.cs
Source:
StringSegment.cs

Indicates whether the current object is equal to another object of the same type.

public:
 bool Equals(Microsoft::Extensions::Primitives::StringSegment other, StringComparison comparisonType);
public bool Equals (Microsoft.Extensions.Primitives.StringSegment other, StringComparison comparisonType);
override this.Equals : Microsoft.Extensions.Primitives.StringSegment * StringComparison -> bool
Public Function Equals (other As StringSegment, comparisonType As StringComparison) As Boolean

Parameters

other
StringSegment

An object to compare with this object.

comparisonType
StringComparison

One of the enumeration values that specifies the rules to use in the comparison.

Returns

true if the current object is equal to other; otherwise, false.

Applies to

Equals(StringSegment)

Source:
StringSegment.cs
Source:
StringSegment.cs
Source:
StringSegment.cs

Indicates whether the current object is equal to another object of the same type.

public:
 virtual bool Equals(Microsoft::Extensions::Primitives::StringSegment other);
public bool Equals (Microsoft.Extensions.Primitives.StringSegment other);
override this.Equals : Microsoft.Extensions.Primitives.StringSegment -> bool
Public Function Equals (other As StringSegment) As Boolean

Parameters

other
StringSegment

An object to compare with this object.

Returns

true if the current object is equal to other; otherwise, false.

Implements

Applies to

Equals(Object)

Source:
StringSegment.cs
Source:
StringSegment.cs
Source:
StringSegment.cs

Indicates whether the current object is equal to another object of the same type.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object? obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

An object to compare with this object.

Returns

true if the current object is equal to obj; otherwise, false.

Applies to

Equals(String)

Source:
StringSegment.cs
Source:
StringSegment.cs
Source:
StringSegment.cs

Checks if the specified String is equal to the current StringSegment.

public:
 virtual bool Equals(System::String ^ text);
public bool Equals (string? text);
override this.Equals : string -> bool
Public Function Equals (text As String) As Boolean

Parameters

text
String

The String to compare with the current StringSegment.

Returns

true if the specified String is equal to the current StringSegment; otherwise, false.

Implements

Applies to