internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer) { base.Deserialize(so, deserializer); // The "repeatHeader" property was added later (V5, V6) and presents an incompatibility when remoting to older version PowerShell sessions. // When the property is missing from the serialized object, let the deserialized property be false. this.repeatHeader = deserializer.DeserializeBoolMemberVariable(so, "repeatHeader", cannotBeNull: false); this.hideHeader = deserializer.DeserializeBoolMemberVariable(so, "hideHeader"); FormatInfoDataListDeserializer <TableColumnInfo> .ReadList(so, "tableColumnInfoList", this.tableColumnInfoList, deserializer); }
internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer) { base.Deserialize(so, deserializer); FormatInfoDataListDeserializer <FormatPropertyField> .ReadList(so, "formatPropertyFieldList", this.formatPropertyFieldList, deserializer); this.multiLine = deserializer.DeserializeBoolMemberVariable(so, "multiLine"); }
internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer) { base.Deserialize(so, deserializer); this.formatEntryInfo = (FormatEntryInfo)deserializer.DeserializeMandatoryMemberObject(so, "formatEntryInfo"); this.outOfBand = deserializer.DeserializeBoolMemberVariable(so, "outOfBand"); this.writeStream = deserializer.DeserializeWriteStreamTypeMemberVariable(so); this.isHelpObject = so.IsHelpObject; }