Linq Convert List To Another List

[Solved] Linq Convert List To Another List | Scala - Code Explorer | yomemimo.com
Question : linq convert list to another list

Answered by : peter-hansson

List<objA> listA = GetObjAList();
List<objB> listB = objA.Select(oA => new objB()	{	prop1 = oA.prop1,	nextProp = oA.someProp	}).ToList();

Source : | Last Update : Tue, 09 Feb 21

Answers related to linq convert list to another list

Code Explorer Popular Question For Scala