I want to convert a List to a List.
List
Here is my code:
void Convert(List stringList) {
Use the following code:
int x = 0; var intList= stringList.Where(str => int.TryParse(str, out x)).Select(str => x).ToList();