I have a PropertyDetails class:
public class PropertyDetails { public int Sequence { get; set; } public int Length { get; set; } public string Type { get; set; } }
I create a list of PropertyDetails as
List<PropertyDetails> propertyDetailsList = new List<PropertyDetails>();
I want to get the Length sum from the list, where PropertyDetails.Sequence <sumValue = 4
Linq solution is welcome.
source share