 <p>yes, it's suppose to be:</p> <pre><code>public IDictionary&lt;string, string&gt; loopThroughNotificationCountQueries() { } </code></pre> <p>You can only itterate through objects of <code>IEnumerable&lt;T&gt;</code></p> <p>so if for some reason you cannot change <code>loopThroughNotificationCountQueries</code>, cast the object to an <code>IDictionary&lt;string, string&gt;</code> first.</p>