Compare 2 List<Dictionary<string, object>>
<p>I have a function which returns a <code>List&lt;Dictionary&lt;string, object&gt;&gt;</code> where object is a standard type (string, int, etc). </p>

<p>I need to take a second <code>List&lt;Dictionary&lt;string, object&gt;&gt;</code> and ensure that All entries in list B are represented in List A (order in the list does not matter).</p>

<p>Currently I have code that looks like this:</p>

<pre><code>foreach(Dictionary&lt;string, object&gt; rowResult in A) {
  foreach(Dictionary&lt;string, object&gt; rowCompare in B) {
    foreach(string columnName in rowResult.Keys) {
       // ... logic to compare columns
    }
  }

  // ...logic to compare rows so we dont find the same row twice.
}
</code></pre>

<p>Is there a more straightforward way to do this?</p>

<p>We dont care that all rows in rowResult are found, but all rows in rowCompare must be. It <strong>is</strong> ok to remove rows from the compare or result set to make the iteration easier.</p>

<p>My code works, it just looks over complicated and fragile.</p>
