c# linq convert list to another type code example
Example: linq convert list to another list
List<objA> listA = GetObjAList();
List<objB> listB = objA.Select(oA => new objB()
{
prop1 = oA.prop1,
nextProp = oA.someProp
}).ToList();
List<objA> listA = GetObjAList();
List<objB> listB = objA.Select(oA => new objB()
{
prop1 = oA.prop1,
nextProp = oA.someProp
}).ToList();