Table of Contents

Method Equals

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

Equals(EmailAddress)

Compares two addresses by the form they were normalized to.

public bool Equals(EmailAddress other)

Parameters

other EmailAddress

The address to compare with.

Returns

bool

true when both name the same mailbox.

Remarks

Equality is the comparison form alone, because the other two members are presentation: the display name is what one sender chose to write, and Address keeps that sender's casing. Letting either take part would make Anna@Example.test and anna@example.test two participants in any Distinct, set, or dictionary — the exact merge normalization exists to perform.