public virtual int Size() { int size = DEFAULT_MINIMUM_MESSAGE_SIZE; if(marshalledProperties != null) { size += marshalledProperties.Length; } if(content != null) { size += content.Length; } return size; }