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