public int Size() { // 3 indicates sizeof(byte) + sizeof(UInt16) int size = sizeof(byte) * 3; for (int i = 0; i < this.PropertyValueCount; i++) { if (this.PropertyValues[i].Value != null) { size += this.PropertyValues[i].Size(); } } return size; } }