VuurSnikkel
Programmer
Hi there...
I've been programming in Delphi for many years now and although I really like its development environment and underlying Object Pascal language, I think it's about time to migrate to .Net (C# mainly), since the next version of Delphi (8.0) will quite probably be the last. Besides, Delphi 8.0 will also feature .Net-compatibility, so I might as well completely switch to .Net.
I was just wondering if there is an equivalent to Delphi's handy (some people will probably disagree) "WITH"-statement.
Instead of writing something like this:
SomeForm.SomeElement.Caption:=SomeForm.SomeElement.Caption + 'Blablabla.'
Delphi can use a shorthand version:
With SomeForm.SomeElement Do
Caption:=Caption + 'Blablabla.'
Does C# have an equivalent statement to work with structs and/or classes?
GRTZ,
(Sn)Ik.
I've been programming in Delphi for many years now and although I really like its development environment and underlying Object Pascal language, I think it's about time to migrate to .Net (C# mainly), since the next version of Delphi (8.0) will quite probably be the last. Besides, Delphi 8.0 will also feature .Net-compatibility, so I might as well completely switch to .Net.
I was just wondering if there is an equivalent to Delphi's handy (some people will probably disagree) "WITH"-statement.
Instead of writing something like this:
SomeForm.SomeElement.Caption:=SomeForm.SomeElement.Caption + 'Blablabla.'
Delphi can use a shorthand version:
With SomeForm.SomeElement Do
Caption:=Caption + 'Blablabla.'
Does C# have an equivalent statement to work with structs and/or classes?
GRTZ,
(Sn)Ik.