Table of Contents

Method NamesSameFolderAs

Namespace
MailFathom.Domain.Folders
Assembly
MailFathom.Domain.dll

NamesSameFolderAs(RemoteFolderPath)

Answers whether two paths name the same folder on the server.

public bool NamesSameFolderAs(RemoteFolderPath other)

Parameters

other RemoteFolderPath

The path to compare with.

Returns

bool

true when both name one folder.

Remarks

The comparison is the advertised text alone, which is not what this type's own equality answers: a value also carries the hierarchy delimiter the server reported, and two records of one folder can disagree about it when one was written before the server reported a delimiter and the other after. That disagreement is a real distinction where a resolution is being rebound, which is why equality keeps it, and no distinction at all where the question is whether a discovered message landed in the folder a record names. This is the second question, asked in one place instead of at every call site that would otherwise reach past the type into Value.