title: Retrieving values from Dictionary<string, List<string>>
body: <p>I have dictionary with keys containing a list of strings. </p>
  
  <pre><code>Dictionary&lt;string, List&lt;string&gt;&gt; keyValueListDict=new Dictionary &lt;string,List&lt;string&gt;&gt;();
  List&lt;string&gt;valueList = new List&lt;string&gt;();
  </code></pre>
  
  <p>My <code>keyValueListDict</code> is filled with unique keys and valueLists.  For each dictionary entry, I need to output the key followed by the contents of the list (value).</p>
  
  <p>Update: I think the problem is coming from entering the values
  So i am retrieving an object from my db</p>
  
  <pre><code>foreach(object)
  {
    key=object.key;
    foreach(string value in object.othercomponent)
    {
      list.add(value);
    }
    keyValueListDict.add(key,list);
    list.clear();
  }
  </code></pre>
  
  <p>The count for the values in the list resets to 0 everytime I clear the list so I can fill it for the next object, but I can't figure out how to avoid this</p>