Does anyone know if there is a with statement and/or an equivalent?
Jeremy
Printable View
Does anyone know if there is a with statement and/or an equivalent?
Jeremy
There is no equivalent.
oh...that sucks lol
Here is about as close as you'll get in C#:
Code:using a = System;
public class Example
{
static void Main()
{
a.Console.WriteLine("Shortcut syntax");
a.Console.ReadLine();
}
}
=\ the With in vb rules
I disagree. I think 'with' blocks make code more difficult to read. That's just my opinion. I'm bored on a late friday night, so I'm just replying to all the threads! ;)