title: Tuple vs Generic class Performance
body: <p>What's more performant a <code>Tuple&lt;int, int&gt;</code> or a <code>generic class</code> as follows:</p>
  
  <pre><code>   public class Interval&lt;T&gt;
      {
         public T From, To;
  
         public static Interval&lt;T&gt; Create(T from, T to)
         {
            Interval&lt;T&gt; range = new Interval&lt;T&gt;();
  
                  range.From = from;
                  range.To = to;
  
                  return range;
              }
          }
     }
  </code></pre>
  
  <p>Usage scenario - large collections (100K++) of these objects get filtered using <code>LINQ</code>. I currently have generic classes, thinking of moving to something more fat-free and hopefully faster. Wonder if I I'll gain speed by switching to use <code>Tuple</code>'s?</p>