次の方法で共有


Position.Equality(Position, Position) Operator

Definition

Overrides default equals operator. Two positions are equal if they are both null or one of them is the object equivalent of the other.

public:
 static bool operator ==(Microsoft::VisualStudio::LanguageServer::Protocol::Position ^ firstPosition, Microsoft::VisualStudio::LanguageServer::Protocol::Position ^ secondPosition);
public static bool operator == (Microsoft.VisualStudio.LanguageServer.Protocol.Position firstPosition, Microsoft.VisualStudio.LanguageServer.Protocol.Position secondPosition);
public static bool operator == (Microsoft.VisualStudio.LanguageServer.Protocol.Position? firstPosition, Microsoft.VisualStudio.LanguageServer.Protocol.Position? secondPosition);
static member ( = ) : Microsoft.VisualStudio.LanguageServer.Protocol.Position * Microsoft.VisualStudio.LanguageServer.Protocol.Position -> bool
Public Shared Operator == (firstPosition As Position, secondPosition As Position) As Boolean

Parameters

firstPosition
Position

The first position to compare.

secondPosition
Position

The second position to compare.

Returns

True if both positions are null or one of them is the object equivalent of the other, false otherwise.

Applies to