[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.IStructComparer-1

Interface IStructComparer<T>

Namespace
GrapeCity.Documents.Common
Assembly
GcDocs.Imaging.dll

Defines a method that a type implements to compare two structs.

public interface IStructComparer<T> where T : struct

Type Parameters

T

The type of structs to compare.

Methods

Compare(in T, in T)

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

int Compare(in T x, in T y)

Parameters

x T

The first struct to compare.

y T

The second struct to compare.

Returns

int

A signed integer that indicates the relative values of x and y. Value Meaning Less than 0 x is less than y. 0 x equals y. Greater than 0 x is greater than y.