title: How to get first object out from List<Object> using Linq
body: <p>I have below code in c# 4.0.</p>
  
  <pre><code>//Dictionary object with Key as string and Value as List of Component type object
  Dictionary&lt;String, List&lt;Component&gt;&gt; dic = new Dictionary&lt;String, List&lt;Component&gt;&gt;();
  
  //Here I am trying to do the loping for List&lt;Component&gt;
  foreach (List&lt;Component&gt; lstComp in dic.Values.ToList())
  {
      // Below I am trying to get first component from the lstComp object.
      // Can we achieve same thing using LINQ?
      // Which one will give more performance as well as good object handling?
      Component depCountry = lstComp[0].ComponentValue("Dep");
  }
  </code></pre>