In the previous posts in this series, I took a first look at the internal design of StringBuilder class as a linked list, and then looked at the source code behind the constructors and Append methods. In this post I look at (arguably) the most important method on StingBuilder, ToString(), and show how the final string is created from multiple chunks. I also looks at the overload ToString(startIndex, count), and show how recent implementations differ from that used in .NET Framework.Terminology recap In ...
Strona głównaSztuka programowania
Sztuka programowania 1224 dni, 10 godzin, 6 minut temu 25 pokaż kod licznika zwiń