Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<int> hierSollenIntsRein = new List<int>() { };
- List<string> stringInts = new List<string>() {"1", "2", "3" };
- //EPICNESS:
- hierSollenIntsRein = stringInts.ConvertAll<int>(Convert.ToInt32);
- //Test
- foreach (int i in hierSollenIntsRein)
- {
- Console.WriteLine(i.ToString());
- }
- Console.Read();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement