By tag: StringBuilder
0
kicks
String templates revisited
Sometimes I encounter a task - create some little template, that user can easily configure. Yeah, there are many powerful template engines, or you can use {0}, {1} placeholders, or even handwritten #Id#, #Name# placeholders. But this article describes yet another way - simple and descriptive string ...
0
kicks
HtmlTextWriter to String in Asp.net C#
Convert HTMLTextWriter output to string usinf StringBuilder & StringWriter class
0
kicks
C# String Theory
This article shows the differences between string versus String versus StringBuilder. It details when and how to use the C# String and StringBuilder classes.
0
kicks
How fast StringBuilder is ?
Blog post explains why different approaches of string building perform faster than others. There is a sample application which measures speed of those approaches. How specifying capacity of StringBuilder during its instantiation increase a performance?
0
kicks
StringBuilder is not always faster - Part 2
n a previous article (”StringBuilder is not always faster), I provided some quick benchmark data and gave “rules of thumb” for when to use StringBuilder and when to use traditional string concatenations. In this follow-up article, I will attempt to provide a more detailed analysis.
0
kicks
String Concatenation vs Memory Allocation
Over the years, plenty has been written about string performance, lots of comparisons between String.Concat and StringBuilder. Today I decided to do some of my own research into the subject and contribute to the knowledge already out there. More specifically, I'll be taking a look at the memory usag...
0
kicks
StringBuilder is not always faster
Here is something you may not know about string concatenation: StringBuilder is not always faster.
0
kicks
String.Format() and StringBuilder
This article looks at the potential performance issues of String.Format() when used with StringBuilder.