Table of Contents

Delegate Comparer<T>

Namespace
Sdl3Sharp.Utilities
Assembly
Sdl3Sharp.dll

Represents a method that is used to comparer two item of type T regarding their ordering

public delegate int Comparer<T>(ref readonly T a, ref readonly T b) where T : unmanaged

Parameters

a T

The first item to compare

b T

The second item to compaer

Returns

int

-1, if a should be ordered before b; 1, if a should be ordered after b; otherwise, 0 and a and b are consindered equal

Type Parameters

T

The type of items to compare

Remarks

If the two items a and b are equal (the return value of this method is 0), their order while sorting is undefined.