SequencePosition.Equals Method

Definition

Overloads

Equals(Object)

Returns a value that indicates whether the current instance is equal to another object.

Equals(SequencePosition)

Indicates whether the current instance is equal to another SequencePosition.

Equals(Object)

Source:
SequencePosition.cs
Source:
SequencePosition.cs
Source:
SequencePosition.cs

Returns a value that indicates whether the current instance is equal to another object.

C#
public override bool Equals(object? obj);
C#
public override bool Equals(object obj);

Parameters

obj
Object

The object to compare with the current instance.

Returns

true if obj is of type SequencePosition and is equal to the current instance; otherwise, false.

Remarks

Equality does not guarantee that the two instances point to the same location in a ReadOnlySequence<T>.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1

Equals(SequencePosition)

Source:
SequencePosition.cs
Source:
SequencePosition.cs
Source:
SequencePosition.cs

Indicates whether the current instance is equal to another SequencePosition.

C#
public bool Equals(SequencePosition other);

Parameters

other
SequencePosition

The sequence position to compare with the current instance.

Returns

true if the two instances are equal; false otherwise.

Implements

Remarks

Equality does not guarantee that the two instances point to the same location in a ReadOnlySequence<T>.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1