C# Equivalant to VB Command

I have heard that using With...End With, the framework will only create the instance of object only once within the With statement. A lot of people recommended to use With...End With.
 
Yes, this is true. It will save time and resources by loading the
object just once, especially if you are setting and accessing
multiple properties. This was also true of VB6. Unfortunately, this
is one mighty handy feature that C# lacks.
 
So, is there any way to reduce resources by loading the
object just once in c++? :) Just answer YES or NO would appreciated, cos i have learnt only 1/10 of c++.
 
Back
Top