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
directionEmailTimelineDirectionThe end of the timeline the caller reads from.
Returns
- IComparer<EmailTimelinePosition>
The comparer that orders positions the way
directionis read.
Exceptions
- ArgumentOutOfRangeException
Thrown when
directionis not a defined member.