title: C#: Globally alias a generic class name?
body: <p>in some project we are using Generics, and we get a lot of lines like this:</p>
  
  <pre><code>Line&lt;SomeTClass,SomeCClass&gt; myLine =
             (Line&lt;SomeTClass,SomeCClass&gt;)LineFactory.CreateLine(...)
  </code></pre>
  
  <p>We can declare local alias, with <code>using X = Line&lt;SomeTClass,SomeCClass&gt;</code>.</p>
  
  <p>Then we can write, <code>X myLine = (X)LineFactory.CreateLine(...)</code>.</p>
  
  <p>We have a lot a combination of <code>&lt;T,C&gt;</code> but we often use the same. Is it possible de declare the using globally, so that we won't have to declare the alias in each file?</p>