public class emp
{
public int id {get; set; }
public string name{ get; set; }
}
public class employee
{
public List<emp> Result { get; set; }
}
I want to convert above class
List<employee> e=new List<employee>();
to
List<string> onj =new List<string>();
Can anyone guide me? Thanks in advance.
Pravesh Singh
31-Jan-2014List<String> onj = e.Select(employee => employee.Name).ToList();