title: C# generic with constant
body: <p>Is there something similar to this C++ template?</p>
  
  <pre><code>template &lt;int A&gt;
  class B
  {
      int f()
      {
          return A;
      }
  }
  </code></pre>
  
  <p>I want to make every instance of B&lt;1>, B&lt;2>, etc (eg tuple) a different type.</p>