Create a list of one object type from a list of another using Linq

Viewed 32534

If I have classes of Type A and B:

public class A
{
    public int TotalCount;
    public string Title;
}

public class B
{
    public int Count;
    public string Title;
}

I have a list of instances A instances, what is the most efficient way to create and populate a List of type B using Linq?

3 Answers
Related