Users Pricing

forum

Home Forums List<Class> to List<string> – MindStick

List<Class> to List<string>

Manoj Bhatt 3110 31 Jan 2014
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.


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md