I got the following error, which I translated from German:
error BC30068: expression is a value and cannot be a destination.
I am trying to do the following:
sheet.Cells(row, col).Value = newVal ' this is VB
Where I declared cells as:
public Cell Cells(int x, int y)
How can I solve this problem? I donβt want Cell to be a class, but instead to be a structure, because otherwise, any access would create a new object on the heap. Of course, I can cache all created Cell objects, but this can lead to errors and a lot of waste and a new layer of indirection.
Is there a better way to do this?
source share