Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP's With...EndWith equivalent in C# ?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01216132
Message ID:
01217108
Vues:
12
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,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform