public int Size() { int size = sizeof(byte) * 5; if (this.CollapseState != null) { size += this.CollapseState.Length; } return size; } }