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