Simple: it's easier, and performance is rarely an issue. Maintainability is much more important unless specifically otherwise required by the project.
Which is easier to you? This:
public override string ToString() {
return this.LastName + ", " + this.FirstName;
}
or this?
public override string ToString() {
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append(this.LastName);
sb.Append(", ");
sb.Append(this.FirstName);
return sb.ToString();
}
Admittedly, you'd probably use var
and using System.Text;
, but it's still much more complicated and much less readable. And StringBuilder
is mostly for concatenation in some form of loop, since otherwise the operations can be optimized, so you rarely need to use them.