public int Size() { int size = sizeof(byte) * 10; if (this.FolderId.Size() > 0) { size += this.FolderId.Size(); } if (this.DataSize > 0) { size += this.DataSize; } if (this.DataOffset == 0 && this.ReplGuid != null) { size += 16; } return size; } }