I've got two List<Name>
s:
public class Name
{
public string NameText {get;set;}
public Gender Gender { get; set; }
}
public class Gender
{
public decimal MaleFrequency { get; set; }
public decimal MaleCumulativeFrequency { get; set; }
public decimal FemaleCumulativeFrequency { get; set; }
public decimal FemaleFrequency { get; set; }
}
If the NameText
property matches, I'd like to take the FemaleFrequency
and FemaleCumulativeFrequency
from the list of female Name
s and the MaleFrequency
and MaleCumulativeFrequency
values from the list of male Name
s and create one list of Name
s with all four properties populated.
What's the easiest way to go about this in C# using .Net 3.5?