Share via


PatternMatchKindExtensions.CompareTo Method

Definition

Compares two PatternMatchKind values, suggesting which one is more likely to be what the user was searching for.

public:
[System::Runtime::CompilerServices::Extension]
 static int CompareTo(Microsoft::VisualStudio::Text::PatternMatching::PatternMatchKind kind1, Microsoft::VisualStudio::Text::PatternMatching::PatternMatchKind kind2);
public static int CompareTo (this Microsoft.VisualStudio.Text.PatternMatching.PatternMatchKind kind1, Microsoft.VisualStudio.Text.PatternMatching.PatternMatchKind kind2);
static member CompareTo : Microsoft.VisualStudio.Text.PatternMatching.PatternMatchKind * Microsoft.VisualStudio.Text.PatternMatching.PatternMatchKind -> int
<Extension()>
Public Function CompareTo (kind1 As PatternMatchKind, kind2 As PatternMatchKind) As Integer

Parameters

kind1
PatternMatchKind

Item to be compared.

kind2
PatternMatchKind

Item to be compared.

Returns

A negative value means kind1 is preferable, positive means kind2 is preferable. Zero means they are equivalent.

Applies to