In VB.NET, let\'s assume I have the following Structure:
Public Structure Product Public ItemNo As Int32 Public Description As String Public Cost As
One way would be:
Dim s = (From p As Product In products Select p.Cost).Sum()