VB.NET Is there a way to create a pre-processor constant that behaves as a simple text substitution?
问题 VB.NET 2010, .NET 4 Hello, I would like to do (something like) the following: \#Const T = "Byte()" Public Class MyClass Inherits SomeGenericClass(Of T) .. other code .. End Class And have it act the same as if I'd typed Public Class MyClass Inherits SomeGenericClass(Of Byte()) .. other code .. End Class It's not so much that i have to do it this way, I'm just curious if such a thing is possible. Thanks in advance! Brian 回答1: No, this is not possible. The Visual Basic and C# designers decided