Access properties short form (with?)

Rhodan

Active member
Joined
Apr 7, 2015
Messages
41
Programming Experience
10+
I remember there being a way you could access properties of a class without having to type out the entire class name etc. I thought it was something like

C#:
With MyLongClassName
    .Name = "Aname"
    .Value = 15
End With

But I can seem to find anything of the sort. Any ideas? Or perhaps it was a different language... It has been a really long time.
 
Ah, figured it out by searching for "c# equivilent of vb with block"

The answer is there's no such animal in c#
 
Back
Top Bottom