C# Tip: Don't Concatenate, Use String.Format

24. October 2008 09:57

Something that tends to annoy me, is seeing a ton of string concatenation, such as below.

string mystring = "<a href="\">" +
    ResourceHelper.GetString("somestr", SiteHelper.GetCurrentCulture()) +
    "</a>"; 

More...

Tags: , ,

Tracker1

Michael J. Ryan aka Tracker1

My name is Michael J. Ryan and I've been developing web based applications since the mid 90's.

I am an advanced Web UX developer with a near expert knowledge of JavaScript.