[]
Defines a method that a type implements to compare two structs.
public interface IStructComparer<T> where T : struct
TThe type of structs to compare.
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)
x TThe first struct to compare.
y TThe second struct to compare.
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.