共用方式為


Position.Equals Method

Definition

Overloads

Equals(Position)
Equals(Object)

Overrides base class method Equals(Object). Two positions are equal if their line and character are the same.

Equals(Position)

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

public:
 virtual bool Equals(Microsoft::VisualStudio::LanguageServer::Protocol::Position ^ other);
public bool Equals (Microsoft.VisualStudio.LanguageServer.Protocol.Position other);
public bool Equals (Microsoft.VisualStudio.LanguageServer.Protocol.Position? other);
override this.Equals : Microsoft.VisualStudio.LanguageServer.Protocol.Position -> bool
Public Function Equals (other As Position) As Boolean

Parameters

other
Position

Returns

Implements

Applies to

Equals(Object)

Overrides base class method Equals(Object). Two positions are equal if their line and character are the same.

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

Object to compare to.

Returns

True if the given position has the same line and character; false otherwise.

Applies to