Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AppendFormat
Message
 
 
To
08/02/2013 15:44:44
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01565543
Message ID:
01565554
Views:
35
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform