SyntaxFix
Write A Post
Hire A Developer
Questions
This is the simplest way, I think:
var listOfStrings = (new [] { "4", "5", "6" }).ToList(); var listOfInts = listOfStrings.Select<string, int>(q => Convert.ToInt32(q));