---
title: "How to append the values to the Dictionary after each iteration"  
description: "How to append the values to the Dictionary after each iteration"  
author: "Elena Glibart"  
published: 2016-08-29  
updated: 2016-08-29  
canonical: https://www.mindstick.com/forum/34168/how-to-append-the-values-to-the-dictionary-after-each-iteration  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How to append the values to the Dictionary after each iteration

Hi buddy\
I am [beginner](https://www.mindstick.com/forum/23159/need-beginner-project-ideas) in [c# programming](https://www.mindstick.com/forum/156714/what-is-a-sealed-class-in-c-sharp-programming-and-why-do-we-use-this-class-in-opps).I am [coding](https://www.mindstick.com/articles/12290/teaching-coding-from-the-metal-up-or-from-the-glass-back) a [linq query](https://www.mindstick.com/forum/33908/how-to-select-and-retrieve-data-using-linq-query-in-entity-framework) to store the [results](https://yourviews.mindstick.com/story/4497/usage-of-baking-soda-magical-results) in a [dictionary](https://www.mindstick.com/articles/1500/hashtable-and-dictionary-in-c-sharp) after each iteration. But the [variable](https://www.mindstick.com/articles/1807/objective-c-data-types-variables-object-creation) [stores](https://www.mindstick.com/forum/161350/how-does-sqlite-database-stores-tables) only the last iteration values. I guess its because of the new [operator](https://www.mindstick.com/blog/144/union-intersection-and-except-operator-in-sql-server) used in the linq query. Can [anyone](https://www.mindstick.com/articles/23207/how-to-find-the-best-fit-job-for-anyone) help me. I really appreciate your help.\
Thanks


---

Original Source: https://www.mindstick.com/forum/34168/how-to-append-the-values-to-the-dictionary-after-each-iteration

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
