Strona głównaSztuka programowania

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 ...

Tagi: string
Źródło: andrewlock.net
Dziel się z innymi:
Converting chunks to a string with ToString(): A deep dive on StringBuilder - Part 3

Sztuka programowania 1005 dni, 1 godzinę, 47 minut temu Piotr Stapp 23 pokaż kod licznika zwiń

Wczytywanie artykułów...

Najaktywniejsi w tym miesiącu