I have this Class:
public class C1
{
publice double[] p1 { get; set; }
}
And here I have instanced it in List<>
List<C1> clist = new List<C1>();
I would like to sum the item in the property p1
?
I have this Class:
public class C1
{
publice double[] p1 { get; set; }
}
And here I have instanced it in List<>
List<C1> clist = new List<C1>();
I would like to sum the item in the property p1
?
Just do:
clist.Sum(i => i.p1.Sum());