C
C#7mo ago
BekirK

✅ VS "cs1525 invalid expression term '{' " error when I change a variable value in debug mode

Hi everyone, and yes I know the error message is very clear and understandable. I've just upload the images here. As you can see I just changed a variable's value in a correct way but Vs always throws this error.
The first value is {250₺} then i did {240₺} when i entered Vs throwed the error. What do you think about it. The problem is me or Vs or anything :d
No description
No description
No description
3 Replies
sexysexysamthorpe
Are these objects you've made yourself?
Thinker
Thinker7mo ago
How are you changing the value? The problem likely seems to be that you're writing {240₺} as an expression, which isn't valid
BekirK
BekirK7mo ago
Yep As you can see the first photo, obj1 value is {250₺} at first. I clicked for edit then I updated to {240₺} when I click the enter Vs throwed the error. I did just these steps. I know it says invalid but I didn't change any specific term. I just changed 250 to 240. And it's not invalid normally Btw I always get this error for another variables when I want to change its value I solved the problem now guys. When I use de immediate window It said what about it. "error CS0200: Property or indexer 'Money.Amount' cannot be assigned to -- it is read only"