public int Size() { int size = sizeof(byte) * 8; if (this.DisplayName != null) { size += this.DisplayName.Length; } if (this.Comment != null) { size += this.Comment.Length; } return size; } }