public int Size() { // 9 indicates sizeof (byte) * 3 + sizeof (UInt16) + sizeof(UInt32) int size = sizeof(byte) * 9; for (int i = 0; i < this.LongTermIdRangeCount; i++) { size += this.LongTermIdRanges[i].Size(); } return size; } }