How to loop through a dictionary defined in different method
<p>I have a dictionary which is defined in SetStoreInfoDetail:</p>

<pre><code>public void SetStoreInfoDetail(int issueID)
        {

            _mgr = new CRCManager();

            StoreInfo StoreInfoFields = new StoreInfo();

            List&lt;StoreInfo&gt; StoreList = _mgr.GetStoreList(issueID);


            var StoreInfoMapping = StoreList.ToDictionary(keySelector: row =&gt; row.store_info_id);
}
</code></pre>

<p>I want to loop through StoreInfoMapping:</p>

<p>Current Code:</p>

<pre><code>foreach (StoreInfo store_info_id in StoreInfoMapping)
{
Do Something
}
</code></pre>

<p>What am I doing wrong here? Any suggetions are appreciated.</p>