title: assigning dictionary to key values
body: <pre><code>Dictionary&lt;int, String&gt; loadData = new Dictionary();
  
  // File contains a list of filenames say for ex. 5 filenames
  foreach (var file in filenames)
  {
      // I want to assign like this
      loadData[id]=file;
  }
  </code></pre>
  
  <p>How can I assign <code>loadData(key,value)</code> in C# so that I can access like <code>loadData[5] = "hello.txt"</code>;</p>