title: Querying IList using LINQ
body: <p>Is foreach is the only option to get the property values of an object? (if I store that in var type)</p>
  
  <pre><code>IList&lt;SampleClass&gt; samples = GetIList();
  var onesample = samples.Select(p =&gt; p.Propy == "A").FirstOrDefault();
  </code></pre>
  
  <p>do I need to loop through 'onesample' to get the values using foreach or any better way?</p>