For Programmers: Free Programming Magazines  


Home > Archive > C# > April 2005 > "With" keyword









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author "With" keyword
simonrigby_uk@hotmail.com

2005-04-19, 3:59 pm

Hi folks,

I am mainly a C# programmer although I do work with VB.NET a bit
aswell. Whilst in general I find C# infinitely less wordy and more
concise, I do find that the "With - End With" construct very handy in
C#. Does anyone know of anything similar in C# or if there are plans in
a future update.

For example the equivelant of:


With myConnection.Parameters
.Clear()
.Add( etc etc)
End With

Cheers

Simon Rigby

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com