public int Size() { // 7 indicates sizeof(byte) * 3 + sizeof(UInt6) * 2 int size = sizeof(byte) * 7; if (this.PropertyValueCount > 0) { for (int i = 0; i < this.PropertyValueCount; i++) { size += this.PropertyValues[i].Size(); } } return size; } }