c# convert list of string to list of int code example Example: list string to int c# listofIDs.Select(int.Parse).ToList()