Friday, December 12, 2008

Proper use of StringBuilder

'Declare the StringBuilder variable
Private body As New System.Text.StringBuilder("")
'Append the string into the StringBuilder
body.Append("Hello world!!
")
body.Append("Hi!!
")
'Retrieve the value of the StringBuilder
body.toString

OUTPUT:
Hello world!!
Hi!!

Cool right? StringBuilder is much recommended than using the usual concatination symbols like + and &.

1 comment:

Anonymous said...

speed dating in coventry http://loveepicentre.com/faq/ free overseas dating sites
tammie escobio dating sites ocala fl [url=http://loveepicentre.com/advice/]sms dating belgi[/url] free asian dating fetish
zelda dating sim cheats [url=http://loveepicentre.com/]adult dating free[/url] book on dating for christian seniors [url=http://loveepicentre.com/user/sly4love14/]sly4love14[/url] sex in the city dating