public int Size() { int size = (sizeof(byte) * 4) + sizeof(ushort); if (this.PropertyTagCount > 0) { size += this.PropertyTags.Length * Marshal.SizeOf(typeof(PropertyTag)); } return size; } }