---
title: "List&lt;Class&gt; to List&lt;string&gt;"  
description: "List&lt;Class&gt; to List&lt;string&gt;"  
author: "Manoj Bhatt"  
published: 2014-01-31  
updated: 2014-01-31  
canonical: https://www.mindstick.com/forum/1937/list-lt-class-gt-to-list-lt-string-gt  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# List&lt;Class&gt; to List&lt;string&gt;

```
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](https://www.mindstick.com/forum/2093/configurationmanager-appsettings-convert-n-to-n-why) above [class](https://www.mindstick.com/blog/165/generic-class-in-c-sharp)

List<[employee](https://www.mindstick.com/articles/85431/remote-employee-training-tips-tricks)> e=new List<employee>();

to

List<[string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp)> onj =new List<string>();

Can [anyone](https://www.mindstick.com/articles/23207/how-to-find-the-best-fit-job-for-anyone) [guide](https://www.mindstick.com/articles/44463/business-to-business-vat-reclaiming-a-guide-for-your-employees) me? Thanks in advance.

## Replies

### Reply by Pravesh Singh

Hi Manoj,\
Try this:\

List<String> onj = e.Select(employee => employee.Name).ToList();


---

Original Source: https://www.mindstick.com/forum/1937/list-lt-class-gt-to-list-lt-string-gt

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
