<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>out &#62;&#62; m_Conscientia; &#187; StringBuilder</title>
	<atom:link href="http://blog.hypercomplex.co.uk/index.php/tag/stringbuilder/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hypercomplex.co.uk</link>
	<description>a multidimensional braindump</description>
	<lastBuildDate>Sat, 27 Aug 2011 19:16:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>StringBuilder</title>
		<link>http://blog.hypercomplex.co.uk/index.php/2009/07/stringbuilder/</link>
		<comments>http://blog.hypercomplex.co.uk/index.php/2009/07/stringbuilder/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 18:17:42 +0000</pubDate>
		<dc:creator>Alex Peck</dc:creator>
				<category><![CDATA[Software Engineering]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Application Development Foundation]]></category>
		<category><![CDATA[StringBuilder]]></category>

		<guid isPermaLink="false">http://blog.hypercomplex.co.uk/?p=290</guid>
		<description><![CDATA[Since strings in .NET are immutable, StringBuilder is used when you need to work with mutable string data &#8211; i.e. appending, removing, replacing, or inserting characters. MSDN states that most of the methods that modify an instance of this class return a reference to that same instance. Since a reference to the instance is returned, [...]]]></description>
			<content:encoded><![CDATA[<p>Since strings in .NET are immutable, <a href="http://msdn.microsoft.com/en-us/library/system.text.stringbuilder.aspx">StringBuilder</a> is used when you need to work with mutable string data &#8211; i.e. appending, removing, replacing, or inserting characters.</p>
<p>MSDN states that <em>most of the methods that modify an instance of this class return a reference to that same instance. Since a reference to the instance is returned, you can call a method or property on the reference. This can be convenient if you want to write a single statement that chains successive operations one after another</em>.</p>
<p>Performance consideration: StringBuilder is only really advantageous when working with larger string operations, like concatenating tens of strings in a loop. This is due to the overhead of creating a StringBuilder vs a string &#8211; StringBuilder is obviously more complex. Rico Mariani provides similar <a href="http://blogs.msdn.com/ricom/archive/2003/12/15/43628.aspx">advice</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hypercomplex.co.uk/index.php/2009/07/stringbuilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

