---
title: "Code for adding to IEnumerable"  
description: "Code for adding to IEnumerable"  
author: "Anonymous User"  
published: 2013-04-06  
updated: 2013-04-06  
canonical: https://www.mindstick.com/forum/720/code-for-adding-to-ienumerable  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Code for adding to IEnumerable

Hi Guys\
I have an enumerator like this\
IEnumerable<System.Windows.Documents.FixedPage> [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page);How can I [add](https://www.mindstick.com/forum/12983/add-address-in-textbox-when-page-is-load-and-if-i-search-address-in-textbox-show-in-map-by-javascript) a page (eg: D:\newfile.txt) to it? I have tried Add, Append, [Concat](https://www.mindstick.com/forum/161159/explain-the-linq-concat-with-c-sharp) etc But nothing worked for me.\
**Thanks**

## Replies

### Reply by AVADHESH PATEL

Hi Pravesh!\
You can try this way\
IEnumerable<System.Windows.Documents.FixedPage> page = new List<System.Windows.Documents.FixedPage>(your items list here)\
you try another way as below\
IList<System.Windows.Documents.FixedPage> page = new List<System.Windows.Documents.FixedPage>(1);page.Add(your item Here);\
I hope it solve your problem


---

Original Source: https://www.mindstick.com/forum/720/code-for-adding-to-ienumerable

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
