Microsoft.Protocols.TestSuites.Common.RopSetPropertiesRequest.Size C# (CSharp) Method

Size() public method

Return the size of this structure.
public Size ( ) : int
return int
        public int Size()
        {
            // 7 indicates sizeof(byte) * 3 + sizeof(UInt6) * 2
            int size = sizeof(byte) * 7;
            if (this.PropertyValueCount > 0)
            {
                for (int i = 0; i < this.PropertyValueCount; i++)
                {
                    size += this.PropertyValues[i].Size();
                }
            }

            return size;
        }
    }
RopSetPropertiesRequest