Table of Contents

Class HierarchicalKeyComparer

Namespace
Tlumach.Base
Assembly
Tlumach.Base.dll
public class HierarchicalKeyComparer : IComparer<string>
Inheritance
HierarchicalKeyComparer
Implements
Inherited Members

Methods

Compare(string?, string?)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

public int Compare(string? x, string? y)

Parameters

x string

The first object to compare.

y string

The second object to compare.

Returns

int

A signed integer that indicates the relative values of x and y, as shown in the following table.

Value Meaning
Less than zerox is less than y.
Zerox equals y.
Greater than zerox is greater than y.

CompareKeys(string?, string?)

public static int CompareKeys(string? x, string? y)

Parameters

x string
y string

Returns

int