S Lemen

S Lemen

  • NA
  • 7
  • 15.8k

Translate Linq Aggregate from VB to C#

Dec 10 2010 10:09 PM

Hi,
In the Linq query below, values is an array of double.
Could some please translate this VB.Net Linq query into C#:
Dim
Aggreg = Aggregate v In values _
                  Into Count(), _
                        Sum(), _
                        Sum_Of_Squares = Sum(v * v)
Thank you,
Scott

Answers (5)