Though this would be theorically possible (for example Array.ForEach loops
on an array but is likely more suitable for processing each cell separately
than performing an aggregate operation) it would be more an academic
challenge and I don't really see for now the benefit you expect from this
(you could always create a function that sums an arbitrary array and even
cache the result if the string is the same etc...). Also you'll have likely
anyway to update the code where you want to use this sum while the previous
application was using something else.
Finally LINQ will allow to perform SQL like operations on several sources
including arrays.
For now I would keep the current code unless you can explain what doesn't
work well with it...
----
Patrice
"neeraj" <
[email protected]> a écrit dans le message de (e-mail address removed)...
Hi Patrice
Thanks for Reply
Actually I am receiving the data from stored procedure in an output
parameter
Like this "23,34,56,322,4445,3234,33344,3334,34344"
and these value also used in whole application as array like this
int [] rupees = {uotParm};
here we can not change the "sql" stored procedure to return the sum
of these value and also can not change the existing "vb.net" code
on whole application
now I want to sum of these value for an purpose, I have already got
the sum of these values by using for each loop but I want to know is
these any method available to get the sum of array aliment by without
use explicit looping.