public int Size() { int size = (sizeof(byte) * 5) + (sizeof(ushort) * 2); if (this.RestrictionData != null) { size += this.RestrictionData.Length; } if (this.Bookmark != null) { size += this.Bookmark.Length; } return size; } }