Hi,

I recall using the With statement in vb6 when i wanted to set a number of variables relating to the same object, something like this:

Code:
with tempObject
    .Name = "name";
    .Value = "Bob";
end with
Is there a c# equivelant to this and if so could somenbody let me know what it is please.

Many thanks,

Grant