EmailAddressEqualityComparer

Namespace: Proffer.Email.Internal

Supports the comparison of IEmailAddress for equality when the email address only should match.

public class EmailAddressEqualityComparer : Proffer.EqualityComparerBase`1[[Proffer.Email.IEmailAddress, Proffer.Email, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.IEqualityComparer, System.Collections.Generic.IEqualityComparer`1[[Proffer.Email.IEmailAddress, Proffer.Email, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectEqualityComparer<IEmailAddress> → EqualityComparerBase<IEmailAddress> → EmailAddressEqualityComparer
Implements IEqualityComparer, IEqualityComparer<IEmailAddress>

Constructors

EmailAddressEqualityComparer()

public EmailAddressEqualityComparer()

Methods

GetEqualityComponents(IEmailAddress)

Gets the object’s components that participate in equality comparisons.

protected IEnumerable<object> GetEqualityComponents(IEmailAddress obj)

Parameters

obj IEmailAddress
The object.

Returns

IEnumerable<Object>

        An enumerable containing the properties values.