R
Rene
The section 7.13.2 (Compound assignment) of the C# language specification
has the following paragraph:
The term "evaluated only once" means that in the evaluation of x op y, the
results of any constituent expressions of x are temporarily saved and then
reused when performing the assignment to x. For example, in the assignment
A()[B()] += C(), where A is a method returning int[], and B and C are
methods returning int, the methods are invoked only once, in the order A, B,
C.
I have been trying to figure out what a hell does A()[B()] += C() means and
create a sample program in C# that will show what this being applied in
practice but I CAN'T figure it out!!!
Could someone please post some sample code that describes this darn
concept?? Please, I am desperate!
Thanks.
has the following paragraph:
The term "evaluated only once" means that in the evaluation of x op y, the
results of any constituent expressions of x are temporarily saved and then
reused when performing the assignment to x. For example, in the assignment
A()[B()] += C(), where A is a method returning int[], and B and C are
methods returning int, the methods are invoked only once, in the order A, B,
C.
I have been trying to figure out what a hell does A()[B()] += C() means and
create a sample program in C# that will show what this being applied in
practice but I CAN'T figure it out!!!
Could someone please post some sample code that describes this darn
concept?? Please, I am desperate!
Thanks.