Z
Zeljko
Hi,
I moved from VB6 to C# recently, and am very satisfied with the
result. However, I miss this one feature. The closest thing I could
find is "using" statement, but it requires object to implement
IDisposable interface, and it won't save me the trouble of typing the
variable name. What I want to do is something similar to this vb6
block of code:
Dim a as class1
set a = new class1
with a
.dothis
.dothat
.propertyx = 1
end with
Does the similar feature exist in C#, or no ?
Best regards,
Zeljko
I moved from VB6 to C# recently, and am very satisfied with the
result. However, I miss this one feature. The closest thing I could
find is "using" statement, but it requires object to implement
IDisposable interface, and it won't save me the trouble of typing the
variable name. What I want to do is something similar to this vb6
block of code:
Dim a as class1
set a = new class1
with a
.dothis
.dothat
.propertyx = 1
end with
Does the similar feature exist in C#, or no ?
Best regards,
Zeljko