Skip to content

SourcePosition.Equals Method ​

Overloads ​

NameDescription
Equals(SourcePosition)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Determines whether the specified object is equal to the current object.

Equals(SourcePosition) ​

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

c#
public new abstract bool Equals(SourcePosition? other);

Parameters ​

NameTypeDescription
otherSourcePositionAn object to compare with this object.

Returns ​

Boolean

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

Equals(Object) ​

Determines whether the specified object is equal to the current object.

c#
public sealed override bool Equals(object? obj);

View source

Parameters ​

NameTypeDescription
objObjectThe object to compare with the current object.

Returns ​

Boolean

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