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

Size() public method

Return the size of this structure.
public Size ( ) : int
return int
        public int Size()
        {
            // 3 indicates sizeof(byte) + sizeof(UInt16)
            int size = sizeof(byte) * 3;
            for (int i = 0; i < this.PropertyValueCount; i++)
            {
                if (this.PropertyValues[i].Value != null)
                {
                    size += this.PropertyValues[i].Size();
                }
            }
            
            return size;
        }
    }
PermissionData