Generic collection List
Convert List to List in C#
var intList = new List {1, 2, 3, 4, 5};
//Using lambda expression along with ConvertAll()
var intString = intList.ConverAll (delegate(int i)
{
return x.ToString();
});
Generic collection List
var intList = new List {1, 2, 3, 4, 5};
//Using lambda expression along with ConvertAll()
var intString = intList.ConverAll (delegate(int i)
{
return x.ToString();
});
© Copywright 2017 Dotnetstuffs All Rights Reserved
Leave a Reply