Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foreach vs AddRange
Message
 
 
À
11/08/2009 14:16:07
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01417359
Message ID:
01417379
Vues:
56
>>Did you try to initialize the buf array with some values for your tests?
>>
>>And also run the tests separately, not in one class?
>
>(1) Yes
>(2) What difference would that make ?

You're right - probably no difference - but just for the purity of the experiment (since in first case the array is created, may be it is somehow "re-used")?

Or try to switch the order of the tests just to exclude this potential (non-existent) problem.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform