title: Define Dictionary in struct with C#
body: <p>I have Struct </p>
  
  <pre><code>    struct User
      {
          public int id;
          public Dictionary&lt;int, double&gt; neg;         
      }
      List&lt;User&gt; TempUsers=new List&lt;users&gt;();
      List&lt;User&gt; users = new List&lt;User&gt;();
  </code></pre>
  
  <p>my Problem is, when I run this code</p>
  
  <pre><code>TempUsers=users.ToList();
  TempUsers[1].neg.Remove(16);
  </code></pre>
  
  <p>neg dictionary in users aslo remove key with value=16</p>