title: Iteration through GroupCollection in C#
body: <p>I'm currently trying to use regular expressions in C#:</p>
  
  <pre><code>Regex reg_gameinfo = new Regex(@"PokerStars Game #(?&lt;HID&gt;[0-9]+):\s+(?:HORSE)? \(?(?&lt;GAME&gt;Hold'em|Razz|7 Card Stud|Omaha|Omaha Hi/Lo|Badugi) (?&lt;LIMIT&gt;No Limit|Limit|Pot Limit),? \(?(?&lt;CURRENCYSIGN&gt;\$|)?(?&lt;SB&gt;[.0-9]+)/\$?(?&lt;BB&gt;[.0-9]+) (?&lt;CURRENCY&gt;.*)\) - (?&lt;DATETIME&gt;.*$)", RegexOptions.Multiline);
  Match matchresults = reg_gameinfo.Match(rawtext);
  Dictionary&lt;string,string&gt; gameinfo = new Dictionary&lt;string,string&gt;();
  if (matchresults.Success)
  {
       gameinfo.Add("HID", matchresults.Groups["HID"].Value);
       gameinfo.Add("GAME", matchresults.Groups["GAME"].Value);
       ...
  }
  </code></pre>
  
  <p>Can I iterate through the <code>matchresult.Groups</code> GroupCollection and add the key-value pairs to my <code>gameinfo</code> dictionary?</p>