public int CalculateSize() { int size = 0; foreach (object part in _parts) size += Marshal.SizeOf(part); return size; }