I have a class with two properties, say
public class Book {
public string TitleSource { get; set; }
public string TitleTarget { get; set; }
}
I have an IList<Book>
where the TitleTarget
is null and for each item in the list, I need to copy the TitleSource
property to the TitleTarget
property. I could do this through a loop, sure, but it seems like there's a LINQ or nice declarative way to do this. Is there?