Lambda表达式将列表int转换为列表字符串
List<int> lstNum = new List<int>(new int[] { 3, 6, 7, 9 });
Run Code Online (Sandbox Code Playgroud)
您可以使用以下命令将List的int转换为字符串List:
List<string> lstStr = lstNum.ConvertAll<string>(x => x.ToString());
Run Code Online (Sandbox Code Playgroud)