Table of Contents

Class SunamoComparer.TWithDtSunamoComparer<T>

Namespace
SunamoCompare
Assembly
SunamoCompare.dll

Comparer for ITWithDt objects based on their DateTime property.

public class SunamoComparer.TWithDtSunamoComparer<T> : ISunamoComparer<ITWithDt<T>>

Type Parameters

T

The type of the value in ITWithDt.

Inheritance
SunamoComparer.TWithDtSunamoComparer<T>
Implements
Inherited Members
Extension Methods

Methods

Asc(ITWithDt<T>, ITWithDt<T>)

Compares two ITWithDt objects by DateTime for ascending order sorting.

public int Asc(ITWithDt<T> firstValue, ITWithDt<T> secondValue)

Parameters

firstValue ITWithDt<T>

The first object to compare.

secondValue ITWithDt<T>

The second object to compare.

Returns

int

A comparison result for ascending order.

Desc(ITWithDt<T>, ITWithDt<T>)

Compares two ITWithDt objects by DateTime for descending order sorting.

public int Desc(ITWithDt<T> firstValue, ITWithDt<T> secondValue)

Parameters

firstValue ITWithDt<T>

The first object to compare.

secondValue ITWithDt<T>

The second object to compare.

Returns

int

A comparison result for descending order.