<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>C Tajam</title>
	<atom:link href="http://ctajam.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ctajam.wordpress.com</link>
	<description>My C# Progamming Journey</description>
	<lastBuildDate>Sun, 22 Nov 2009 04:57:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ctajam.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>C Tajam</title>
		<link>http://ctajam.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ctajam.wordpress.com/osd.xml" title="C Tajam" />
	<atom:link rel='hub' href='http://ctajam.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Date and Time</title>
		<link>http://ctajam.wordpress.com/2009/11/22/date-and-time/</link>
		<comments>http://ctajam.wordpress.com/2009/11/22/date-and-time/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 04:57:46 +0000</pubDate>
		<dc:creator>expertester</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ctajam.wordpress.com/2009/11/22/date-and-time/</guid>
		<description><![CDATA[DateTime myDate = DateTime.Now; DateTime myDate = DateTime.Today; Etc.   DateTime myDate2 = DateTime.Now.AddHours(3000);   Example :   DateTime myDate1 = DateTime.Now; DateTime myDate2 = DateTime.Now.AddHours(3000); TimeSpan difference; difference = myDate2.Subtract(myDate1); double numberOfMinutes; numberOfMinutes = difference.TotalMinutes;   The DateTime and TimeSpan classes also support the + and – arithmetic operators, which do the same work [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=32&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>DateTime myDate = DateTime.<span style="background-color:yellow;">Now;</span>
	</p>
<p>DateTime myDate = DateTime.<span style="background-color:yellow;">Today;</span>
	</p>
<p>Etc.
</p>
<p><img src="http://ctajam.files.wordpress.com/2009/11/112209_0457_dateandtime1.png"/>
	</p>
<p><img src="http://ctajam.files.wordpress.com/2009/11/112209_0457_dateandtime2.png"/>
	</p>
<p>
 </p>
<p>DateTime myDate2 = DateTime.Now.<span style="background-color:yellow;">AddHours(3000);</span>
	</p>
<p><img src="http://ctajam.files.wordpress.com/2009/11/112209_0457_dateandtime3.png"/>
	</p>
<p>
 </p>
<p>Example :
</p>
<p>
 </p>
<p><span style="background-color:yellow;">DateTime myDate1 = DateTime.Now;<br />
</span></p>
<p><span style="background-color:yellow;">DateTime myDate2 = DateTime.Now.AddHours(3000);<br />
</span></p>
<p><span style="background-color:yellow;">TimeSpan difference;<br />
</span></p>
<p><span style="background-color:yellow;">difference = myDate2.Subtract(myDate1);<br />
</span></p>
<p><span style="background-color:yellow;">double numberOfMinutes;<br />
</span></p>
<p><span style="background-color:yellow;">numberOfMinutes = difference.TotalMinutes;</span>
	</p>
<p>
 </p>
<p>The DateTime and TimeSpan classes also support the + and – arithmetic operators, which
</p>
<p>do the same work as the built-in methods. That means you can rewrite the example shown
</p>
<p>earlier like this:
</p>
<p>
 </p>
<p>// Adding a TimeSpan to a DateTime creates a new DateTime.
</p>
<p><span style="background-color:yellow;">DateTime myDate1 = DateTime.Now;<br />
</span></p>
<p><span style="background-color:yellow;">TimeSpan interval = TimeSpan.FromHours(3000);<br />
</span></p>
<p><span style="background-color:yellow;">DateTime myDate2 = myDate1 + interval;</span>
	</p>
<p>// Subtracting one DateTime object from another produces a TimeSpan.
</p>
<p><span style="background-color:yellow;">TimeSpan difference;<br />
</span></p>
<p><span style="background-color:yellow;">difference = myDate2 &#8211; myDate1;</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctajam.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctajam.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctajam.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctajam.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctajam.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctajam.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctajam.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctajam.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctajam.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctajam.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctajam.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctajam.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctajam.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctajam.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=32&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctajam.wordpress.com/2009/11/22/date-and-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98680792ee2aecc0acc84f7cb9ac74ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">expertester</media:title>
		</media:content>

		<media:content url="http://ctajam.files.wordpress.com/2009/11/112209_0457_dateandtime1.png" medium="image" />

		<media:content url="http://ctajam.files.wordpress.com/2009/11/112209_0457_dateandtime2.png" medium="image" />

		<media:content url="http://ctajam.files.wordpress.com/2009/11/112209_0457_dateandtime3.png" medium="image" />
	</item>
		<item>
		<title>String and String</title>
		<link>http://ctajam.wordpress.com/2009/11/21/string-and-string/</link>
		<comments>http://ctajam.wordpress.com/2009/11/21/string-and-string/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 16:54:59 +0000</pubDate>
		<dc:creator>expertester</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ctajam.wordpress.com/2009/11/21/string-and-string/</guid>
		<description><![CDATA[string myString = &#8220;This is a test string &#8220;; myString = myString.Trim();     // = &#8220;This is a test string&#8221; myString = myString.Substring(0, 4);      // = &#8220;This&#8221; myString = myString.ToUpper();      // = &#8220;THIS&#8221; myString = myString.Replace(&#8220;IS&#8221;, &#8220;AT&#8221;); // = &#8220;THAT&#8221; int length = myString.Length;      // = 4 myString = myString.Trim().Substring(0, 4).ToUpper().Replace(&#8220;IS&#8221;, &#8220;AT&#8221;); myString [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=28&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>string myString = &#8220;This is a test string &#8220;;
</p>
<p>myString = myString.Trim();                    // = &#8220;This is a test string&#8221;
</p>
<p>myString = myString.Substring(0, 4);           // = &#8220;This&#8221;
</p>
<p>myString = myString.ToUpper();                 // = &#8220;THIS&#8221;
</p>
<p>myString = myString.Replace(&#8220;IS&#8221;, &#8220;AT&#8221;);   // = &#8220;THAT&#8221;
</p>
<p>int length = myString.Length;                   // = 4
</p>
<p>myString = myString.Trim().Substring(0, 4).ToUpper().Replace(&#8220;IS&#8221;, &#8220;AT&#8221;);
</p>
<p>myString = &#8220;hello&#8221;.ToUpper();     // Sets myString to &#8220;HELLO&#8221;
</p>
<p>
 </p>
<p><img src="http://ctajam.files.wordpress.com/2009/11/112109_1654_stringandst1.png"/>
	</p>
<p><img src="http://ctajam.files.wordpress.com/2009/11/112109_1654_stringandst2.png"/></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctajam.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctajam.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctajam.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctajam.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctajam.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctajam.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctajam.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctajam.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctajam.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctajam.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctajam.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctajam.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctajam.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctajam.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=28&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctajam.wordpress.com/2009/11/21/string-and-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98680792ee2aecc0acc84f7cb9ac74ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">expertester</media:title>
		</media:content>

		<media:content url="http://ctajam.files.wordpress.com/2009/11/112109_1654_stringandst1.png" medium="image" />

		<media:content url="http://ctajam.files.wordpress.com/2009/11/112109_1654_stringandst2.png" medium="image" />
	</item>
		<item>
		<title>Convert Variable Type</title>
		<link>http://ctajam.wordpress.com/2009/11/21/convert-variable-type/</link>
		<comments>http://ctajam.wordpress.com/2009/11/21/convert-variable-type/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 15:49:32 +0000</pubDate>
		<dc:creator>expertester</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ctajam.wordpress.com/2009/11/21/convert-variable-type/</guid>
		<description><![CDATA[Converting informationfrom one data type to another is a fairly common programming task. For example, you might retrieve text input for a user that contains the number you want to use for a calculation. Or, you might need to take a calculated value and transform it into text you can display in a web page. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=25&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Converting informationfrom one data type to another is a fairly common programming task. For example, you might retrieve text input for a user that contains the number you want to use for a calculation. Or, you might need to take a calculated value and transform it into text you can display in a web page.
</p>
<p>Conversions are of two types: widening and narrowing. Widening conversions always succeed. For example, you can always convert a 32-bit integer into a 64-bit integer. You won&#8217;t need any special code:
</p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">int mySmallValue;<br />
</span></p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">long myLargeValue;</span>
	</p>
<p style="margin-left:36pt;">// Get the largest possible value that can be stored as a 32-bit integer.
</p>
<p style="margin-left:36pt;">// .NET provides a constant named Int32.MaxValue that provides this number.
</p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">mySmallValue = Int32.MaxValue;</span>  //can omit with your own self value.
</p>
<p style="margin-left:36pt;">// This always succeeds. No matter how large mySmallValue is,
</p>
<p style="margin-left:36pt;">// it can be contained in myLargeValue.
</p>
<p style="margin-left:36pt;"><span style="color:red;"><strong><span style="background-color:yellow;">myLargeValue = mySmallValue;</span><br />
			</strong></span></p>
<p>
 </p>
<p>On the other hand, <span style="color:red;"><strong>narrowing conversions may or may not succeed</strong></span>, depending on the data. If you&#8217;re converting a 32-bit integer to a 16-bit integer, you could encounter an error if the 32-bit number is larger than the maximum value that can be stored in the 16-bit data type. <span style="color:red;"><strong>All narrowing conversions must be performed explicitly</strong></span>. C# uses an elegant method for explicit type conversion. To convert a variable, you simply need to specify the type in parentheses before the expression you&#8217;re converting.
</p>
<p>The following code shows how to change a 32-bit integer to a 16-bit integer:
</p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">int count32 = 1000;<br />
</span></p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">short count16;</span>
	</p>
<p style="margin-left:36pt;">// Convert the 32-bit integer to a 16-bit integer.
</p>
<p style="margin-left:36pt;">// If count32 is too large to fit, .NET will discard some of the
</p>
<p style="margin-left:36pt;">// information you need, and the resulting number will be incorrect.
</p>
<p style="margin-left:36pt;"><strong><span style="background-color:yellow;">count16 = <span style="color:red;">(short)count32;</span></span><br />
		</strong></p>
<p>If you don&#8217;t use an explicit cast when you attempt to perform a narrowing conversion, you&#8217;ll receive an error when you try to compile your code. However, even if you perform an explicit conversion, you could still end up with an overflow problem (where count32 value is more than 32767. Eg; count32 = 40000. Even with explicit conversion, count16 can&#8217;t hold value more than 32k thus resulting error.
</p>
<p>The checked block enables overflow checking for a portion of code. If an overflow occurs, you&#8217;ll automatically receive an error, just like you would in VB: (IT IS NOT RECOMMENDED TO USE CHECK UNLESS WHEN YOU ARE DEBUGGING)
</p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">checked<br />
</span></p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">{</span>
	</p>
<p style="margin-left:72pt;">// This will cause an exception to be thrown.
</p>
<p style="margin-left:72pt;"><span style="background-color:yellow;">mySmallValue = (int)myLargeValue;<br />
</span></p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">}</span>
	</p>
<p style="margin-left:36pt;">
 </p>
<p>Convert Number to String and vice versa
</p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">string countString = &#8220;10&#8243;;</span>
	</p>
<p style="margin-left:36pt;">// Convert the string &#8220;10&#8243; to the numeric value 10.
</p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">int count = <span style="color:red;"><strong>Convert.ToInt32(countString);</strong></span></span><strong><br />
		</strong></p>
<p style="margin-left:36pt;">// Convert the numeric value 10 into the string &#8220;10&#8243;.
</p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">countString = <span style="color:red;"><strong>Convert.ToString(count);</strong></span></span><strong><br />
		</strong></p>
<p>
 </p>
<p><span style="color:black;">Alternatively:<br />
</span></p>
<p style="margin-left:36pt;"><span style="color:black;"><span style="background-color:yellow;">int count;</span><br />
		</span></p>
<p style="margin-left:36pt;"><span style="color:black;"><span style="background-color:yellow;">string countString = &#8220;10&#8243;;</span><br />
		</span></p>
<p style="margin-left:36pt;"><span style="color:black;">// Convert the string &#8220;10&#8243; to the numeric value 10.<br />
</span></p>
<p style="margin-left:36pt;"><span style="color:black;"><span style="background-color:yellow;">count = <span style="color:#c00000;"><strong>Int32.Parse(countString);</strong></span></span><strong><br />
			</strong></span></p>
<p style="margin-left:36pt;">
 </p>
<p><span style="color:black;">Alternatively II (Java Flavor)<br />
</span></p>
<p style="margin-left:36pt;"><span style="color:black;"><span style="background-color:yellow;">string myString;</span><br />
		</span></p>
<p style="margin-left:36pt;"><span style="color:black;"><span style="background-color:yellow;">int myInteger = 100;</span><br />
		</span></p>
<p style="margin-left:36pt;"><span style="color:black;">// Convert a number to a string. myString will have the contents &#8220;100&#8243;.<br />
</span></p>
<p style="margin-left:36pt;"><span style="color:black;background-color:yellow;">myString = <span style="color:#c00000;"><strong>myInteger.ToString();</strong></span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctajam.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctajam.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctajam.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctajam.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctajam.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctajam.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctajam.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctajam.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctajam.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctajam.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctajam.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctajam.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctajam.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctajam.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=25&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctajam.wordpress.com/2009/11/21/convert-variable-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98680792ee2aecc0acc84f7cb9ac74ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">expertester</media:title>
		</media:content>
	</item>
		<item>
		<title>Maths</title>
		<link>http://ctajam.wordpress.com/2009/11/21/maths/</link>
		<comments>http://ctajam.wordpress.com/2009/11/21/maths/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 15:23:57 +0000</pubDate>
		<dc:creator>expertester</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ctajam.wordpress.com/2009/11/21/maths/</guid>
		<description><![CDATA[int number; number = 4 + 2 * 3; // number will be 10. If you divide 5 by 2, you&#8217;ll end up with 2 instead of 2.5. The solution is to explicitly indicate that one of your numbers is a fractional value. For example, if you replace 5 with 5M, C# will treat the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=24&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:yellow;">int number;<br />
</span></p>
<p><span style="background-color:yellow;">number = 4 + 2 * 3;</span>
	</p>
<p>// number will be 10.
</p>
<p>If you divide 5 by 2, you&#8217;ll end up with 2 instead of 2.5. The solution is to explicitly indicate that one of your numbers is a fractional value. For example, if you replace 5 with 5M, C# will treat the 5 as a decimal. If you replace 5 with 5.0, C# will treat it as a double. Either way, the division will return the expected value of 2.5.
</p>
<p>
 </p>
<p>// Join three strings together.
</p>
<p><span style="background-color:yellow;">myName = firstName + &#8221; &#8221; + lastName;</span>
	</p>
<p>
 </p>
<p>// Add 10 to myValue. This is the same as myValue = myValue + 10;
</p>
<p><span style="background-color:yellow;">myValue += 10;</span>
	</p>
<p>
 </p>
<p>// Multiple myValue by 3. This is the same as myValue = myValue * 3;
</p>
<p><span style="background-color:yellow;">myValue *= 3;</span>
	</p>
<p>
 </p>
<p>// Divide myValue by 12. This is the same as myValue = myValue / 12;
</p>
<p><span style="background-color:yellow;">myValue /= 12;</span>
	</p>
<p>
 </p>
<p>To use the math operations, you invoke the methods of the System.Math class.
</p>
<p><span style="background-color:yellow;">double myValue;</span>
	</p>
<p><span style="background-color:yellow;">myValue = Math.Sqrt(81);</span>          // myValue = 9.0
</p>
<p><span style="background-color:yellow;">myValue = Math.Round(42.889, 2);</span>  // myValue = 42.89
</p>
<p><span style="background-color:yellow;">myValue = Math.Abs(-10);</span>          // myValue = 10.0
</p>
<p><span style="background-color:yellow;">myValue = Math.Log(24.212);</span>       // myValue = 3.18.. (and so on)
</p>
<p><span style="background-color:yellow;">myValue = Math.PI;</span>                // myValue = 3.14.. (and so on)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctajam.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctajam.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctajam.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctajam.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctajam.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctajam.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctajam.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctajam.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctajam.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctajam.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctajam.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctajam.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctajam.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctajam.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=24&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctajam.wordpress.com/2009/11/21/maths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98680792ee2aecc0acc84f7cb9ac74ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">expertester</media:title>
		</media:content>
	</item>
		<item>
		<title>Enumerations</title>
		<link>http://ctajam.wordpress.com/2009/11/21/enumerations/</link>
		<comments>http://ctajam.wordpress.com/2009/11/21/enumerations/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 15:16:01 +0000</pubDate>
		<dc:creator>expertester</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ctajam.wordpress.com/2009/11/21/enumerations/</guid>
		<description><![CDATA[An enumeration is a group of related constants, each of which is given a descriptive name. Each value in an enumeration corresponds to a preset integer. Here&#8217;s an example of an enumeration that defines different types of users: // Define an enumeration type named UserType with three possible values. enum UserType { Admin, Guest, Invalid [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=23&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>An enumeration is a group of related constants, each of which is given a descriptive name. Each value in an enumeration corresponds to a preset integer.
</p>
<p>Here&#8217;s an example of an enumeration that defines different types of users:
</p>
<p>// Define an enumeration type named UserType with three possible values.
</p>
<p><span style="background-color:yellow;"><strong>enum </strong>UserType<br />
</span></p>
<p><span style="background-color:yellow;">{<br />
</span></p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">Admin,<br />
</span></p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">Guest,<br />
</span></p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">Invalid<br />
</span></p>
<p><span style="background-color:yellow;">}</span>
	</p>
<p>Now you can use the UserType enumerationas a special data type that is restricted to one
</p>
<p>of three possible values. You assign or compare the enumerated value using the dot notation
</p>
<p>shown in the following example:
</p>
<p>// Create a new value and set it equal to the UserType.Admin constant.
</p>
<p><span style="background-color:yellow;"><strong>UserType</strong> newUserType = UserType.Admin;</span>
	</p>
<p>
 </p>
<p>Internally, enumerations are maintained as numbers. In the preceding example, 0 is automatically assigned to Admin, 1 to Guest, and 2 to Invalid.
</p>
<p>But, if you want to manually assign integer value to each enumerate option :
</p>
<p><span style="background-color:yellow;">enum ErrorCode<br />
</span></p>
<p><span style="background-color:yellow;">{<br />
</span></p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">NoResponse = 166,<br />
</span></p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">TooBusy = 167,<br />
</span></p>
<p style="margin-left:36pt;"><span style="background-color:yellow;">Pass = 0<br />
</span></p>
<p><span style="background-color:yellow;">}</span>
	</p>
<p>Now you can use the ErrorCode enumeration with a function that returns an integer representing an error condition, as shown here:
</p>
<p><span style="background-color:yellow;">ErrorCode err;<br />
</span></p>
<p><span style="background-color:yellow;">err = DoSomething();<br />
</span></p>
<p><span style="background-color:yellow;">if (err == ErrorCode.Pass)<br />
</span></p>
<p><span style="background-color:yellow;">{<br />
</span></p>
<p><span style="background-color:yellow;">// Operation succeeded.<br />
</span></p>
<p><span style="background-color:yellow;">}</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctajam.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctajam.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctajam.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctajam.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctajam.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctajam.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctajam.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctajam.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctajam.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctajam.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctajam.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctajam.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctajam.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctajam.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=23&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctajam.wordpress.com/2009/11/21/enumerations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98680792ee2aecc0acc84f7cb9ac74ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">expertester</media:title>
		</media:content>
	</item>
		<item>
		<title>Array</title>
		<link>http://ctajam.wordpress.com/2009/11/21/array/</link>
		<comments>http://ctajam.wordpress.com/2009/11/21/array/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 15:08:17 +0000</pubDate>
		<dc:creator>expertester</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ctajam.wordpress.com/2009/11/21/array/</guid>
		<description><![CDATA[Array // Create an array with four strings (from index 0 to index 3). // You need to initialize the array with the // new keyword in order to use it. string[] stringArray = new string[4];   // Create a 2&#215;4 grid array (with a total of eight integers). int[,] intArray = new int[2, 4]; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=22&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Array<br />
</strong></p>
<p>// Create an array with four strings (from index 0 to index 3).
</p>
<p>// You need to initialize the array with the
</p>
<p>// new keyword in order to use it.
</p>
<p><span style="background-color:yellow;">string[] stringArray = new string[4];</span>
	</p>
<p>
 </p>
<p>// Create a 2&#215;4 grid array (with a total of eight integers).
</p>
<p><span style="background-color:yellow;">int[,] intArray = new int[2, 4];</span>
	</p>
<p>
 </p>
<p>// Create an array with four strings, one for each number from 1 to 4.
</p>
<p><span style="background-color:yellow;">string[] stringArray = {&#8220;1&#8243;, &#8220;2&#8243;, &#8220;3&#8243;, &#8220;4&#8243;};</span>
	</p>
<p>
 </p>
<p>The same technique works for multidimensional arrays, except that two sets of curly
</p>
<p>brackets are required:
</p>
<p>// Create a 4&#215;2 array (a grid with four rows and two columns).
</p>
<p><span style="background-color:yellow;">int[,] intArray = {{1, 2}, {3, 4}, {5, 6}, {7, 8}};</span>
	</p>
<p>
 </p>
<p>To access an element in an array, you specify the corresponding index number in square
</p>
<p>brackets: []. Array indices are always zero-based. That means that myArray[0] accesses the first
</p>
<p>cell in a one-dimensional array, myArray[1] accesses the second cell, and so on:
</p>
<p>// Access the value in row 0 (first row), column 1 (second column).
</p>
<p><span style="background-color:yellow;">int element;<br />
</span></p>
<p><span style="background-color:yellow;">element = intArray[0, 1];</span>    // Element is now set to 2.
</p>
<p><em>Once you create an array, you can&#8217;t change its size. Instead, you would need to create a new array with the new size and copy<br />
</em></p>
<p><em>values from the old array to the new, which would be a tedious process.<br />
</em></p>
<p>
 </p>
<p><strong>Dynamic Array List<br />
</strong></p>
<p>However, if you need adynamic array-like list, you can use one of the collection classes provided to all .NET lan-
</p>
<p>guages through the .NET class library. One of the simplest collection classes that .NET offers is
</p>
<p>the ArrayList, which always allows dynamic resizing. Here&#8217;s a snippet of C# code that uses an
</p>
<p>ArrayList:
</p>
<p>// Create an ArrayList object. It&#8217;s a collection, not an array,
</p>
<p>// so the syntax is slightly different.
</p>
<p><span style="background-color:yellow;">ArrayList dynamicList = new ArrayList();</span>
	</p>
<p>// Add several strings to the list.
</p>
<p>// The ArrayList is not strongly typed, so you can add any data type
</p>
<p>// although it&#8217;s simplest if you store just one type of object
</p>
<p>// in any given collection.
</p>
<p><span style="background-color:yellow;">dynamicList.Add(&#8220;one&#8221;);<br />
</span></p>
<p><span style="background-color:yellow;">dynamicList.Add(&#8220;two&#8221;);<br />
</span></p>
<p><span style="background-color:yellow;">dynamicList.Add(&#8220;three&#8221;);</span>
	</p>
<p>// Retrieve the first string. Notice that the object must be converted to a
</p>
<p>// string, because there&#8217;s no way for .NET to be certain what it is.
</p>
<p><span style="background-color:yellow;">string item = Convert.ToString(dynamicList[0]);</span>
	</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctajam.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctajam.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctajam.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctajam.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctajam.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctajam.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctajam.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctajam.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctajam.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctajam.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctajam.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctajam.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctajam.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctajam.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=22&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctajam.wordpress.com/2009/11/21/array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98680792ee2aecc0acc84f7cb9ac74ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">expertester</media:title>
		</media:content>
	</item>
		<item>
		<title>Escape Character</title>
		<link>http://ctajam.wordpress.com/2009/11/21/escape-character/</link>
		<comments>http://ctajam.wordpress.com/2009/11/21/escape-character/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 15:07:38 +0000</pubDate>
		<dc:creator>expertester</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ctajam.wordpress.com/2009/11/21/escape-character/</guid>
		<description><![CDATA[Escape Char \&#8221; (double quote) • \n (new line) •\t (horizontal tab) •\\ (backward slash)   You can also insert a special character based on its hex code using the syntax \x123. This inserts a single character with hex value 123. Note that in order to specify the actual backslash character (for example, in a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=21&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Escape Char<br />
</strong></p>
<p>\&#8221; (double quote)
</p>
<p>• \n (new line)
</p>
<p>•\t (horizontal tab)
</p>
<p>•\\ (backward slash)
</p>
<p>
 </p>
<p>You can also insert a special character based on its hex code using the syntax \x123. This
</p>
<p>inserts a single character with hex value 123.
</p>
<p>Note that in order to specify the actual backslash character (for example, in a directory
</p>
<p>name), you require two slashes. Here&#8217;s an example:
</p>
<p>
 </p>
<p>// A C# variable holding the
</p>
<p>// c:\MyApp\MyFiles path.
</p>
<p><span style="background-color:yellow;">path = &#8220;c:\\MyApp\\MyFiles&#8221;;</span>
	</p>
<p>
 </p>
<p>Alternatively, youcan turn off C# escaping by preceding a string with an @ symbol, as
</p>
<p>shown here:
</p>
<p><span style="background-color:yellow;">path = @&#8221;c:\MyApp\MyFiles&#8221;;</span>
	</p>
<p>
 </p>
<p>
 </p>
<p>
 </p>
<p>    </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctajam.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctajam.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctajam.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctajam.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctajam.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctajam.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctajam.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctajam.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctajam.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctajam.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctajam.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctajam.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctajam.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctajam.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=21&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctajam.wordpress.com/2009/11/21/escape-character/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98680792ee2aecc0acc84f7cb9ac74ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">expertester</media:title>
		</media:content>
	</item>
		<item>
		<title>Casting</title>
		<link>http://ctajam.wordpress.com/2009/11/21/casting/</link>
		<comments>http://ctajam.wordpress.com/2009/11/21/casting/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 15:06:51 +0000</pubDate>
		<dc:creator>expertester</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ctajam.wordpress.com/2009/11/21/casting/</guid>
		<description><![CDATA[Casting If we declare integer type variable but initialize it with decimal variable: int myInteger = 10.55;    //error will occur We will get syntax error.   To get around this problem, C# defines a few special characters that you can append to literal values to indicate their data type so that no conversion will be required. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=20&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Casting<br />
</strong></p>
<p>If we declare integer type variable but initialize it with decimal variable:
</p>
<p><span style="background-color:yellow;">int myInteger = 10.55;</span>    //error will occur
</p>
<p>We will get syntax error.
</p>
<p>
 </p>
<p>To get around this problem, C# defines a few special characters that you can append
</p>
<p>to literal values to indicate their data type so that no conversion will be required. These are as
</p>
<p>follows:
</p>
<p><span style="background-color:yellow;">•M (decimal)<br />
</span></p>
<p><span style="background-color:yellow;">•D (double)<br />
</span></p>
<p><span style="background-color:yellow;">•F (float)<br />
</span></p>
<p><span style="background-color:yellow;">•L (long)</span>
	</p>
<p>For example, you can rewrite the earlier example using the decimal indicator as follows:
</p>
<p><span style="background-color:yellow;">decimal myDecimal = 14.5M;</span>
	</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctajam.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctajam.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctajam.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctajam.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctajam.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctajam.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctajam.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctajam.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctajam.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctajam.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctajam.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctajam.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctajam.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctajam.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=20&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctajam.wordpress.com/2009/11/21/casting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98680792ee2aecc0acc84f7cb9ac74ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">expertester</media:title>
		</media:content>
	</item>
		<item>
		<title>Variable</title>
		<link>http://ctajam.wordpress.com/2009/11/21/variable/</link>
		<comments>http://ctajam.wordpress.com/2009/11/21/variable/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 15:04:45 +0000</pubDate>
		<dc:creator>expertester</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ctajam.wordpress.com/2009/11/21/variable/</guid>
		<description><![CDATA[  C# safeguards you from errors by restricting you from using uninitialized variables. This means the following code will not succeed: int number; // Number is uninitialized. number = number + 1; // This causes a compile error.   C# also deals strictly with data types. For example, the following code statement won&#8217;t work as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=19&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://ctajam.files.wordpress.com/2009/11/112109_1504_variable1.png"/>
	</p>
<p><img src="http://ctajam.files.wordpress.com/2009/11/112109_1504_variable2.png"/>
	</p>
<p>
 </p>
<p>C# safeguards you from errors by restricting you from using uninitialized variables. This
</p>
<p>means the following code will not succeed:
</p>
<p>int number;             // Number is uninitialized.
</p>
<p>number = number + 1;    // This causes a compile error.
</p>
<p>
 </p>
<p>C# also deals strictly with data types. For example, the following code statement won&#8217;t
</p>
<p>work as written:
</p>
<p>decimal myDecimal = 14.5;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctajam.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctajam.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctajam.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctajam.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctajam.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctajam.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctajam.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctajam.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctajam.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctajam.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctajam.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctajam.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctajam.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctajam.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=19&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctajam.wordpress.com/2009/11/21/variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98680792ee2aecc0acc84f7cb9ac74ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">expertester</media:title>
		</media:content>

		<media:content url="http://ctajam.files.wordpress.com/2009/11/112109_1504_variable1.png" medium="image" />

		<media:content url="http://ctajam.files.wordpress.com/2009/11/112109_1504_variable2.png" medium="image" />
	</item>
		<item>
		<title>Hmmmm C#</title>
		<link>http://ctajam.wordpress.com/2008/11/18/hmmmm-c/</link>
		<comments>http://ctajam.wordpress.com/2008/11/18/hmmmm-c/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 16:20:35 +0000</pubDate>
		<dc:creator>expertester</dc:creator>
				<category><![CDATA[Umum]]></category>

		<guid isPermaLink="false">http://ctajam.wordpress.com/?p=9</guid>
		<description><![CDATA[Beberapa fakta berkaitan C# : C# adalah general purpose programming language. Dia tak specific kepada tugas-tugas tertentu jer. C# mungkin kurang sesuai utk buat OS (C lebih sesuai dalam kes nie), tapi utk buat program yang simpan dan ambil data dari database, communication software, video controller, games &#8230;. idea is the limit. C# dapat hasilkan [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=9&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Beberapa fakta berkaitan C# :</p>
<ol>
<li>C# adalah general purpose programming language. Dia tak specific kepada tugas-tugas tertentu jer. C# mungkin kurang sesuai utk buat OS (C lebih sesuai dalam kes nie), tapi utk buat program yang simpan dan ambil data dari database, communication software, video controller, games &#8230;. idea is the limit.</li>
<li>C# dapat hasilkan program yang solid dan robust spt C++, tanpa perlukan pointer.</li>
<li>C# mempunyai kawalan skrin (screen handler) yang lbeih baik dari C++. Dikatakan sebaik Visual Basic dan Delphi.</li>
<li>Program yang ditulis menggunakan C# tidak semestinya terhad pada Microsoft Windows semata-mata. Project Mono dan DOTGNU project membolehkan applikasi yang ditulis menggunakan C# dijalankan di LINUX.</li>
<li>Sesetegah developer mendakwa C# lebih perlahan dari C++ kerena C# tidak di compile sepenuhnya. Walaupun demikian, dotnet runtime akan compile interpreted code (CIL) semasa program itu pertama kali dijalankan. Microsoft mendakwa, C# sepantas C++ if not faster.</li>
</ol>
<p> </p>
<p>Link :</p>
<ul>
<li><a href="http://cplus.about.com/od/programminggames/a/beagamedev.htm">Game Development</a>.</li>
<li><a href="http://cplus.about.com/od/introductiontoprogramming/a/career.htm">Professional Career</a></li>
<li><a href="http://cplus.about.com/od/thebusinessofsoftware/a/softwareeng.htm">Software Engineering</a></li>
<li><a href="http://cplus.about.com/od/codelibraryfor1/A_Library_of_Software_written_in_C_with_full_source_code.htm">C# Code Library</a></li>
<li><a href="http://cplus.about.com/od/glossary/Top_Tools_Utilities_and_Resources.htm">Tools And Utilities</a></li>
<li>
	</li>
<li>Download and Install <a href="http://cplus.about.com/od/learnc/ss/tcsharp2ins.htm">Borland&#8217;s Turbo C# Explorer</a></li>
<li>Download and Install <a href="http://cplus.about.com/od/learnc/ss/vcsharpins.htm">Microsoft&#8217;s Visual C# 2005 Express Edition</a></li>
</ul>
<ul></ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ctajam.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ctajam.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ctajam.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ctajam.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ctajam.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ctajam.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ctajam.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ctajam.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ctajam.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ctajam.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ctajam.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ctajam.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ctajam.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ctajam.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ctajam.wordpress.com&amp;blog=5560075&amp;post=9&amp;subd=ctajam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ctajam.wordpress.com/2008/11/18/hmmmm-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98680792ee2aecc0acc84f7cb9ac74ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">expertester</media:title>
		</media:content>
	</item>
	</channel>
</rss>
