Can I create an alias in C# or VB.NET within method scope?

Posted by Dan Tao on Stack Overflow See other posts from Stack Overflow or by Dan Tao
Published on 2010-05-11T14:27:19Z Indexed on 2010/05/11 14:34 UTC
Read the original article Hit count: 312

Filed under:
|
|
|
|

Is there any equivalent to an aliasing statement such as:

// C#:
using C = System.Console;

or:

' VB.NET '
Imports C = System.Console

...but within method scope -- rather than applying to an entire file?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#