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