Table of Contents

Method ComparerFor

Namespace
MailFathom.Domain.Emails
Assembly
MailFathom.Domain.dll

ComparerFor(EmailTimelineDirection)

Gets the comparer that realizes one reading direction of the timeline.

public static IComparer<EmailTimelinePosition> ComparerFor(EmailTimelineDirection direction)

Parameters

direction EmailTimelineDirection

The end of the timeline the caller reads from.

Returns

IComparer<EmailTimelinePosition>

The comparer that orders positions the way direction is read.

Exceptions

ArgumentOutOfRangeException

Thrown when direction is not a defined member.