StringBuilder.Length is not read-only!
When you wander the blogs, sometimes the comments are more interesting or useful than the posting. Today's case-in-point is James Curran's observation that StringBuilder.Length is not a read-only value... how many times have you built a comma (or any other delimiter) seperated string by optionally prepending the delimiter in the loop, or trimming off the leading (or trailing) delimiter after the loop. James says just truncate the final delimiter by adjusting Length! góða nótt. My Ajax.NET Library
No comments:
Post a Comment