List.ConvertAll : List « System.Collections.Generic « C# / C Sharp by API






List.ConvertAll

  


using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;

public class MainClass
{
    public static void Main()
    {
        List<string> stringList1 = new List<string>(new string[] { "99", "182", "15" });
        List<int> intList1 = stringList1.ConvertAll<int>(Convert.ToInt32);

    }
}

   
    
  








Related examples in the same category

1.new List()
2.extends List
3.List.Add
4.List.AsReadOnly()
5.List.Capacity
6.List.Count
7.List.ForEach
8.List.Remove()