public int Size()
{
// 7 indicates sizeof(byte) * 3 + sizeof(UInt16) * 2
int size = sizeof(byte) * 7;
if (this.ServerEntryIdSize > 0)
{
size += this.ServerEntryIdSize;
}
if (this.ClientEntryIdSize > 0)
{
size += this.ClientEntryIdSize;
}
return size;
}
}