title: C# Accessing management objects in ManagementObjectCollection
body: <p>I'm trying to access ManagementObjects in ManagementObjectCollection without using a foreach statement, maybe I'm missing something but I can't figure out how to do it, I need to do something like the following:</p>
  
  <pre><code>ManagementObjectSearcher query = new ManagementObjectSearcher(
       "select Name, CurrentClockSpeed from Win32_Processor");
  
  ManagementObjectCollection queryCollection = query.Get();
  
  ManagementObject mo = queryCollection[0];
  </code></pre>