title: VB.NET Is there a way to create a pre-processor constant that behaves as a simple text substitution?
body: <p>VB.NET 2010, .NET 4</p>
  
  <p>Hello,</p>
  
  <p>I would like to do (something like) the following:</p>
  
  <pre><code>\#Const T = "Byte()"
  
  Public Class MyClass
    Inherits SomeGenericClass(Of T)
  
    .. other code ..
  End Class
  </code></pre>
  
  <p>And have it act the same as if I'd typed</p>
  
  <pre><code>Public Class MyClass
    Inherits SomeGenericClass(Of Byte())
  
    .. other code ..
  End Class
  </code></pre>
  
  <p>It's not so much that i <em>have</em> to do it this way, I'm just curious if such a thing is possible.</p>
  
  <p>Thanks in advance!</p>
  
  <p>Brian</p>