title: asp.net Get all Resources from .resx Without Specifying Culture (ResourceManager.GetResourceSet )
body: <p>I first came across a question similar to mine here at stack overflow: <a href="https://stackoverflow.com/questions/140043/loop-through-all-resources-in-resourcemanager-c">Loop through all Resources in ResourceManager - C#</a>. It only solved part of what I need to do. When you request an entry in a resource file for a specific culture, if there is not one present it will default back on the neutral culture resource file.</p>
  
  <p>I need to loop through each entry for a given resource file and GetResourceSet requires a culture. For example I have a neutral resource file with 3 entries in it and a culture specific resource file accompanying the neutral file with 1 entry.</p>
  
  <p>My neutral resource example file is MyResource.resx and my culture specific resource example file is MyResource.en-gb.resx. The following code shows how I am currently trying to loop through and access all of the resource entries.</p>
  
  <pre><code>Dim cultInfo as New CultureInfo(culture)
  For Each entry As System.Collections.DictionaryEntry In myResourceManager.GetResourceSet(cultInfo, True, True)
  
  Next
  </code></pre>
  
  <p><strong>Neutral Resource File Entries</strong></p>
  
  <ul>
  <li>FullName / Full Name </li>
  <li>PhoneNumber / Phone Number</li>
  <li>State / State</li>
  </ul>
  
  <p><strong>Culture Specific Resource File Entry</strong></p>
  
  <ul>
  <li>State / County</li>
  </ul>
  
  <p>When I call GetResourceSet for the specific culture I only get back 1 entry. I was expecting (and want) to get back all 3 entries with the one culture specific entry overridden. Here is what I want returned:</p>
  
  <ul>
  <li>FullName / Full Name</li>
  <li>PhoneNumber / Phone Number</li>
  <li>State / <strong>County</strong></li>
  </ul>
  
  <p>Is there anyway that I can do this? Thanks. </p>