Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP's With...EndWith equivalent in C# ?
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01216132
Message ID:
01217108
Views:
11
Sorry, Hugo.

>Ah! Sorry, my bad, now I see you were not talking about the using directive but the statement, while I was talking about the former. Did you read my message to Claudio about the using directive, what do you think about it?

I understood your message to Fabio (not Claudio, actually <s>) about the using directive. I was the one making things confuse. My argument was that a construct like with/endwith doesn't add value to C#, while there are others like the using statement (which creates a block with a temporal variable -although very different from with/endwith) that do have a concrete meaning.

You reading got in the middle, but it was not your fault. :)

Regarding the using directive, of course it is optional, and the regular usage allows just allows you to shortcut LOTS of very often used classes like Console, DataReader, etc. In this case I think the saving is very high. Perhaps "using System;" to shortcut Console is not the best example, but for Microsoft.Build.Tasks.Deployment.ManifestUtilities or System.Runtime.Remoting.Channels.Http it really helps. :)

Regards,
Previous
Reply
Map
View

Click here to load this message in the networking platform