Link Details

Link 128954 thumbnail
User 225256 avatar

By mswatcher
via frugalcoder.us
Published: Oct 26 2008 / 02:09

The real issue is seeing the above code all on one line, and with the various html markup intersperced with various object variables. It can be very difficult to follow, especially when you see all this one one line, or not very well broken up. This leads me to the happy little method known as String.Format(), which takes a format string as its' first parameter, and a set of objects as parameters to be formatted into the string. Below is the above example rewritten to use String.Format()
  • 7
  • 2
  • 1581
  • 436

Comments

Add your comment
User 208869 avatar

Jason Braucht replied ago:

0 votes Vote down Vote up Reply

Dead link...

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (2)