Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cast vs .ToString()
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00859235
Message ID:
00859675
Vues:
13
I would guess that the cast would be faster too because there is no overhead in pushing and poping values onto the program stack. A cast should put the necessary conversion code inline with your program. Look at the compiled IL code with ILDASM and it will tell your exactly what is happening.

>>>Anybody know off-hand which is faster (or does it really matter <g>)? I would think that the cast would be faster, or better, but I don't really know.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform