Answers for "linq convert list to another list"

C#
0

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();
Posted by: Guest on February-02-2021

C# Answers by Framework

Browse Popular Code Answers by Language