public class emp
{
public int id {get; set; }
public string name{ get; set; }
}
public class employee
{
public List<emp> Result { get; set; }
}
List<employee> e=new List<employee>();
to
List<string> onj =new List<string>();
public class emp
{
public int id {get; set; }
public string name{ get; set; }
}
public class employee
{
public List<emp> Result { get; set; }
}
List<employee> e=new List<employee>();
to
List<string> onj =new List<string>();
List<String> onj = e.Select(employee => employee.Name).ToList();