P
papa.coen
Consider the following method:
TOTAL(string v, params Object[] c)
Called with the following values :
A, {B, {C, {D,E},F}
or (as a 'structured' array layout) :
A,
[0] B
[1] ----- [0] C
----- [1] ------ [0] D
------ [1] E
----- [2] F
When this method gets called (via reflection) for the first time. The
value of 'c' is:
[0] --- [0] B
--- [1] ---- [0] C ...etc.etc.
But subsequent calls (with _exaclty_ the same values) result in a value
of 'c' of:
[0] B
[1] ---- [0] C ...etc. etc.
The method (TOTAL) is also called between the calls with the same set
of values.
I miss one level! Is this by design or am I missing something? If it is
by design, what's the use of doing it this way?
TOTAL(string v, params Object[] c)
Called with the following values :
A, {B, {C, {D,E},F}
or (as a 'structured' array layout) :
A,
[0] B
[1] ----- [0] C
----- [1] ------ [0] D
------ [1] E
----- [2] F
When this method gets called (via reflection) for the first time. The
value of 'c' is:
[0] --- [0] B
--- [1] ---- [0] C ...etc.etc.
But subsequent calls (with _exaclty_ the same values) result in a value
of 'c' of:
[0] B
[1] ---- [0] C ...etc. etc.
The method (TOTAL) is also called between the calls with the same set
of values.
I miss one level! Is this by design or am I missing something? If it is
by design, what's the use of doing it this way?