[I'm going to try a Sahil thing]
In IL, what is the difference between the following statements:
[C#]
aClass Obj = new aClass();
[VB.Net example 1]
Dim Obj as aClass = new aClass()
[VB.Net example 2]
Dim Obj as new aClass()
Go ahead and comment... I'll post the answer later (although I bet this
isn't that hard... I'm doing this for someone else's benefit)
[Everyone knows this...
The code in IL is the same... BTW,
Raymond, the C# compiler will also warn you that the Obj variable hasn't
been used... this is I'm beginning to believe that the blue code is by
far superior to the green code ]
Print | posted on Tuesday, April 19, 2005 11:59 AM