Comments on: StringBuilder in C# https://code-maze.com/stringbuilder-csharp/ Learn. Code. Succeed. Fri, 22 Mar 2024 11:23:31 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Marinko Spasojević https://code-maze.com/stringbuilder-csharp/#comment-5395 Fri, 01 Apr 2022 07:04:48 +0000 https://drafts.code-maze.com/?p=67620#comment-5395 In reply to James M Curran.

Thanks James. Good to know.

]]>
By: James M Curran https://code-maze.com/stringbuilder-csharp/#comment-5394 Fri, 01 Apr 2022 03:22:30 +0000 https://drafts.code-maze.com/?p=67620#comment-5394 Cool StringBuilder trick:
You can remove characters from the end, just decrementing the .Length property.

stringBuilder .Length -=2;

Removes the last two characters from the string. Useful if you are building a list and add “, ” after each item.

]]>
By: MarinkoSpasojevic https://code-maze.com/stringbuilder-csharp/#comment-5383 Thu, 31 Mar 2022 08:54:16 +0000 https://drafts.code-maze.com/?p=67620#comment-5383 In reply to Gian.

Thank you, glad you like it.

]]>
By: MarinkoSpasojevic https://code-maze.com/stringbuilder-csharp/#comment-5382 Thu, 31 Mar 2022 08:54:01 +0000 https://drafts.code-maze.com/?p=67620#comment-5382 In reply to AbedulAlrhman.

You are most welcome.

]]>
By: Gian https://code-maze.com/stringbuilder-csharp/#comment-5379 Wed, 30 Mar 2022 21:34:08 +0000 https://drafts.code-maze.com/?p=67620#comment-5379 Interesante articulo. Saludos.

]]>
By: AbedulAlrhman https://code-maze.com/stringbuilder-csharp/#comment-5373 Tue, 29 Mar 2022 19:43:53 +0000 https://drafts.code-maze.com/?p=67620#comment-5373 Thank you so much creativity

]]>