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

Size() public method

Return the size of this structure.
public Size ( ) : int
return int
        public int Size()
        {
            // 17 indicate sizeof(byte) + (16 of Guid)
            int size = sizeof(byte) * 17;
            if (this.Kind == (byte)TestSuites.Common.Kind.LidField)
            {
                size += sizeof(byte) * 4;
            }
            else if (this.Kind == (byte)TestSuites.Common.Kind.NameField)
            {
                size += sizeof(byte);
                size += (byte)this.NameSize;
            }

            return size;
        }