C# code to create a List and initialize to another list

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 308
C# code to create a List and initialize to another list
var dnfLst_1 = new List<int>() { 90, 70, 30, 10, 60, 50, 40 };
var dnfLst_2 = new List<int>(dnfLst_1);


Thanks

Comments or Responses

Login to post response