title: Sum of TimeSpans in C#
body: <p>I have a collection of objects that include a TimeSpan variable:</p>
  
  <pre><code>MyObject
  { 
      TimeSpan TheDuration { get; set; }
  }
  </code></pre>
  
  <p>I want to use LINQ to sum those times.
  Of course, (from r in MyCollection select r.TheDuration).Sum(); doesn't work!</p>
  
  <p>I'm thinking of changing the datatype of TheDuration to an int and then summing it and converting the sum to a TimeSpan. That will be messy because each TheDuration in my collection is used in as a timespan somewhere else.</p>
  
  <p>Any suggestion on this summation?</p>