title: Multiply TimeSpan in .NET
body: <p>How do I multiply a TimeSpan object in C#? Assuming the variable <code>duration</code> is a <a href="http://msdn.microsoft.com/en-us/library/system.timespan.aspx" rel="noreferrer">TimeSpan</a>, I would like, for example</p>
  
  <pre><code>duration*5
  </code></pre>
  
  <p>But that gives me an error "operator * cannot be applied to types TimeSpan and int". Here's my current workaround</p>
  
  <pre><code>duration+duration+duration+duration+duration
  </code></pre>
  
  <p>But this doesn't extend to non-integer multiples, eg. <code>duration * 3.5</code>    </p>