title: How to delete an item from List of Dictionary in c#?
body: <p>Here is the values I am adding in Dictionary List:-</p>
  
  <pre><code>1,1000
  2,2000
  1,1000
  3,3000
  </code></pre>
  
  <p>I can delete from Dictionary based on key value:-</p>
  
  <pre><code>if (i == null)
      return;
  var dict = app["ItemList"] as Dictionary&lt;int, int&gt;;
  if (dict != null)
      dict.Remove(i.ItemId);
  </code></pre>
  
  <p>Here I pass key value (i.ItemId),it deletes an item from dictionary. But When I use List of Dictionary, I couldn't delete items from List of Dictionary based on Key Value.</p>
  
  <pre><code>if (i == null)
      return;
  var dict = app["ItemList"] as List&lt;Dictionary&lt;int, int&gt;&gt;;
  if (dict != null)
  {
      var itemDict = new Dictionary&lt;int, int&gt;();
      itemDict[i.ItemUid] = 0;
      dict.Remove(itemDict);
  }
  </code></pre>
  
  <p>Note:- I have only Key value available when I am deleting from List of Dictionary. </p>
  
  <p>Help will be appreciated.</p>