Method Read
- Namespace
- MailFathom.Application.EmailContent.Cleaning
- Assembly
- MailFathom.Application.dll
Read(IReadOnlyList<MailBodyCleaningSegment>, int)
Reads a proposal as the blocks it keeps, or refuses it.
public static IReadOnlyList<int>? Read(IReadOnlyList<MailBodyCleaningSegment> segments, int blockCount)
Parameters
segmentsIReadOnlyList<MailBodyCleaningSegment>The ranges as a producer wrote them.
blockCountintHow many top-level blocks the document holds, which the ranges have to cover exactly.
Returns
- IReadOnlyList<int>
The indices to keep, in ascending order, or null where the ranges do not describe the document.
Exceptions
- ArgumentNullException
Thrown when
segmentsis null.- ArgumentOutOfRangeException
Thrown when
blockCountis negative.