title: C# List<object> and List
body: <p>Further extending the question: </p>
  
  <p><a href="https://stackoverflow.com/questions/10771936/c-sharp-listobject">C# List&lt;object&gt;</a></p>
  
  <pre><code>public class SampleInformation
  {
      public string Nutrient { get; set; }
      public decimal NutrientTotal { get; set; }
      public int NoSamples { get; set; }
      public decimal Average { get; set; }
      public decimal StandardDeviation { get; set; }
      public decimal CoVariance { get; set; }
      public decimal PSD { get { return Average + StandardDeviation } }
      public decimal NSD { get { return Average - StandardDeviation } }
  }
  </code></pre>
  
  <p>The above class calculates average, SD, CoVar, etc.
  The above class gaves me output as:</p>
  
  <pre><code>Nutrient | Average | # Samples | SD | CoVar
  </code></pre>
  
  <p>I would like to extend the above to and bind it to a list</p>
  
  <pre><code>Nutrient | Average | # Samples | SD | CoVar | Item1 | Item2 | ...
  XXX | Average | # Samples | SD | CoVar | Value for XXX for item 1 | Value for XXX for item 2 | ...
  yyy | Average | # Samples | SD | CoVar | Value for YYY for item 1 | Value for YYY for item 2 | ...
  </code></pre>
  
  <p>Any quick help ?</p>