/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { if (stream.ReadMarker() == Markers.StartTopFld) { this.StartMarker = Markers.StartTopFld; this.FolderContentNoDelProps = new FolderContentNoDelProps(stream); if (stream.ReadMarker() == Markers.EndFolder) { this.EndMarker = Markers.EndFolder; } } }
/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { if (stream.ReadMarker() == Markers.StartSubFld) { this.StartMarker = Markers.StartSubFld; this.folderContentNoDelProps = new FolderContentNoDelProps(stream); if (stream.ReadMarker() == Markers.EndFolder) { this.EndMarker = Markers.EndFolder; } else { throw new Exception("The SubFolderNoDelProps cannot be parsed successfully. The EndFolder Marker is missed."); } } }