PatternMatchKindExtensions.CompareTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.