title: C# IList iteration
body: <p>I have an IList that holds an object that has fields name, Id, location, store, person, and amount. I don't want to have to retrieve the values for all of these fields by writing a statement for each property</p>
  <p>ex.</p>
  <pre class="lang-cs prettyprint-override"><code>IList&lt;CutDetail&gt; btiCollection;
  btiCollection[0].Id
  btiCollection[0].location
  </code></pre>
  <p>Is there anyway that I can iterate through this list and retrieve the data within their fields without having to specifically name what they are? Any assistance would be appreciated.</p>