Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AppendFormat
Message
 
 
À
08/02/2013 15:44:44
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01565543
Message ID:
01565554
Vues:
34
>>Thanks a lot in advance.
>>
>>UPDATE. I figured this out and visually my results look the same, but UnitTest is still failing.
>
>
>I would use string.Format....

Do you mean instead of StringBuilder?

I figured out the missing piece (I just needed to specify the number after the parameter, e.g. {1,11:N0}) but somehow my unit test was still failing although visually to me the output looked exactly the same.

I decided to trust the visual output and switched to a different method now.
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