<?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>my C# notes &#187; F- Strings</title>
	<atom:link href="http://www.strategyawards2008.com/category/02-c-intro/f-strings/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.strategyawards2008.com</link>
	<description>my C# notes</description>
	<lastBuildDate>Sun, 08 Mar 2009 08:01:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Dealing with Simple Strings</title>
		<link>http://www.strategyawards2008.com/2009/03/dealing-with-simple-strings/</link>
		<comments>http://www.strategyawards2008.com/2009/03/dealing-with-simple-strings/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 06:45:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[F- Strings]]></category>

		<guid isPermaLink="false">http://www.strategyawards2008.com/?p=86</guid>
		<description><![CDATA[From before, you know how to declare a string, here it is again for you string myString; myString = &#8220;Hi There, i am a string&#8221;; Parsing Assuming your string is string myStringInteger = &#8220;10&#8243;; and you want to get that value in an integer variable You can simply use the parse keyword int myInteger = [...]]]></description>
			<content:encoded><![CDATA[<p>From before, you know how to declare a string, here it is again for you</p>
<p>string myString;<br />
myString = &#8220;Hi There, i am a string&#8221;;</p>
<p>Parsing<br />
Assuming your string is<br />
string myStringInteger = &#8220;10&#8243;;</p>
<p>and you want to get that value in an integer variable<br />
You can simply use the parse keyword<br />
int myInteger = int.Parse(myStringInteger);</p>
<p>You can do that to a boolean variable as well<br />
string myBoolString = &#8220;True&#8221;;<br />
bool myBool = bool.Parse(myBoolString);</p>
<p>Strings come with extra functionality as well.</p>
<p>myBoolString.Length will be equal to 4 since True has 4 letters.</p>
<p>Strings are no good for efficiency, rather you would want to use StringBuilder for larger texts</p>
<p>You may also be interested in knowing that although a string is not a value type, the == operator is overloaded to mean &#8220;Is the content identical in both strings&#8221;, If you don&#8217;t know why this is strange, You will find out as you read</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strategyawards2008.com/2009/03/dealing-with-simple-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
