Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Performance: What affect does using have...
Message
De
30/04/2003 12:10:29
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00783193
Message ID:
00783222
Vues:
11
Victor,

This doesn't really answer your question, because I don't know if there's a performance hit or not, but why even bother including the "using..." for the OleDbClient if you're not going to use it?

~~Bonnie


>Using the "using..." Statement reduces the verbosity of code in .NET. However, does it affect performance if you're issueing a "using..." Statement to include a namespace you'll never use?
>
>Say for example:
>
>using System;
>using System.Data;
>using System.Data.SqlClient;
>using System.Data.OleDbClient;
>
>...
>
>In this case you'll always use the SqlClient but do you get a performance hit for including OleDbClient if you never use it?
>
>Should I be cautious about what namespaces I include? More importantly should I be cautious about how I group my custom classes in certain namespaces?
>
>TIA
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform