public Parse ( Stream s ) : void | ||
s | Stream | An stream containing ModifyRecipientRow structure |
return | void |
/// <summary> /// Parse the RopModifyRecipientsRequest structure. /// </summary> /// <param name="s">An stream containing RopModifyRecipientsRequest structure</param> public override void Parse(Stream s) { base.Parse(s); this.RopId = (RopIdType)ReadByte(); this.LogonId = ReadByte(); this.InputHandleIndex = ReadByte(); this.ColumnCount = ReadUshort(); List<PropertyTag> propertyTags = new List<PropertyTag>(); for (int i = 0; i < ColumnCount; i++) { PropertyTag propertyTag = new PropertyTag(); propertyTag.Parse(s); propertyTags.Add(propertyTag); } this.RecipientColumns = propertyTags.ToArray(); this.RowCount = ReadUshort(); List<ModifyRecipientRow> modifyRecipientRows = new List<ModifyRecipientRow>(); for (int i = 0; i < RowCount; i++) { ModifyRecipientRow modifyRecipientRow = new ModifyRecipientRow(this.RecipientColumns); modifyRecipientRow.Parse(s); modifyRecipientRows.Add(modifyRecipientRow); } this.RecipientRows = modifyRecipientRows.ToArray(); }