 | MimeParserIsEndOfStream Property |
Get a value indicating whether the parser has reached the end of the input stream.
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxpublic bool IsEndOfStream { get; }
Property Value
Boolean if this parser has reached the end of the input stream;
otherwise,
.
Implements
IMimeParserIsEndOfStream
Remarks
Gets a value indicating whether the parser has reached the end of the input stream.
Examplepublic static void ParseMbox (string fileName)
{
using (var stream = fileName.OpenRead (fileName)) {
var parser = new MimeParser (stream, MimeFormat.Mbox);
while (!parser.IsEndOfStream) {
MimeMessage message = parser.ParseMessage ();
long mboxMarkerOffset = parser.MboxMarkerOffset;
string mboxMarker = parser.MboxMarker;
Console.WriteLine ($"MBOX marker found @ {mboxMarkerOffset}: {mboxMarker}");
}
}
}
See Also