为什么我不能做我++中类似C ++语言?

为什么我不能做我++中类似C ++语言?

问题描述:

半开玩笑半认真的为什么我不能做 ++我++ 在C语言的语言,特别是在C#

Half jokingly half serious : Why can't I do ++i++ in C-like languages, specifically in C#?

我希望它增加的价值,用在我的前夫pression,然后再次增加。

I'd expect it to increment the value, use that in my expression, then increment again.

简短的回答:我++ 不是一个左值,所以不能成为一个主题分配。

Short answer: i++ is not an "lvalue", so can't be the subject of an assignment.