Lambda expression to convert list int to list string in c#
c#, lambda
Solution
You can use the following to convert a List of int to a List of string:
List<string> lstStr = lstNum.ConvertAll<string>(x => x.ToString());
Problem
Lambda expression to convert list int to list string ``` List<int> lstNum = new List<int>(new int[] { 3, 6, 7, 9 }); ```