<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-1847486894770293726</atom:id><lastBuildDate>Fri, 18 Dec 2009 17:57:48 +0000</lastBuildDate><title>My Programming Tips</title><description></description><link>http://fordemand.blogspot.com/</link><managingEditor>nirmal292283@gmail.com (Nirmal)</managingEditor><generator>Blogger</generator><openSearch:totalResults>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-1555989869716141610</guid><pubDate>Mon, 09 Feb 2009 17:36:00 +0000</pubDate><atom:updated>2009-02-09T09:36:27.668-08:00</atom:updated><title>Associating Strings with enums in C#</title><description>&lt;h1&gt;&lt;a class="postheader taggedlink" href="http://blog.spontaneouspublicity.com/post/2008/01/17/Associating-Strings-with-enums-in-C.aspx"&gt;Associating Strings with enums in C#&lt;/a&gt;&lt;/h1&gt;     &lt;div class="descr"&gt;January 17, 2008 14:50 by &lt;a href="http://blog.spontaneouspublicity.com/author/Luke.aspx"&gt;Luke&lt;/a&gt;&lt;/div&gt;                                &lt;p&gt;I have seen &lt;a href="http://devlicious.com/blogs/christopher_bennage/archive/2007/09/13/my-new-little-friend-enum-lt-t-gt.aspx" target="_blank"&gt;other&lt;/a&gt; &lt;a href="http://rodenbaugh.net/archive/2006/11/01/Enum-Helper-Class-Using-Generics.aspx" target="_blank"&gt;great&lt;/a&gt; &lt;a href="http://kirillosenkov.blogspot.com/2007/09/making-c-enums-more-usable-parse-method.html" target="_blank"&gt;articles&lt;/a&gt; out lining the benefits of some pretty clever and useful helper classes for enums. Many of these methods almost exactly mirror methods I had written in my own EnumHelper class. (Isn&amp;#39;t it crazy when you imagine how much code duplication there must be like this out there!)&lt;/p&gt; &lt;p&gt;One thing that I don&amp;#39;t see emphasized much is trying to associated string values with enums. For example, what if you want to have a Drop Down list that you can choose from a list of values (which are backed by an enum)? Lets start with a test enum:&lt;/p&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;public enum &lt;/span&gt;States&lt;br&gt;{&lt;br&gt;    California,&lt;br&gt;    NewMexico,&lt;br&gt;    NewYork,&lt;br&gt;    SouthCarolina,&lt;br&gt;    Tennessee,&lt;br&gt;    Washington&lt;br&gt;}&lt;/pre&gt;  &lt;p&gt;So if you made a drop down list out of this enum, using the ToString() method, you would get a drop down that looks like this:&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0pt;" alt="image" src="http://lfoust.files.wordpress.com/2008/01/image2.png" border="0" width="117" height="141"&gt; &lt;/p&gt; &lt;p&gt;While most people will understand this, it should really be displayed like this:&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0pt;" alt="image" src="http://lfoust.files.wordpress.com/2008/01/image3.png" border="0" width="118" height="135"&gt; &lt;/p&gt; &lt;p&gt;&amp;quot;But enums can&amp;#39;t have spaces in C#!&amp;quot; you say. Well, I like to use the System.ComponentModel.DescriptionAttribute to add a more friendly description to the enum values. The example enum can be rewritten like this:&lt;/p&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;public enum &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;States&lt;br&gt;&lt;/span&gt;{&lt;br&gt;    California,&lt;br&gt;    [&lt;span style="color: rgb(43, 145, 175);"&gt;Description&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;&amp;quot;New Mexico&amp;quot;&lt;/span&gt;)]&lt;br&gt;     NewMexico,&lt;br&gt;    [&lt;span style="color: rgb(43, 145, 175);"&gt;Description&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;&amp;quot;New York&amp;quot;&lt;/span&gt;)]&lt;br&gt;    NewYork,&lt;br&gt;    [&lt;span style="color: rgb(43, 145, 175);"&gt;Description&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;&amp;quot;South Carolina&amp;quot;&lt;/span&gt;)]&lt;br&gt;     SouthCarolina,&lt;br&gt;    Tennessee,&lt;br&gt;    Washington&lt;br&gt;}&lt;/pre&gt; &lt;p&gt;Notice that I do not put descriptions on items where the ToString() version of that item displays just fine.&lt;/p&gt; &lt;h2&gt;How Do We Get To the Description?&lt;/h2&gt; &lt;p&gt;Good question! Well, using reflection of course! Here is what the code looks like:&lt;/p&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;public static string &lt;/span&gt;GetEnumDescription(&lt;span style="color: rgb(43, 145, 175);"&gt;Enum &lt;/span&gt;value)&lt;br&gt; {&lt;br&gt;    &lt;span style="color: rgb(43, 145, 175);"&gt;FieldInfo &lt;/span&gt;fi = value.GetType().GetField(value.ToString());&lt;br&gt;&lt;br&gt;    &lt;span style="color: rgb(43, 145, 175);"&gt;DescriptionAttribute&lt;/span&gt;[] attributes =&lt;br&gt;        (&lt;span style="color: rgb(43, 145, 175);"&gt;DescriptionAttribute&lt;/span&gt;[])fi.GetCustomAttributes(&lt;br&gt;         &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(&lt;span style="color: rgb(43, 145, 175);"&gt;DescriptionAttribute&lt;/span&gt;),&lt;br&gt;        &lt;span style="color: blue;"&gt;false&lt;/span&gt;);&lt;br&gt;&lt;br&gt;    &lt;span style="color: blue;"&gt;if &lt;/span&gt;(attributes != &lt;span style="color: blue;"&gt;null &lt;/span&gt;&amp;amp;&amp;amp;&lt;br&gt;         attributes.Length &amp;gt; 0)&lt;br&gt;        &lt;span style="color: blue;"&gt;return &lt;/span&gt;attributes[0].Description;&lt;br&gt;    &lt;span style="color: blue;"&gt;else&lt;br&gt;        return &lt;/span&gt;value.ToString();&lt;br&gt;}&lt;/pre&gt; &lt;p&gt;This method first looks for the presence of a DescriptionAttribute and if it doesn&amp;#39;t find one, it just returns the ToString() of the value passed in. So &lt;/p&gt;&lt;pre&gt;GetEnumDescription(&lt;span style="color: rgb(43, 145, 175);"&gt;States&lt;/span&gt;.NewMexico);&lt;/pre&gt; &lt;p&gt;returns the string &amp;quot;New Mexico&amp;quot;.&lt;/p&gt; &lt;h2&gt;A Free Bonus: How to Enumerate Enums&lt;/h2&gt; &lt;p&gt;Ok, so now we know how to get the string value of an enum. But as a free bonus, I also have a helper method that allows you to enumerate all the values of a given enum. This will allow you to easily create a drop down list based on an enum. Here is the code for that method:&lt;/p&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;public static &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;IEnumerable&lt;/span&gt;&amp;lt;T&amp;gt; EnumToList&amp;lt;T&amp;gt;()&lt;br&gt;{&lt;br&gt;     &lt;span style="color: rgb(43, 145, 175);"&gt;Type &lt;/span&gt;enumType = &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(T);&lt;br&gt;&lt;br&gt;    &lt;span style="color: green;"&gt;// Can&amp;#39;t use generic type constraints on value types,&lt;br&gt;    // so have to do check like this&lt;br&gt;     &lt;/span&gt;&lt;span style="color: blue;"&gt;if &lt;/span&gt;(enumType.BaseType != &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(&lt;span style="color: rgb(43, 145, 175);"&gt;Enum&lt;/span&gt;))&lt;br&gt;        &lt;span style="color: blue;"&gt;throw new &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;ArgumentException&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;&amp;quot;T must be of type System.Enum&amp;quot;&lt;/span&gt;);&lt;br&gt; &lt;br&gt;    &lt;span style="color: rgb(43, 145, 175);"&gt;Array &lt;/span&gt;enumValArray = &lt;span style="color: rgb(43, 145, 175);"&gt;Enum&lt;/span&gt;.GetValues(enumType);&lt;br&gt;    &lt;span style="color: rgb(43, 145, 175);"&gt;List&lt;/span&gt;&amp;lt;T&amp;gt; enumValList = &lt;span style="color: blue;"&gt;new &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;List&lt;/span&gt;&amp;lt;T&amp;gt;(enumValArray.Length);&lt;br&gt; &lt;br&gt;    &lt;span style="color: blue;"&gt;foreach &lt;/span&gt;(&lt;span style="color: blue;"&gt;int &lt;/span&gt;val &lt;span style="color: blue;"&gt;in &lt;/span&gt;enumValArray)&lt;br&gt;    {&lt;br&gt;        enumValList.Add((T)&lt;span style="color: rgb(43, 145, 175);"&gt;Enum&lt;/span&gt;.Parse(enumType, val.ToString()));&lt;br&gt;     }&lt;br&gt;&lt;br&gt;    &lt;span style="color: blue;"&gt;return &lt;/span&gt;enumValList;&lt;br&gt;}&lt;/pre&gt;As you can see, the code for either of these methods isn&amp;#39;t too complicated. But used in conjunction, they can be really useful. Here is an example of how we would create the drop down list pictured above based on our enum:&lt;pre&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;DropDownList &lt;/span&gt;stateDropDown = &lt;span style="color: blue;"&gt;new &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;DropDownList&lt;/span&gt;();&lt;br&gt;&lt;span style="color: blue;"&gt;foreach &lt;/span&gt;(&lt;span style="color: rgb(43, 145, 175);"&gt;States &lt;/span&gt;state &lt;span style="color: blue;"&gt;in &lt;/span&gt;EnumToList&amp;lt;&lt;span style="color: rgb(43, 145, 175);"&gt;States&lt;/span&gt;&amp;gt;())&lt;br&gt; {&lt;br&gt;    stateDropDown.Items.Add(GetEnumDescription(state));&lt;br&gt;}&lt;/pre&gt; &lt;p&gt;Pretty simple huh? I hope you find this as useful as I do.&lt;/p&gt; &lt;h2&gt;One More Example&lt;/h2&gt; &lt;p&gt;There is one more scenario that I often find myself needing to associate string values with enums - when dealing with legacy constant string based system. Lets say you have a library that has the following method:&lt;/p&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;public void &lt;/span&gt;ExecuteAction(&lt;span style="color: blue;"&gt;int &lt;/span&gt;value, &lt;span style="color: blue;"&gt;string &lt;/span&gt;actionType)&lt;br&gt;{&lt;br&gt;    &lt;span style="color: blue;"&gt;if &lt;/span&gt;(actionType == &lt;span style="color: rgb(163, 21, 21);"&gt;&amp;quot;DELETE&amp;quot;&lt;/span&gt;)&lt;br&gt;         Delete();&lt;br&gt;    &lt;span style="color: blue;"&gt;else if &lt;/span&gt;(actionType == &lt;span style="color: rgb(163, 21, 21);"&gt;&amp;quot;UPDATE&amp;quot;&lt;/span&gt;)&lt;br&gt;        Update();&lt;br&gt;}&lt;/pre&gt;(I tried to make this look as legacy as I could for a contrived example). What happens if somebody passes in &amp;quot;MyEvilAction&amp;quot; as a value for actionType? Well, whenever I see hard coded strings, that is a code smell that could possibly point to the use of enums instead. But sometimes you don&amp;#39;t have control over legacy code and you have to deal with it. So you could make an enum which looks like this:&lt;pre&gt;&lt;span style="color: blue;"&gt;public enum &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;ActionType&lt;br&gt;&lt;/span&gt;{&lt;br&gt;    [&lt;span style="color: rgb(43, 145, 175);"&gt;Description&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;&amp;quot;DELETE&amp;quot;&lt;/span&gt;)]&lt;br&gt;     Delete,&lt;br&gt;    [&lt;span style="color: rgb(43, 145, 175);"&gt;Description&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;&amp;quot;UPDATE&amp;quot;&lt;/span&gt;)]&lt;br&gt;    Update&lt;br&gt;}&lt;/pre&gt;(I know, I know, this is a very contrived example) Then you could call the ExecuteAction Method like this:&lt;pre&gt; ExecuteAction(5, GetEnumDescription(&lt;span style="color: rgb(43, 145, 175);"&gt;ActionType&lt;/span&gt;.Delete));&lt;/pre&gt; &lt;p&gt;This at least makes the code more readable and may also make it more consistent and secure.&lt;/p&gt;&lt;br clear="all"&gt;&lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-1555989869716141610?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2009/02/associating-strings-with-enums-in-c.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-6720656089563356548</guid><pubDate>Tue, 18 Nov 2008 06:13:00 +0000</pubDate><atom:updated>2008-11-17T22:13:09.219-08:00</atom:updated><title>Object Cloning c#.net</title><description>public static object CloneObject(object obj)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (System.IO.MemoryStream memStream = new MemoryStream())&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Runtime.Serialization.Formatters.Binary.BinaryFormatter binaryFormatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(null,&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new System.Runtime.Serialization.StreamingContext(System.Runtime.Serialization.StreamingContextStates.Clone));&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; binaryFormatter.Serialize(memStream, obj);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memStream.Seek(0, SeekOrigin.Begin);&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return binaryFormatter.Deserialize(memStream);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-6720656089563356548?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/11/object-cloning-cnet.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-947336566293665735</guid><pubDate>Mon, 10 Nov 2008 16:15:00 +0000</pubDate><atom:updated>2008-11-10T08:15:28.354-08:00</atom:updated><title>How to deliver multiple dlls and exe as a single file</title><description>&lt;b&gt;Scenario:&lt;/b&gt; You are developing a dotnet appliation, For that you are adding some external dlls ex:Office.dll. Normally we need to build the application and provide the directory containing dlls and exe for the customer. How to deliver all the files as a single pack. Is it possible if so how?&lt;br&gt; &lt;b&gt;Solution:&lt;/b&gt; Download the ilmerge.exe from the below link and install it in your machine.&lt;br&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=22914587-B4AD-4EAE-87CF-B14AE6A939B0&amp;amp;displaylang=en"&gt;&lt;br&gt; http://www.microsoft.com/downloads/details.aspx?FamilyID=22914587-B4AD-4EAE-87CF-B14AE6A939B0&amp;amp;displaylang=en&lt;/a&gt;&lt;br&gt;&lt;br&gt;After Building your application go to the command prompt and give the below syntax.&lt;br&gt;&amp;quot;path&amp;lt;ilmerge.exe&amp;gt;&amp;quot; /out:&amp;quot;($TargetDir)ExpectedApplicationname.exe&amp;quot; &amp;quot;($TargetPath)&amp;quot; *.dll.....&lt;br&gt; &lt;br&gt;example for the arguments:&lt;br&gt;&amp;quot;c:\programfiles\ilmerge\ilmerge.exe&amp;quot; /out:&amp;quot;c:\myApp\SingleFile.EXE&amp;quot; &amp;quot;c:\myApp\bin\debug\myApp.exe&amp;quot; &amp;quot;c:\myApp\bin\debug\office.exe&amp;quot;&lt;br&gt;&lt;br&gt;(OR)&lt;br&gt; &lt;br&gt;You can also provide this command in the postbuild command so the singlefile will created directly when you build the application.&lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-947336566293665735?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/11/how-to-deliver-multiple-dlls-and-exe-as.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-4642956804911062894</guid><pubDate>Fri, 07 Nov 2008 17:44:00 +0000</pubDate><atom:updated>2008-11-07T09:44:03.944-08:00</atom:updated><title>BackgroundWorker Control</title><description>The &lt;span target="T:System.ComponentModel.BackgroundWorker"&gt;&lt;span class="selflink"&gt;BackgroundWorker&lt;/span&gt;&lt;/span&gt; class allows you to run an operation on a separate, dedicated thread.&lt;br&gt;Time-consuming operations like downloads and database transactions can cause your user interface (UI) to seem as though it has stopped responding while they are running( i.e it seems like white faded screen ). In such a case this background worker will helpful so the fading are avoided bcoz it was running under seperate dedicated thread.&lt;br&gt;&lt;br&gt;Three events available in backgroundworker.&lt;br&gt; 1.DoWork: In which we need write the business logic&lt;br&gt;2.Runworkercompleted: This event automatically fired when the bgworker completes its process&lt;br&gt;3.Progresschanged: from which we can get the percentage of completed process.&lt;br&gt; &amp;nbsp;&lt;br&gt;To start the bgworker use the method RunWorkerAsync()&lt;br&gt;&lt;br&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///D:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="Edit-Time-Data" href="file:///D:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_editdata.mso"&gt;&lt;style&gt; &amp;lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:&amp;quot;&amp;quot;; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&amp;quot;Times New Roman&amp;quot;; 	mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&amp;gt; &lt;/style&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;/span&gt;Consider the code snippet below create a win form and select 2 button as named BgworkerButton,NormalButton add a background worker as backgroundWorker1 and test it.&lt;br&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///D:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="Edit-Time-Data" href="file:///D:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_editdata.mso"&gt;&lt;style&gt; &amp;lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:&amp;quot;&amp;quot;; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&amp;quot;Times New Roman&amp;quot;; 	mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&amp;gt; &lt;/style&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string str = string.Empty;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Form1()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void BgworkerButton_Click(object sender, EventArgs e)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; backgroundWorker1.RunWorkerAsync();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 1; i &amp;lt;= 10000; i++)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str = str + &amp;quot; bg&amp;quot; + i.ToString();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(&amp;quot;Completed&amp;quot;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void NormalButton_Click(object sender, EventArgs e)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 1; i &amp;lt;= 10000; i++)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str = str + &amp;quot; &amp;quot; + i.ToString();&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(&amp;quot;Completed&amp;quot;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-4642956804911062894?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/11/backgroundworker-control.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-1493694111694310659</guid><pubDate>Thu, 06 Nov 2008 17:36:00 +0000</pubDate><atom:updated>2008-11-06T09:36:59.330-08:00</atom:updated><title>Compare Generic.List vs Array</title><description>Consider that you r in a situation to use some collection object. What type you will prefer Generic.list or Array&lt;br&gt;&lt;br&gt;Advantage of generic is, it is easy to handle. use the add, remove and new extension methods in .net2008 but which is efficient.&lt;br&gt; &lt;br&gt;&lt;pre&gt;&lt;span class="cpp-keyword"&gt;                     &lt;font size="4"&gt;(i) for&lt;/font&gt;&lt;/span&gt;&lt;font size="4"&gt;( &lt;span class="cpp-keyword"&gt;int&lt;/span&gt; i = &lt;span class="cpp-literal"&gt;&lt;span class="cpp-number"&gt;0&lt;/span&gt;&lt;/span&gt;; i &amp;lt; &lt;span class="cpp-literal"&gt;&lt;span class="cpp-number"&gt;5000000&lt;/span&gt;&lt;/span&gt;; i++ )&lt;br&gt; 			{&lt;br&gt;				&lt;span class="cpp-keyword"&gt;for&lt;/span&gt;( &lt;span class="cpp-keyword"&gt;int&lt;/span&gt; j = &lt;span class="cpp-literal"&gt;&lt;span class="cpp-number"&gt;0&lt;/span&gt;&lt;/span&gt;; j &amp;lt; Array.Length; j++ )&lt;br&gt;				{&lt;br&gt;					Array[j] = j;&lt;br&gt;				}&lt;br&gt; 			}&lt;/font&gt;&lt;br&gt;&lt;br&gt;                     &lt;font size="4"&gt;(ii)&lt;span class="cpp-keyword"&gt;for&lt;/span&gt;( &lt;span class="cpp-keyword"&gt;int&lt;/span&gt; i = &lt;span class="cpp-literal"&gt;&lt;span class="cpp-number"&gt;0&lt;/span&gt;&lt;/span&gt;; i &amp;lt; &lt;span class="cpp-literal"&gt;&lt;span class="cpp-number"&gt;5000000&lt;/span&gt;&lt;/span&gt;; i++ )&lt;br&gt; 			{&lt;br&gt;				&lt;span class="cpp-keyword"&gt;for&lt;/span&gt;( &lt;span class="cpp-keyword"&gt;int&lt;/span&gt; j = &lt;span class="cpp-literal"&gt;&lt;span class="cpp-number"&gt;0&lt;/span&gt;&lt;/span&gt;; j &amp;lt; List.Count; j++ )&lt;br&gt;				{&lt;br&gt;					List[j] = j;&lt;br&gt;				}&lt;br&gt; 			}&lt;/font&gt;&lt;br&gt;&lt;/pre&gt;&lt;br&gt;the time for the execution is The results where 2620 for the Array and 13200 for the List in terms of nanoseconds.&lt;br&gt;The reasons are&lt;br&gt;1. it has to do with the memory not necessarily being contiguous, and so the lookup is slightly more complex&lt;br&gt; 2. List generic version is actually making function calls in the generated code this will understand if u saw the IL code for the above two cases but not in case of array.&lt;br&gt;3.  The   List&amp;lt;T&amp;gt; class uses an array internally, and will do effectively the same   operation as Array.Resize().  The only real difference between the two is   that List&amp;lt;T&amp;gt; always doubles the size of the storage, so that you need to   resize fewer and fewer times as the data gets larger.  Of course, you   could always use that strategy when using Array.Resize() as well, &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-1493694111694310659?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/11/compare-genericlist-vs-array.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-6878326267524806880</guid><pubDate>Thu, 30 Oct 2008 08:23:00 +0000</pubDate><atom:updated>2008-10-30T01:23:10.334-07:00</atom:updated><title>preserving Array elements using c#.net</title><description>Consider the two arrays:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; string[] str = new string[1];&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str[0] = &amp;quot;str&amp;quot;;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string[] str1 = new string[2];&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str1[0] = &amp;quot;str1&amp;quot;;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str1[1] = &amp;quot;str2&amp;quot;;&lt;br&gt; &lt;br&gt;To append an two arraycollections:&lt;br&gt;str = str.Concat(str1).ToArray(); //the&amp;nbsp; result was stored in the str array. this will work only in .net 2008&lt;br&gt;&lt;br&gt;To add new element in the array:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Array.Resize(ref str, newSize);&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str[newSize-1] = &amp;quot;newvalue&amp;quot;;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-6878326267524806880?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/10/preserving-array-elements-using-cnet.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-3549948768600683799</guid><pubDate>Fri, 24 Oct 2008 09:41:00 +0000</pubDate><atom:updated>2008-10-24T02:41:18.861-07:00</atom:updated><title>Convert string to datatime format</title><description>1. &lt;br&gt;&lt;pre class="prettyprint"&gt;&lt;code&gt;&lt;font size="4"&gt;&lt;span class="kwd"&gt;string&lt;/span&gt;&lt;span class="pln"&gt; str &lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="str"&gt;&amp;quot;24/10/2008&amp;quot;&lt;/span&gt;&lt;span class="pun"&gt;;&lt;/span&gt;&lt;span class="pln"&gt;&lt;br&gt; &lt;/span&gt;&lt;span class="typ"&gt;DateTime&lt;/span&gt;&lt;span class="pln"&gt; dt &lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="typ"&gt;DateTime&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;ParseExact&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt;str&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="str"&gt;&amp;quot;dd/MM/yyyy&amp;quot;&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; &lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="typ"&gt;Thread&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;CurrentThread&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;CurrentCulture&lt;/span&gt;&lt;span class="pun"&gt;);&lt;/span&gt;&lt;/font&gt;&lt;span class="pln"&gt;&lt;br&gt; &lt;br&gt;2. &lt;/span&gt;&lt;/code&gt;&lt;br&gt;&lt;code&gt;&lt;span class="typ"&gt;DateTime&lt;/span&gt;&lt;span class="pln"&gt; date &lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="typ"&gt;System&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;DateTime&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;ParseExact&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt;str&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="str"&gt;&amp;quot;dd/MM/yyyy&amp;quot;&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="kwd"&gt;null&lt;/span&gt;&lt;span class="pun"&gt;);&lt;br&gt; &lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class="typ"&gt;DateTime&lt;/span&gt;&lt;span class="pln"&gt; date &lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="typ"&gt;System&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;DateTime&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;ParseExact&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt;str&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="str"&gt;&amp;quot;HH:mm:ss&amp;quot;&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="kwd"&gt;null&lt;/span&gt;&lt;span class="pun"&gt;);&lt;/span&gt;&lt;span class="pln"&gt;&lt;br&gt; &lt;/span&gt;&lt;/code&gt;&lt;br&gt;&lt;/pre&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-3549948768600683799?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/10/convert-string-to-datatime-format.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-5072969138606175063</guid><pubDate>Thu, 23 Oct 2008 18:33:00 +0000</pubDate><atom:updated>2008-10-23T11:33:56.499-07:00</atom:updated><title>Effect of Double in .net</title><description>Did u feel its a best way to use double in your application.&lt;br&gt;&lt;br&gt;Test the following scenario:&lt;br&gt;double a=0.3;&lt;br&gt;double b=0.1+0.1+0.1;(or)0.2+0.1;&lt;br&gt;if(a==b)&lt;br&gt;&amp;nbsp; MessageBox.Show(r u great?);&lt;br&gt;else&lt;br&gt;&amp;nbsp; MessageBox.Show(u r great!);&lt;br&gt; &lt;br&gt;if u put float u wont get the&amp;nbsp; same output.&lt;br&gt;&lt;br&gt;&lt;br&gt;There is not only problem in using this format. but there are lot of issues and doubt&amp;nbsp; while using double datatype. So consider twice before using double in your application&lt;br&gt; Solution: We cant say it as an error. in Java also the same thing will happen. its some double precision format.&lt;br&gt;Better using decimal is a good solution.&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-5072969138606175063?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/10/effect-of-double-in-net.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-6776235842308125669</guid><pubDate>Thu, 23 Oct 2008 18:21:00 +0000</pubDate><atom:updated>2008-10-23T11:21:13.353-07:00</atom:updated><title>Linq for XML .net 2008</title><description>Language integrated query for xml&lt;br&gt;Its very similar to .net 2005 xml processing. the feature added here in .net 2008 is linq. &lt;br&gt;We can query into the xml elements directly like sql queries. &lt;br&gt;Also we do the same task with easy and less line of codes(loc) using linq. We can also write events for nodes so any triger on the node are watchable.&amp;nbsp; &lt;br&gt; &lt;br&gt;&lt;br&gt;For more and through ref search : &lt;a href="http://msdn.microsoft.com/en-us/library/bb308960.aspx"&gt;http://msdn.microsoft.com/en-us/library/bb308960.aspx&lt;br&gt;&lt;/a&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-6776235842308125669?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/10/linq-for-xml-net-2008.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-6671593889495332859</guid><pubDate>Mon, 06 Oct 2008 17:31:00 +0000</pubDate><atom:updated>2008-10-22T09:34:11.442-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>System.Windows.Forms.Timer vs. System.Threading.Timer vs. System.Timers.Timer</title><description>&lt;div dir="ltr"&gt;&lt;span style="font-size: 16pt;"&gt;&lt;/span&gt;&lt;br&gt; &lt;p&gt;&lt;br&gt;&lt;/p&gt; &lt;p&gt; &lt;table border="1"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;b&gt;Feature description&lt;/b&gt;&lt;/td&gt; &lt;td&gt;&lt;b&gt;System.Timers.Timer&lt;/b&gt;&lt;/td&gt; &lt;td&gt;&lt;b&gt;System.&lt;span class="searchword"&gt;Threading.Timer&lt;/span&gt;&lt;/b&gt;&lt;/td&gt; &lt;td style="width: 206px;"&gt;&lt;b&gt;System.Windows.&lt;span class="searchword"&gt;Forms.Timer&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;font size="2"&gt;Support for adding and removing listeners after the timer is instantiated.&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;No&lt;/font&gt;&lt;/td&gt; &lt;td style="width: 206px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td style="height: 21px;"&gt;&lt;font size="2"&gt;Supports&amp;nbsp;call backs on the user-interface thread&lt;/font&gt;&lt;/td&gt; &lt;td style="height: 21px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td style="height: 21px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;No&lt;/font&gt;&lt;/td&gt; &lt;td style="width: 206px; height: 21px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;font size="2"&gt;Calls back from threads obtained from the thread pool&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td style="width: 206px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;No&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;font size="2"&gt;Supports drag-and-drop in the Windows Forms Designer&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;No&lt;/font&gt;&lt;/td&gt; &lt;td style="width: 206px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;font size="2"&gt;Suitable for running in a server multi-threaded environment&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td style="width: 206px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;No&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;font size="2"&gt;Includes support for passing arbitrary state from the timer initialization to the callback.&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;No&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td style="width: 206px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;No&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;font size="2"&gt;Implements &lt;font face="Courier New"&gt;IDisposable&lt;/font&gt;&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td style="width: 206px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;font size="2"&gt;Supports one-off callbacks as well as periodic repeating callbacks&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td style="width: 206px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;font size="2"&gt;Accessible across application domain boundaries&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td style="width: 206px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td style="height: 40px;"&gt;&lt;font size="2"&gt;Supports &lt;font face="Courier New"&gt;IComponent&lt;/font&gt; – hostable in an &lt;font face="Courier New"&gt;IContainer&lt;/font&gt;&lt;/font&gt;&lt;/td&gt; &lt;td style="height: 40px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt; &lt;td style="height: 40px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;No&lt;/font&gt;&lt;/td&gt; &lt;td style="width: 206px; height: 40px;" valign="center" align="middle"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt; &lt;p&gt;Using the &lt;font face="Courier New"&gt;System.Windows.&lt;span class="searchword"&gt;Forms.Timer&lt;/span&gt;&lt;/font&gt; is a relatively obvious choice for user interface programming.&amp;nbsp; Choosing between the other two options is less obvious and generally the choice between the two is insignificant.&amp;nbsp; If hosting within an &lt;font face="Courier New"&gt;IContainer&lt;/font&gt; is necessary then obviously &lt;font face="Courier New"&gt;System.Timers.Timer&lt;/font&gt; is the right choice.&amp;nbsp; However, if no specific &lt;font face="Courier New"&gt;System.Timers.Timer&lt;/font&gt; feature is required, then I suggest choosing &lt;font face="Courier New"&gt;System.&lt;span class="searchword"&gt;Threading.Timer&lt;/span&gt;&lt;/font&gt; by default, simply because it is a slightly lighter weight implementation.&lt;/p&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-6671593889495332859?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/10/systemwindowsformstimer-vs.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-5498161144551797866</guid><pubDate>Fri, 26 Sep 2008 12:05:00 +0000</pubDate><atom:updated>2008-09-29T11:21:39.776-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>index -1 does not have a value in datagridview</title><description>&lt;div dir="ltr"&gt;Error message: index -1 does not have a value in datagridview&lt;br&gt;&lt;br&gt;scenario: The grid was bound to a simple object collection.&amp;nbsp; The object contained&lt;br&gt;string and decimal properties, nothing to fancy.&amp;nbsp; When an item was added to&lt;br&gt; the collection I would databind as follows (this happened on each item&lt;br&gt;&amp;quot;Add&amp;quot;):&lt;br&gt;&lt;br&gt;If I added an item after I deleted all the items in&lt;br&gt;the grid (collection) and try to select it the grid would bomb out with the&lt;br&gt; following error: &amp;quot;Index -1 does not have a value&amp;quot;.&lt;br&gt;&lt;br&gt;myObject.CollectionProperty.Add(myBasicObject);&lt;br&gt;&lt;br&gt;dgvGrid.DataSource = myObject.CollectionProperty;&lt;br&gt;&lt;br&gt;This will cause the above error&lt;br&gt;&lt;br&gt;solution:&lt;br&gt; set the simple object collection in to a binding source and set the resetbinding to false like below&lt;br&gt;Againg assign the binding source to the grid&lt;br&gt;bsBindingSource.ResetBindings(false);&lt;br&gt;bsBindingSource.DataSource = myObject.CollectionProperty;&lt;br&gt; dgvGrid.DataSource =&amp;nbsp; bsBindingSource;&lt;br&gt;&lt;br&gt;to the Add routine, just after the object is added to the collection.&lt;br&gt;Viola!&amp;nbsp; Problem was fixed, and I no longer needed to bind the grid twice.&amp;nbsp; I&lt;br&gt;was able to make the binding work now with just this:&lt;br&gt; &lt;br&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-5498161144551797866?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/09/index-1-does-not-have-value-in.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-8764243510809260313</guid><pubDate>Thu, 25 Sep 2008 08:57:00 +0000</pubDate><atom:updated>2008-09-29T11:21:53.649-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Commercial</category><title>Chanakya's Quotes - Worth reading a million times...</title><description>&lt;div dir="ltr"&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;font size="6" face="Times New Roman"&gt;&lt;span style="font-size: 24pt;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style="text-align: center;" align="center"&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;br&gt;&lt;br&gt;&lt;img id="Picture_x005f_x0020_4" alt="image00136.jpg" src="cid:BC898F77E36B47D48908731600193DE2@system6" width="200" height="200"&gt;&lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; ***************************************************&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; &amp;quot;A  person should not be too honest.&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt; &lt;b&gt;&lt;span style="font-weight: bold;"&gt;&lt;br&gt;Straight trees are cut  first&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;and  Honest people are victimised first.&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;  &lt;/span&gt;&lt;/font&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya quotes (Indian  politician, strategist and writer, 350 BC 75 BC) &lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; ***************************************************  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;&amp;quot;Even  if a snake is not poisonous,&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; it  should pretend to be venomous.&amp;quot; &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya  quotes (Indian politician, strategist and writer, 350 BC-275  BC)&lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;***************************************************  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;&amp;quot;The  biggest guru-mantra is: Never share your secrets with anybody. ! It will destroy  you.&amp;quot; &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya quotes (Indian  politician, strategist and writer, 350 BC-275 BC) &lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; ***************************************************  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;&amp;quot;There  is some self-interest behind every friendship. &lt;br&gt;There is no Friendship  without self-interests. &lt;br&gt;This is a bitter truth.&amp;quot; &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya quotes (Indian  politician, strategist and writer, 350 BC-275 BC) &lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &lt;b&gt;&lt;span style="font-weight: bold;"&gt;&lt;br&gt;***************************************************  &lt;/span&gt;&lt;/b&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;&amp;quot;Before  you start some work, always ask yourself three questions - Why am I doing it,  What the results might be and Will I be successful. Only when you think deeply  &lt;br&gt;and find satisfactory answers to these questions, go ahead.&amp;quot;  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya quotes (Indian  politician, strategist and writer, 350 BC-275 BC) &lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; ***************************************************  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;&amp;quot;As  soon as the fear approaches near, attack and destroy it.&amp;quot;  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya quotes (Indian  politician, strategist and writer, 350 BC-275 BC)&lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; ***************************************************  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;&amp;quot;Once  you start a working on something,&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; don&amp;#39;t  be afraid of failure and &lt;br&gt;don&amp;#39;t abandon it.&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; People  who work sincerely are the happiest.&amp;quot; &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya  quotes (Indian politician, strategist and writer, 350  BC-275BC)&lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;***************************************************  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;&amp;quot;The  fragrance of flowers spreads&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; only  in the direction of the wind. &lt;br&gt;But the goodness of a person spreads in all  direction.&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;  &lt;/span&gt;&lt;/font&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya quotes (Indian  politician, strategist and writer, 350 BC-275BC) &lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; ***************************************************  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;&amp;quot;A  man is great by deeds, not by birth.&amp;quot; &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya  quotes (Indian politician, strategist and writer, 350  BC-275BC)&lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;***************************************************  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;&amp;quot;Treat  your kid like a darling for the first five years.&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; For  the next five years, scold them. &lt;br&gt;By the time they turn sixteen, treat them  like a friend.&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Your  grown up children are your best friends.&amp;quot; &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya quotes (Indian  politician, strategist and writer, 350 BC-275BC) &lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; ***************************************************  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;&amp;quot;Books  are as useful to a stupid person&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt; as a  mirror is useful to a blind person.&amp;quot; &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya  quotes (Indian politician, strategist and writer, 350  BC-275BC)&lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt; &amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;***************************************************  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;&amp;quot;Education  is the best friend.&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;  &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font size="5" face="Courier New"&gt;&lt;span style="font-weight: bold; font-size: 18pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;An  educated person is respected everywhere. &lt;br&gt;Education beats the beauty and the  youth.&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt;"&gt;  &lt;/span&gt;&lt;/font&gt;&lt;font size="2" face="Courier New"&gt;&lt;span style="font-size: 10pt; font-family: &amp;#39;Courier New&amp;#39;;"&gt;&lt;br&gt;Chanakya quotes (Indian  politician, strategist and writer, 350 BC-275BC) &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-8764243510809260313?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/09/chanakyas-quotes-worth-reading-million.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-46824331109939965</guid><pubDate>Wed, 24 Sep 2008 11:40:00 +0000</pubDate><atom:updated>2008-09-29T11:22:05.299-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>Keyboard Shortcuts for .Net Programming</title><description>&lt;div dir="ltr"&gt;&lt;strong&gt;File&lt;/strong&gt;&lt;br&gt;1. New Project &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Shift+N )&lt;br&gt;&lt;/span&gt;2. Open Project/Solution &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Shift+O)&lt;br&gt;&lt;/span&gt;3. Open File &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+O)&lt;/span&gt;&lt;br&gt; 4. Save &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+S)&lt;br&gt;&lt;/span&gt;5. Save As &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Shift+S)&lt;br&gt;&lt;/span&gt;6. Print &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+P)&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;br&gt; 7. Undo &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Z)&lt;br&gt;&lt;/span&gt;8. Redo &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Y)&lt;br&gt;&lt;/span&gt;&lt;br&gt;9. Cut &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+X)&lt;br&gt;&lt;/span&gt;10. Copy&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+C)&lt;/span&gt;&lt;br&gt; 11. Paste &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+V)&lt;br&gt;&lt;/span&gt;12. Cycle Clipboard Ring &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Shift+V)&lt;/span&gt;&lt;br&gt;13. Select All &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+A)&lt;/span&gt;&lt;br&gt; 14. Quick Find &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+F)&lt;br&gt;&lt;/span&gt;&lt;br&gt;15. Quick Replace &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+H)&lt;br&gt;&lt;/span&gt;16. Find in Files &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Shift+F)&lt;br&gt; &lt;/span&gt;17. Replace in Files &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Shift+H)&lt;br&gt;&lt;/span&gt;18. Find Symbol &lt;span style="color: rgb(255, 0, 0);"&gt;(Alt+F12)&lt;br&gt;&lt;/span&gt;&lt;br&gt;19. Format Document &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+E,D)&lt;br&gt; &lt;/span&gt;20. Format Selection &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+E,F)&lt;br&gt;&lt;/span&gt;21. Make Uppercase &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Shift+U)&lt;br&gt;&lt;/span&gt;22. Make Lowercase &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+U)&lt;br&gt; &lt;/span&gt;23. Delete Horizontal White Space &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+E, \)&lt;br&gt;&lt;/span&gt;24. View White Space &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+E,S)&lt;br&gt;&lt;/span&gt;25. Word Wrap &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+E,W)&lt;br&gt; &lt;/span&gt;26. Incremental Search &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+I)&lt;br&gt;&lt;/span&gt;27. Comment Selection &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+K,C)&lt;br&gt;&lt;/span&gt;28. Uncomment Selection &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+K,U)&lt;br&gt; &lt;/span&gt;&lt;br&gt;29. Toggle Bookmark &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+K,K)&lt;br&gt;&lt;/span&gt;30. Enable Bookmark &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+B,E)&lt;br&gt;&lt;/span&gt;31. Previous Bookmark &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+K,P)&lt;br&gt; &lt;/span&gt;32. Next Bookmark &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+K, N)&lt;br&gt;&lt;/span&gt;33. Clear Bookmarks &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+K,K)&lt;br&gt;&lt;/span&gt;34. Add Task List Shortcut&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+E,T)&lt;br&gt; &lt;/span&gt;&lt;br&gt;35. Hide Selection &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+M, Ctrl+H)&lt;br&gt;&lt;/span&gt;36. Toggle Outlining Expansion &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+M,M)&lt;br&gt;&lt;/span&gt;37. Toggle All Outlining &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+M,L)&lt;br&gt; &lt;/span&gt;38. Stop Outlining &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+M,P)&lt;/span&gt;&lt;br&gt;39. Stop Hiding Current &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+M, Ctrl+U)&lt;br&gt;&lt;/span&gt;&lt;br&gt;40. Generate Method Stub &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+K,M)&lt;br&gt; &lt;/span&gt;41. List Members &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+K,L)&lt;br&gt;&lt;/span&gt;42. Parameter Info&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+K,P)&lt;br&gt;&lt;/span&gt;43. Complete Word &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+K,W)&lt;br&gt; &lt;/span&gt;44. Insert Snippet &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+K,X)&lt;br&gt;&lt;/span&gt;45. Surround With &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+K,S)&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;strong&gt;View&lt;br&gt;&lt;/strong&gt;46. Code &lt;span style="color: rgb(255, 0, 0);"&gt;(F7)&lt;br&gt; &lt;/span&gt;47. Designer &lt;span style="color: rgb(255, 0, 0);"&gt;(Shift+F7)&lt;br&gt;&lt;/span&gt;48. Server Explorer&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+W,L)&lt;br&gt;&lt;/span&gt;49. Class View &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+W,C)&lt;/span&gt;&lt;br&gt; 50. Code Definition Window &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+W,D)&lt;br&gt;&lt;/span&gt;51. Object Browser&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+W,J)&lt;br&gt;&lt;/span&gt;52. Error List&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+W,E)&lt;br&gt; &lt;/span&gt;53. Output &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+W,O)&lt;br&gt;&lt;/span&gt;54. Properties Window &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+W,P)&lt;br&gt;&lt;/span&gt;55. Task List&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+W,T)&lt;br&gt; &lt;/span&gt;56. Toolbox &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+W,X)&lt;br&gt;&lt;/span&gt;&lt;br&gt;57. Find Symbol Results&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+W,Q)&lt;br&gt;&lt;/span&gt;58. Bookmark Window &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+W,B)&lt;/span&gt;&lt;br&gt; 59. Command Window &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+W,A)&lt;/span&gt;&lt;br&gt;60. Document Outline&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+W,U)&lt;br&gt;&lt;/span&gt;61. Resource View &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+W,R)&lt;br&gt; &lt;/span&gt;62. Macro Explorer &lt;span style="color: rgb(255, 0, 0);"&gt;(Alt+F8)&lt;br&gt;&lt;/span&gt;63. Web Browser &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+W,W)&lt;br&gt;&lt;/span&gt;&lt;br&gt;64. Full Screen&lt;span style="color: rgb(255, 0, 0);"&gt; (Shift+Alt+Enter)&lt;br&gt; &lt;/span&gt;65. Pending Checkins &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+W,G)&lt;/span&gt;&lt;br&gt;66. Navigate Backward &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+-)&lt;br&gt;&lt;/span&gt;67. Navigate Forward &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Shift+-)&lt;br&gt; &lt;/span&gt;68. Property Pages &lt;span style="color: rgb(255, 0, 0);"&gt;(Shift+F4)&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;strong&gt;Refactor&lt;/strong&gt;&lt;br&gt;69. Rename&lt;span style="color: rgb(255, 0, 0);"&gt; (F2)&lt;br&gt;&lt;/span&gt;70. Extract Method &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+R,M)&lt;br&gt; &lt;/span&gt;71. Encapsulate Field &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+R,E)&lt;br&gt;&lt;/span&gt;72. Promote Local Variable to Parameter &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+R,P)&lt;br&gt;&lt;/span&gt;73. Remove Parameters &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+R,V)&lt;br&gt; &lt;/span&gt;74. Reorder parameters&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+R,O)&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;strong&gt;Website&lt;br&gt;&lt;/strong&gt;75. Add New Item&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+Shift+A)&lt;br&gt;&lt;/span&gt;76. Add Existing Item &lt;span style="color: rgb(255, 0, 0);"&gt;(Shift+Alt+A)&lt;br&gt; &lt;/span&gt;&lt;br&gt;&lt;strong&gt;Build&lt;/strong&gt;&lt;br&gt;77. Build Solution &lt;span style="color: rgb(255, 0, 0);"&gt;(F6)&lt;br&gt;&lt;/span&gt;78. Build Web Site &lt;span style="color: rgb(255, 0, 0);"&gt;(Shift+F6)&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;strong&gt;Debug&lt;/strong&gt;&lt;br&gt;79. Breakpoints&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+D,B)&lt;br&gt; &lt;/span&gt;80. Immediate &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+D,I)&lt;br&gt;&lt;/span&gt;&lt;br&gt;81. Start Debugging &lt;span style="color: rgb(255, 0, 0);"&gt;(F5)&lt;br&gt;&lt;/span&gt;82. Start without Debugging &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+F5)&lt;br&gt; &lt;/span&gt;83. Exceptions &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+D,E)&lt;/span&gt;&lt;br&gt;84. Step Into &lt;span style="color: rgb(255, 0, 0);"&gt;(F11)&lt;br&gt;&lt;/span&gt;85. Step Over &lt;span style="color: rgb(255, 0, 0);"&gt;(F10)&lt;br&gt;&lt;/span&gt;86. Break at Function &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+D,N)&lt;br&gt; &lt;/span&gt;87. Delete All Breakpoints &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Shift+F9)&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;strong&gt;Tools&lt;/strong&gt;&lt;br&gt;88. Attach to Process &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Alt+P)&lt;br&gt;&lt;/span&gt;89. Code Snippets Manager&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+K, Ctrl+B)&lt;br&gt; &lt;/span&gt;&lt;br&gt;90. Run TemporaryMacro &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+Shift+P)&lt;br&gt;&lt;/span&gt;91. Record TemporaryMacro&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+Shift+R)&lt;br&gt;&lt;/span&gt;&lt;br&gt;92. Macro Explorer &lt;span style="color: rgb(255, 0, 0);"&gt;(Alt+F8)&lt;br&gt; &lt;/span&gt;93. Macros IDE &lt;span style="color: rgb(255, 0, 0);"&gt;(Alt+F11)&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;strong&gt;Help&lt;/strong&gt;&lt;br&gt;94. How Do I &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+F1,H)&lt;br&gt;&lt;/span&gt;95. Search&lt;span style="color: rgb(255, 0, 0);"&gt; (Ctrl+F1,S)&lt;br&gt; &lt;/span&gt;96. Contents &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+F1,C)&lt;br&gt;&lt;/span&gt;97. Index &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+F1,I)&lt;br&gt;&lt;/span&gt;98. Help Favourites &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+F1,F)&lt;br&gt;&lt;/span&gt;99. Dynamic Help &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+F1,D)&lt;br&gt; &lt;/span&gt;100. Index Results &lt;span style="color: rgb(255, 0, 0);"&gt;(Ctrl+F1,T) &lt;/span&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-46824331109939965?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/09/keyboard-shortcuts-for-net-programming.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-9115944614913547196</guid><pubDate>Mon, 15 Sep 2008 12:21:00 +0000</pubDate><atom:updated>2008-09-29T11:22:05.299-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>.net 2008 features</title><description>&lt;div dir="ltr"&gt;&lt;p&gt; &lt;strong&gt;1. LINQ Support&lt;/strong&gt;   &lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;a title="Introduction to LINQ" href="http://dotnetslackers.com/articles/csharp/IntroducingLINQ1.aspx" target="_blank" rel="Introduction to LINQ"&gt;LINQ&lt;/a&gt;&lt;/code&gt; essentially is the composition of many standard query operators that allow you to work with data in a more intuitive way regardless. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.google.com/duttavr/R0TMnp8D4CI/AAAAAAAAAZQ/2qS6OPbHgnQ/LINQ%5B6%5D" target="_blank"&gt;&lt;img style="border-width: 0px;" alt="LINQ" src="http://lh3.google.com/duttavr/R0TMp58D4DI/AAAAAAAAAZY/2AHbn0FC1RE/LINQ_thumb%5B4%5D" border="0" width="343" height="219"&gt;&lt;/a&gt; &lt;/p&gt;   &lt;p&gt;The benefits of using &lt;code&gt;&lt;a title="Introduction to LINQ" href="http://dotnetslackers.com/articles/csharp/IntroducingLINQ1.aspx" target="_blank" rel="Introduction to LINQ"&gt;LINQ&lt;/a&gt;&lt;/code&gt; are significant – Compile time checking &lt;code&gt;C#&lt;/code&gt; language queries, and the ability to debug step by step through queries.&lt;/p&gt;   &lt;p&gt;&lt;strong&gt;2. Expression Blend Support&lt;/strong&gt;&lt;/p&gt; &lt;span class="fullpost"&gt;   &lt;p&gt;Expression blend is &lt;a title="XAML Overview" href="http://en.wikipedia.org/wiki/XAML" target="_blank" rel="XAML Overview"&gt;XAML&lt;/a&gt; generator tool for silverlight applications. You can install &lt;a title="Expression blend" href="http://www.microsoft.com/expression/products/overview.aspx?key=blend" target="_blank" rel="Expression blend"&gt;Expression blend&lt;/a&gt; as an embedded plug-in to Visual Studio 2008. By this you can get extensive web designer and JavaScript tool.&lt;/p&gt;     &lt;p&gt;&lt;strong&gt;3. Windows Presentation Foundation&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;WPF provides you an extensive graphic functionality you never seen these before. Visual Studio 2008 contains plenty of WPF &lt;a title="Windows Presentation Foundation Library" href="http://en.wikipedia.org/wiki/Windows_Presentation_Foundation" target="_blank" rel="Windows Presentation Foundation Library"&gt;Windows Presentation Foundation Library&lt;/a&gt; templates. By this a visual developer who is new to .NET, C# and &lt;a href="http://VB.NET"&gt;VB.NET&lt;/a&gt; can easily develop the 2D and 3D graphic applications.&lt;/p&gt;     &lt;p&gt;Visual Studio 2008 provides free &lt;a title="game development library" href="http://www.microsoft.com/express/samples/GameCreators/" target="_blank" rel="game development library"&gt;game development library&lt;/a&gt; kits for games developers. currently this game development kits are available for C++ and also 2D/3D &lt;a title="Dark Matter" href="http://en.wikipedia.org/wiki/Dark_matter" target="_blank" rel="Dark Matter"&gt;Dark Matter&lt;/a&gt; one image and sounds sets.&lt;/p&gt;     &lt;p&gt;&lt;strong&gt;4. &lt;strong&gt;VS 2008 Multi-Targeting Support&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;Earlier you were not able to working with .NET 1.1 applications directly in visual studio 2005. Now in Visual studio 2008 you are able to create, run, debug the &lt;a title=".NET 2.0" href="http://www.google.co.in/url?sa=t&amp;amp;ct=res&amp;amp;cd=3&amp;amp;url=http%3A%2F%2Fmsdn.microsoft.com%2Fnetframework%2F&amp;amp;ei=vpxER83XFZrOswL3p6HLDQ&amp;amp;usg=AFQjCNHyM1-motNTSr9hPQJHnObteVUaQg&amp;amp;sig2=UKjAzmVN7cXnA0dsKsR4nw" target="_blank" rel=".NET 2.0"&gt;.NET 2.0&lt;/a&gt;, &lt;a title=".NET 3.0" href="http://www.google.co.in/url?sa=t&amp;amp;ct=res&amp;amp;cd=3&amp;amp;url=http%3A%2F%2Fmsdn.microsoft.com%2Fnetframework%2F&amp;amp;ei=vpxER83XFZrOswL3p6HLDQ&amp;amp;usg=AFQjCNHyM1-motNTSr9hPQJHnObteVUaQg&amp;amp;sig2=UKjAzmVN7cXnA0dsKsR4nw" target="_blank" rel=".NET 3.0"&gt;.NET 3.0&lt;/a&gt; and &lt;a title=".NET 3.5" href="http://www.google.co.in/url?sa=t&amp;amp;ct=res&amp;amp;cd=3&amp;amp;url=http%3A%2F%2Fmsdn.microsoft.com%2Fnetframework%2F&amp;amp;ei=vpxER83XFZrOswL3p6HLDQ&amp;amp;usg=AFQjCNHyM1-motNTSr9hPQJHnObteVUaQg&amp;amp;sig2=UKjAzmVN7cXnA0dsKsR4nw" target="_blank" rel=".NET 3.5"&gt;.NET 3.5&lt;/a&gt; applications. You can also deploy .NET 2.0 applications in the machines which contains only .NET 2.0 not .NET 3.x.&lt;/p&gt;     &lt;p&gt;&lt;strong&gt;5. AJAX support for &lt;a href="http://ASP.NET"&gt;ASP.NET&lt;/a&gt; &lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://lh6.google.com/duttavr/R0TMrp8D4EI/AAAAAAAAAZg/7qQtO8kismw/AJAX%5B2%5D" target="_blank"&gt;&lt;img style="border-width: 0px;" alt="AJAX" src="http://lh5.google.com/duttavr/R0TMtZ8D4FI/AAAAAAAAAZo/CSZnmwaDTV4/AJAX_thumb" border="0" width="244" height="226"&gt;&lt;/a&gt;&lt;/p&gt;     &lt;p&gt;Previously developer has to install AJAX control library separately that does not come from VS, but now if you install Visual Studio 2008, you can built-in AJAX control library. This Ajax Library contains plenty of rich AJAX controls like Menu, TreeView, webparts and also these components support &lt;a title="JSON" href="http://json.org/" target="_blank" rel="JSON"&gt;JSON&lt;/a&gt; and VS 2008 contains in built &lt;a href="http://ASP.NET"&gt;ASP.NET&lt;/a&gt; AJAX Control Extenders.&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;6. JavaScript Debugging Support&lt;/strong&gt;&lt;/p&gt;     &lt;p&gt;Since starting of web development all the developers got frustration with solving javascript errors. Debugging the error in javascript is very difficult. Now Visual Studio 2008 makes it is simpler with javascript debugging. You can set break points and run the javaScript step by step and you can watch the local variables when you were debugging the javascript and solution explorer provides javascript document navigation support.&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;7. Nested Master Page Support&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;Already Visual Studio 2005 supports nested master pages concept with .NET 2.0, but the problem with this Visual Studio 2005 that pages based on nested masters can&amp;#39;t be edited using &lt;a title="WYSIWYG" href="http://en.wikipedia.org/wiki/WYSIWYG" target="_blank" rel="WYSIWYG"&gt;WYSIWYG&lt;/a&gt; web designer. But now in VS 2008 you can even edit the nested master pages.&lt;/p&gt;    &lt;p&gt; &lt;strong&gt;8. &lt;strong&gt;LINQ Intellisense &lt;/strong&gt;and Javascript Intellisense support for silverlight applications&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://lh6.google.com/duttavr/R0TMvp8D4GI/AAAAAAAAAZw/cEOu181yfzQ/javascriptintellisense%5B3%5D" target="_blank"&gt;&lt;img style="border-width: 0px;" alt="javascriptintellisense" src="http://lh4.google.com/duttavr/R0TMyJ8D4HI/AAAAAAAAAZ4/mMtjR754nk0/javascriptintellisense_thumb%5B1%5D" border="0" width="334" height="217"&gt;&lt;/a&gt;&lt;/p&gt;     &lt;p&gt;Most happy part for .NET developers is Visual Studio 2008 contains intellisense support for javascript. Javascript Intellisense makes developers life easy when writing client side validation, AJAX applications and also when writing &lt;a title="Silverlight" href="http://silverlighttutorials.blogspot.com/" target="_blank" rel="Silverlight"&gt;Silverlight&lt;/a&gt; applications&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;Intellisense Support: &lt;/strong&gt;When we are writing the LINQ Query VS provides LINQ query syntax as tool tips.&lt;/p&gt;     &lt;p&gt;&lt;strong&gt;9. Organize Imports or Usings: &lt;/strong&gt;We have Organize Imports feature already in &lt;a title="Eclipse" href="http://www.eclipse.org/" target="_blank" rel="Eclipse"&gt;Eclipse&lt;/a&gt;. SInce many days I have been waiting for this feature even in VS. Now VS contains Organize Imports feature which removes unnecessary namespaces which you have imported. You can select all the namespaces and right click on it, then you can get context menu with Organize imports options like &amp;quot;Remove Unused Usings&amp;quot;, &amp;quot;Sort Usings&amp;quot;, &amp;quot;Remove and Sort&amp;quot;. Refactoring support for new .NET 3.x features like Anonymous types, Extension Methods, Lambda Expressions.&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;10. Intellisense Filtering: &lt;/strong&gt;Earlier in VS 2005 when we were typing with intellisense box all the items were being displayed. For example If we type the letter &amp;#39;K&amp;#39; then intellisense takes you to the items starts with &amp;#39;K&amp;#39; but also all other items will be presented in intellisense box. Now in VS 2008 if you press &amp;#39;K&amp;#39; only the items starts with &amp;#39;K&amp;#39; will be filtered and displayed.&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;11. Intellisense Box display position&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://lh6.google.com/duttavr/R0TM0p8D4II/AAAAAAAAAaA/JknKg6bHd_Y/javascriptintellisense%5B6%5D" target="_blank"&gt;&lt;img style="border-width: 0px;" alt="javascriptintellisense" src="http://lh5.google.com/duttavr/R0TM2Z8D4JI/AAAAAAAAAaI/xm6CO5WV7x8/javascriptintellisense_thumb%5B2%5D" border="0" width="244" height="159"&gt;&lt;/a&gt;&lt;/p&gt;     &lt;p&gt;Earlier in some cases when you were typing the an object name and pressing . (period) then intellisense was being displayed in the position of the object which you have typed. Here the code which we type will go back to the dropdown, in this case sometimes programmer may disturb to what he was typing. Now in VS 2008 If you hold the Ctrl key while the intellisense is dropping down then intellisense box will become semi-transparent mode.&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;12. Visual Studio 2008 Split View&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://lh5.google.com/duttavr/R0TM4Z8D4KI/AAAAAAAAAaQ/4LIzIojeIxw/spit%5B5%5D"&gt;&lt;img style="border-width: 0px;" alt="spit" src="http://lh4.google.com/duttavr/R0TM6J8D4LI/AAAAAAAAAaY/W4qV9YmZCbs/spit_thumb%5B1%5D" border="0" width="244" height="196"&gt;&lt;/a&gt;&lt;/p&gt;     &lt;p&gt;VS 205 has a feature show both design and source code in single window. but both the windows tiles horizontally. In VS 2008 we can configure this split view feature to vertically, this allows developers to use maximum screen on laptops and wide-screen monitors.&lt;/p&gt;    &lt;p&gt;Here one of the good feature is if you select any HTML or ASP markup text in source window automatically corresponding item will be selected in design window.&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;13. HTML JavaScript warnings, not as errors: &lt;/strong&gt;VS 2005 mixes HTML errors and C# and &lt;a href="http://VB.NET"&gt;VB.NET&lt;/a&gt; errors and shows in one window. Now VS 2008 separates this and shows javascript and HTML errors as warnings. But this is configurable feature.&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;14. Debugging .NET Framework Library Source Code:&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;Now in VS 2008 you can debug the source code of .NET Framework Library methods. Lets say If you want to debug the DataBind() method of DataGrid control you can place a debugging point over there and continue with debug the source code of DataBind() method.&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;15. In built Silverlight Library&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://lh3.google.com/duttavr/R0TM758D4MI/AAAAAAAAAag/e1zRUYwZzrg/silverlight%5B3%5D" target="_blank"&gt;&lt;img style="border-width: 0px;" alt="silverlight" src="http://lh6.google.com/duttavr/R0TM9p8D4NI/AAAAAAAAAao/zKFPxl9QZ0c/silverlight_thumb%5B1%5D" border="0" width="320" height="204"&gt;&lt;/a&gt;&lt;/p&gt;     &lt;p&gt;Earlier we used to install &lt;a title="silverlight SDK" href="http://silverlighttutorials.blogspot.com/" target="_blank" rel="silverlight SDK"&gt;silverlight SDK&lt;/a&gt; separately, Now in VS 2008 it is inbuilt, with this you can create, debug and deploy the silverlight applications.&lt;/p&gt;     &lt;p&gt;&lt;strong&gt;16. Visual Studio &lt;a title="Introduction to LINQ" href="http://dotnetslackers.com/articles/csharp/IntroducingLINQ1.aspx" target="_blank" rel="Introduction to LINQ"&gt;LINQ&lt;/a&gt; Designer&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://lh5.google.com/duttavr/R0TM_Z8D4OI/AAAAAAAAAaw/JNWVlAVSZvQ/LINQ%5B10%5D" target="_blank"&gt;&lt;img style="border-width: 0px;" alt="LINQ" src="http://lh6.google.com/duttavr/R0TNBp8D4PI/AAAAAAAAAa4/1scKG0pkR7o/LINQ_thumb%5B6%5D" border="0" width="149" height="266"&gt;&lt;/a&gt;&lt;/p&gt;     &lt;p&gt;Already you know in VS 2005 we have inbuilt SQL Server IDE feature. by this you no need to use any other tools like &lt;a title="SQL Server Query Analyzer" href="http://www.sql-server-performance.com/tips/query_analyzer_p1.aspx" target="_blank" rel="SQL Server Query Analyzer"&gt;SQL Server Query Analyzer&lt;/a&gt; and &lt;a title="SQL Server Enterprise Manger" href="http://msdn2.microsoft.com/en-us/library/aa215396%28SQL.80%29.aspx" target="_blank" rel="SQL Server Enterprise Manger"&gt;SQL Server Enterprise Manger&lt;/a&gt;. You have directly database explorer by this you can create connections to your database and you can view the tables and stored procedures in VS IDE itself. But now in VS 2008 it has View Designer window capability with LINQ-to-SQL.&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;17. Inbuilt C++ SDK&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;Earlier It was so difficult to download and configure the C++ SDK Libraries and tools for developing windows based applications. Now it is inbuilt with VS 2008 and configurable&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;18. Multilingual User Interface Architecture - MUI&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://lh4.google.com/duttavr/R0TNDJ8D4QI/AAAAAAAAAbA/o_Xl_k4licM/MUI%5B4%5D"&gt;&lt;img style="border-width: 0px;" alt="MUI" src="http://lh3.google.com/duttavr/R0TNE58D4RI/AAAAAAAAAbI/YoX0kGmnJ98/MUI_thumb%5B2%5D" border="0" width="368" height="312"&gt;&lt;/a&gt;&lt;/p&gt;     &lt;p&gt;&lt;a title="MUI Architecture" href="http://en.wikipedia.org/wiki/Multilingual_User_Interface" target="_blank" rel="MUI Architecture"&gt;MUI&lt;/a&gt; is an architecture contains packages from &lt;a title="Microsoft" href="http://en.wikipedia.org/wiki/Microsoft" target="_blank" rel="Microsoft"&gt;Microsoft&lt;/a&gt; &lt;a title="Windows" href="http://en.wikipedia.org/wiki/Microsoft_Windows" target="_blank" rel="Windows"&gt;Windows&lt;/a&gt; and &lt;a title="Microsoft Office" href="http://en.wikipedia.org/wiki/Microsoft_Office" target="_blank" rel="Microsoft Office"&gt;Microsoft Office&lt;/a&gt; libraries. This supports the user to change the text language display as he wish.&lt;/p&gt;     &lt;p&gt;Visual Studio is now in English, Spanish, French, German, Italian, Chinese Simplified, Chinese Traditional, Japanese, and Korean. Over the next couple of months. Microsoft is reengineering the MUI which supports nine local languages then you can even view Visual studio in other 9 local languages.&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;19. Microsoft Popfly Support&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://lh4.google.com/duttavr/R0TNHJ8D4SI/AAAAAAAAAbQ/ai4QAh8IK3A/popfly%5B2%5D"&gt;&lt;img style="border-width: 0px;" alt="popfly" src="http://lh3.google.com/duttavr/R0TNI58D4TI/AAAAAAAAAbY/QpyVkr6mRhQ/popfly_thumb" border="0" width="244" height="155"&gt;&lt;/a&gt;&lt;/p&gt;     &lt;p&gt;&lt;a title="Microsoft Popfly" href="http://en.wikipedia.org/wiki/Popfly" target="_blank" rel="Microsoft Popfly"&gt;Microsoft Popfly&lt;/a&gt; explorer is an add-on to VS 2008, by this directly you can deploy or hosting the &lt;a title="Silverlight" href="http://silverlighttutorials.blogspot.com/" target="_blank"&gt;Silverlight&lt;/a&gt; applications and &lt;a title="Marshup" href="http://en.wikipedia.org/wiki/Mashup_%28web_application_hybrid%29" target="_blank" rel="Marshup"&gt;Marshup&lt;/a&gt; objects&lt;/p&gt;     &lt;p&gt;&lt;strong&gt;20. Free Tools and Resources&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;People may feel that I am a promoter to Visual Studio 2008 as a salesman, but we get plenty of free resources and free tools with Visual Studio 2008. &lt;/p&gt;    &lt;li&gt;&lt;a title="Visual Studio 2008 Download" href="http://www.google.co.in/url?sa=t&amp;amp;ct=res&amp;amp;cd=1&amp;amp;url=http%3A%2F%2Fmsdn2.microsoft.com%2Fen-us%2Fvstudio%2Fproducts%2Faa700831.aspx&amp;amp;ei=Qo9ER8aWOprOswL1p6HLDQ&amp;amp;usg=AFQjCNEHY96_pm6BWmPShgpUZ8PQqboi6w&amp;amp;sig2=tfbu4UMxXzsMFeXHayyaDA" target="_blank" rel="Visual Studio 2008 Download"&gt;Visual Studio 2008 Trial&lt;/a&gt; &lt;/li&gt;     &lt;li&gt;&lt;a title="LINQ Samples" href="http://msdn2.microsoft.com/en-us/vcsharp/aa336746.aspx" target="_blank" rel="LINQ Samples"&gt;101 LINQ Samples&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;Free .NET 3.5 control libraries with free sample programs, &lt;/li&gt;     &lt;li&gt;You can get plenty of free video training tutorials from &lt;a title="BDLC - Beginner Developer Learning Center" href="http://msdn2.microsoft.com/en-us/beginner/default.aspx" target="_blank" rel="BDLC - Beginner Developer Learning Center"&gt;Microsoft BDLC - Beginner Developer Learning Center&lt;/a&gt;, &lt;/li&gt;     &lt;li&gt;C++ games development library, &lt;/li&gt;    &lt;li&gt;Microsoft has provided lot of e-Books, &lt;/li&gt;    &lt;li&gt;P2P library and &lt;/li&gt;    &lt;li&gt;Microsoft is providing Coding4Fun sample program kit. &lt;/li&gt;    &lt;li&gt;Visual Studio Registration Discounts: If you register the Visual Studio you get Free Control Libraries, Books, Images, and Discounts. &lt;/li&gt;&lt;/span&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-9115944614913547196?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/09/net-2008-features.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-7483775553382075088</guid><pubDate>Tue, 26 Aug 2008 16:59:00 +0000</pubDate><atom:updated>2008-09-29T11:22:05.300-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>best practices for Good programming</title><description>&lt;div dir="ltr"&gt;&lt;h2 id="ax.h488" class="western"&gt;&lt;font id="ax.h490" face="Times New Roman, serif"&gt;best practices for Good programming&lt;/font&gt;&lt;/h2&gt; &lt;p id="ax.h491" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h492"&gt; &lt;/p&gt; &lt;h3 id="ax.h493" class="western" style="text-decoration: none;"&gt;&lt;a id="ax.h494" name="2.1.1.Avoid having too large files.|outline"&gt;&lt;/a&gt; &lt;font id="ax.h495" face="Times New Roman, serif"&gt;2.1.1Avoid having too large files.&lt;/font&gt;&lt;/h3&gt; &lt;p id="ax.h496" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;font id="ax.h497" face="Times New Roman, serif"&gt;&lt;font id="ax.h498" size="2"&gt;If a file has more than 300~400 lines of code, you must consider refactoring code into helper classes.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h499" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h500"&gt; &lt;/p&gt; &lt;h3 id="ax.h501" class="western" style="text-decoration: none;"&gt;&lt;a id="ax.h502" name="2.1.2.Avoid writing very long methods.|outline"&gt;&lt;/a&gt; &lt;font id="ax.h503" face="Times New Roman, serif"&gt;2.1.2Avoid writing very long methods.&lt;/font&gt;&lt;/h3&gt; &lt;p id="ax.h504" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;font id="ax.h505" face="Times New Roman, serif"&gt;&lt;font id="ax.h506" size="2"&gt;A method should typically have 1~25 lines of code. If a method has more than 25 lines of code, you must consider re factoring into separate methods.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h507" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h508"&gt; &lt;/p&gt; &lt;h3 id="ax.h509" class="western" style="text-decoration: none;"&gt;&lt;a id="ax.h510" name="2.1.3.White Space|outline"&gt;&lt;/a&gt; &lt;font id="ax.h511" face="Times New Roman, serif"&gt;2.1.3White Space&lt;/font&gt;&lt;/h3&gt; &lt;p id="ax.h512" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h513" face="Times New Roman, serif"&gt;&lt;font id="ax.h514" size="2"&gt;Blank lines improve readability by setting off sections of code that are logically related. &lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h515" style="margin-left: 0.5in; margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; &lt;font id="ax.h516" size="2"&gt;Two blank lines should always be used between sections of a source file. That is, two blank lines should follow: &lt;/font&gt; &lt;/p&gt; &lt;ul id="ax.h517"&gt;&lt;li id="ax.h518"&gt;&lt;p id="ax.h519" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h520" face="Times New Roman, serif"&gt;&lt;font id="ax.h521" size="2"&gt;the opening comment 	&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h522"&gt;&lt;p id="ax.h523" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h524" face="Times New Roman, serif"&gt;&lt;font id="ax.h525" size="2"&gt;the package 	statement &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h526"&gt;&lt;p id="ax.h527" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h528" face="Times New Roman, serif"&gt;&lt;font id="ax.h529" size="2"&gt;the import 	statements &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h530"&gt;&lt;p id="ax.h531" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h532" face="Times New Roman, serif"&gt;&lt;font id="ax.h533" size="2"&gt;the class and 	interface declaration &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h534" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h535" face="Times New Roman, serif"&gt;&lt;font id="ax.h536" size="2"&gt;One blank line should always be used in the following circumstances: &lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;ul id="ax.h537"&gt;&lt;li id="ax.h538"&gt;&lt;p id="ax.h539" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h540" face="Times New Roman, serif"&gt;&lt;font id="ax.h541" size="2"&gt;Between methods &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h542"&gt;&lt;p id="ax.h543" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h544" face="Times New Roman, serif"&gt;&lt;font id="ax.h545" size="2"&gt;Between the local 	variables in a method and its first statement &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h546"&gt;&lt;p id="ax.h547" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h548" face="Times New Roman, serif"&gt;&lt;font id="ax.h549" size="2"&gt;Before a block or 	single-line comment.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h550"&gt;&lt;p id="ax.h551" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h552" face="Times New Roman, serif"&gt;&lt;font id="ax.h553" size="2"&gt;Between logical 	sections inside a method to improve readability. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h554"&gt;&lt;p id="ax.h555" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h556" face="Times New Roman, serif"&gt;&lt;font id="ax.h557" size="2"&gt;Use common sense 	and don&amp;#39;t be afraid to put blank lines! &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h558" class="western" style="margin-left: 0.31in; margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; &lt;br id="ax.h559"&gt;&lt;br id="ax.h560"&gt; &lt;/p&gt; &lt;h3 id="ax.h561" class="western" style="text-decoration: none;"&gt;&lt;a id="ax.h562" name="2.1.4.Blank Spaces|outline"&gt;&lt;/a&gt; &lt;font id="ax.h563" face="Times New Roman, serif"&gt;2.1.4Blank Spaces&lt;/font&gt;&lt;/h3&gt; &lt;p id="ax.h564" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h565" face="Times New Roman, serif"&gt;&lt;font id="ax.h566" size="2"&gt;Blank spaces should be used in the following circumstances: &lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;ul id="ax.h567"&gt;&lt;li id="ax.h568"&gt;&lt;p id="ax.h569" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h570" face="Times New Roman, serif"&gt;&lt;font id="ax.h571" size="2"&gt;A blank space 	should appear after commas in argument lists. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h572"&gt;&lt;p id="ax.h573" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h574" face="Times New Roman, serif"&gt;&lt;font id="ax.h575" size="2"&gt;All binary 	operators except. Should be separated from their operands by spaces. 	Blank spaces should never separate unary operators such as unary 	minus, increment (&amp;quot;++&amp;quot;), and decrement (&amp;quot;--&amp;quot;) 	from their operands. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h576"&gt;&lt;p id="ax.h577" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h578" face="Arial, sans-serif"&gt;&lt;font id="ax.h579" size="2"&gt;&lt;font id="ax.h580" face="Times New Roman, serif"&gt;The 	expressions in a "&lt;/font&gt;&lt;font id="ax.h581" face="Courier New, monospace"&gt;&lt;font id="ax.h582" size="2"&gt;&lt;font id="ax.h583" face="Times New Roman, serif"&gt;for"&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font id="ax.h584" face="Times New Roman, serif"&gt; 	statement should be separated by blank spaces. &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h585" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h586" face="Times New Roman, serif"&gt;&lt;font id="ax.h587" size="2"&gt;&lt;b id="ax.h588"&gt;example: &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h589" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h590"&gt; &lt;/p&gt; &lt;p id="ax.h591" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;span id="Frame1" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.55in; height: 2.01in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h592" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h593" face="Courier New, monospace"&gt;&lt;font id="ax.h594" size="2"&gt;&lt;b id="ax.h595"&gt;public 	void aMethod(int a, int b, int c, int d)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h596" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h597" face="Courier New, monospace"&gt;&lt;font id="ax.h598" size="2"&gt;&lt;b id="ax.h599"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h600" style="margin-left: 0in; font-style: normal;"&gt;    &lt;font id="ax.h601" face="Courier New, monospace"&gt;&lt;font id="ax.h602" size="2"&gt;a 	+= c + d;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h603" style="margin-left: 0in; font-style: normal;"&gt;    &lt;font id="ax.h604" face="Courier New, monospace"&gt;&lt;font id="ax.h605" size="2"&gt;a 	= (a + b) / (c * d);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h606" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h607"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h608" style="margin-left: 0in; font-style: normal;"&gt;    &lt;font id="ax.h609" face="Courier New, monospace"&gt;&lt;font id="ax.h610" size="2"&gt;printSize(&amp;quot;size 	is &amp;quot; + foo);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h611" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h612"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h613" style="margin-left: 0in; font-style: normal;"&gt;    &lt;font id="ax.h614" face="Courier New, monospace"&gt;&lt;font id="ax.h615" size="2"&gt;&lt;b id="ax.h616"&gt;for(expr1; 	expr2; expr3)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h617" style="margin-left: 0in; font-style: normal;"&gt;    &lt;font id="ax.h618" face="Courier New, monospace"&gt;&lt;font id="ax.h619" size="2"&gt;&lt;b id="ax.h620"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h621" style="margin-left: 0in; font-style: normal;"&gt;        &lt;font id="ax.h622" face="Courier New, monospace"&gt;&lt;font id="ax.h623" size="2"&gt;/* 	No Body */&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h624" style="margin-left: 0in; font-style: normal;"&gt;    &lt;font id="ax.h625" face="Courier New, monospace"&gt;&lt;font id="ax.h626" size="2"&gt;&lt;b id="ax.h627"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h628" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h629" face="Courier New, monospace"&gt;&lt;font id="ax.h630" size="2"&gt;&lt;b id="ax.h631"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h632" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h633"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h634" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h635"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h636"&gt; &lt;/p&gt; &lt;p id="ax.h637" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h638"&gt; &lt;/p&gt; &lt;p id="ax.h639" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h640"&gt; &lt;/p&gt; &lt;p id="ax.h641" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h642"&gt; &lt;/p&gt; &lt;p id="ax.h643" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h644"&gt; &lt;/p&gt; &lt;p id="ax.h645" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h646"&gt; &lt;/p&gt; &lt;p id="ax.h647" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h648"&gt; &lt;/p&gt; &lt;p id="ax.h649" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h650"&gt; &lt;/p&gt; &lt;p id="ax.h651" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h652"&gt; &lt;/p&gt; &lt;p id="ax.h653" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h654"&gt; &lt;/p&gt; &lt;p id="ax.h655" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h656"&gt; &lt;/p&gt; &lt;p id="ax.h657" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h658"&gt; &lt;/p&gt; &lt;p id="ax.h659" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h660"&gt; &lt;/p&gt; &lt;p id="ax.h661" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h662"&gt; &lt;/p&gt; &lt;h3 id="ax.h663" class="western" style="text-decoration: none;"&gt;&lt;a id="ax.h664" name="2.1.5.Parentheses|outline"&gt;&lt;/a&gt; &lt;font id="ax.h665" face="Times New Roman, serif"&gt;2.1.5Parentheses&lt;/font&gt;&lt;/h3&gt; &lt;p id="ax.h666" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h667"&gt; &lt;/p&gt; &lt;p id="ax.h668" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h669" face="Times New Roman, serif"&gt;&lt;font id="ax.h670" size="2"&gt;It is generally a good idea to use parentheses liberally in expressions involving mixed operators to avoid operator precedence problems&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h671" class="western" style="font-style: normal;"&gt;&lt;span id="Frame2" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.65in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h672" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h673" face="Courier New, monospace"&gt;&lt;font id="ax.h674" size="2"&gt;if(a 	== b &amp;amp;&amp;amp; c == d)        // AVOID!&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h675" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h676" face="Courier New, monospace"&gt;&lt;font id="ax.h677" size="2"&gt;if((a 	== b) &amp;amp;&amp;amp; (c == d))    // RIGHT&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h678" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h679"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h680" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h681"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h682"&gt; &lt;/p&gt; &lt;p id="ax.h683" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h684"&gt; &lt;/p&gt; &lt;p id="ax.h685" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h686"&gt; &lt;/p&gt; &lt;p id="ax.h687" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h688"&gt; &lt;/p&gt; &lt;p id="ax.h689" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h690"&gt; &lt;/p&gt; &lt;p id="ax.h691" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h692"&gt; &lt;/p&gt; &lt;h3 id="ax.h693" class="western" style="text-decoration: none;"&gt;&lt;a id="ax.h694" name="cpconnamingguidelines"&gt;&lt;/a&gt;&lt;a id="ax.h695" name="2.1.6.Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h696" face="Times New Roman, serif"&gt;2.1.6Naming Guidelines&lt;/font&gt;&lt;/h3&gt; &lt;p id="ax.h697" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;font id="ax.h698" face="Times New Roman, serif"&gt;&lt;font id="ax.h699" size="2"&gt;	A consistent naming pattern is one of the most important elements of predictability and discoverability in a managed class library.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h700" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h701"&gt; &lt;/p&gt; &lt;h4 id="ax.h702" class="western"&gt;&lt;a id="ax.h703" name="2.1.6.1.Capitalization Styles |outline"&gt;&lt;/a&gt; &lt;a href="http://2.1.6.1"&gt;2.1.6.1&lt;/a&gt;&lt;font id="ax.h704" color="#0000ff"&gt;&lt;u id="ax.h705"&gt;&lt;a id="ax.h706" href="http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconcapitalizationstyles.asp"&gt;&lt;font id="ax.h707" face="Times New Roman, serif"&gt;Capitalization Styles&lt;/font&gt;&lt;/a&gt;&lt;/u&gt;&lt;/font&gt;  &lt;/h4&gt; &lt;p id="ax.h708" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;font id="ax.h709" face="Times New Roman, serif"&gt;&lt;font id="ax.h710" size="2"&gt;Describes the Pascal case, camel case, and uppercase capitalization styles to use to name identifiers in class libraries. &lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h711" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h712"&gt; &lt;/p&gt; &lt;ul id="ax.h713"&gt;&lt;li id="ax.h714"&gt;&lt;p id="ax.h715" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h716" face="Times New Roman, serif"&gt;&lt;font id="ax.h717" size="2"&gt;&lt;b id="ax.h718"&gt;Pascal 	case&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h719" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h720"&gt; &lt;/p&gt; &lt;p id="ax.h721" class="western" style="margin-left: 1in; font-style: normal;"&gt; &lt;font id="ax.h722" face="Times New Roman, serif"&gt;&lt;font id="ax.h723" size="2"&gt;	The first letter in the identifier and the first letter of each subsequent concatenated word are capitalized. You can use Pascal case for identifiers of three or more characters.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h724" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;font id="ax.h725" face="Times New Roman, serif"&gt;&lt;font id="ax.h726" size="2"&gt;&lt;b id="ax.h727"&gt;Example:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h728" class="western" style="margin-left: 1in; font-style: normal;"&gt; &lt;span id="Frame3" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.38in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h729" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h730" face="Arial, sans-serif"&gt;&lt;font id="ax.h731" size="2"&gt;&lt;b id="ax.h732"&gt;B&lt;/b&gt;ack&lt;b id="ax.h733"&gt;C&lt;/b&gt;olor&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  	&lt;p id="ax.h734" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h735"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h736"&gt; &lt;/p&gt; &lt;p id="ax.h737" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h738"&gt; &lt;/p&gt; &lt;p id="ax.h739" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h740"&gt; &lt;/p&gt; &lt;p id="ax.h741" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h742"&gt; &lt;/p&gt; &lt;p id="ax.h743" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h744"&gt; &lt;/p&gt; &lt;ul id="ax.h745"&gt;&lt;li id="ax.h746"&gt;&lt;p id="ax.h747" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h748" face="Times New Roman, serif"&gt;&lt;font id="ax.h749" size="2"&gt;&lt;b id="ax.h750"&gt;Camel 	case&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h751" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h752"&gt; &lt;/p&gt; &lt;p id="ax.h753" class="western" style="margin-left: 1in; font-style: normal;"&gt; &lt;font id="ax.h754" face="Times New Roman, serif"&gt;&lt;font id="ax.h755" size="2"&gt;The first letter of an identifier is lowercase and the first letter of each subsequent concatenated word is capitalized.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h756" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;font id="ax.h757" face="Times New Roman, serif"&gt;&lt;font id="ax.h758" size="2"&gt;&lt;b id="ax.h759"&gt;Example:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h760" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h761"&gt; &lt;/p&gt; &lt;p id="ax.h762" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;span id="Frame4" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.38in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h763" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h764" face="Arial, sans-serif"&gt;&lt;font id="ax.h765" size="2"&gt;&lt;b id="ax.h766"&gt;backColor&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h767"&gt; &lt;/p&gt; &lt;p id="ax.h768" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h769"&gt; &lt;/p&gt; &lt;p id="ax.h770" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h771"&gt; &lt;/p&gt; &lt;p id="ax.h772" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h773"&gt; &lt;/p&gt; &lt;ul id="ax.h774"&gt;&lt;li id="ax.h775"&gt;&lt;p id="ax.h776" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h777" face="Times New Roman, serif"&gt;&lt;font id="ax.h778" size="2"&gt;&lt;b id="ax.h779"&gt;Uppercase&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h780" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h781"&gt; &lt;/p&gt; &lt;p id="ax.h782" class="western" style="margin-left: 1in; font-style: normal;"&gt; &lt;font id="ax.h783" face="Times New Roman, serif"&gt;&lt;font id="ax.h784" size="2"&gt;All letters in the identifier are capitalized. Use this convention only for identifiers that consist of two or fewer letters.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h785" class="western" style="margin-left: 1in; font-style: normal;"&gt; &lt;br id="ax.h786"&gt; &lt;/p&gt; &lt;p id="ax.h787" class="western" style="margin-left: 1in; font-style: normal;"&gt; &lt;br id="ax.h788"&gt; &lt;/p&gt; &lt;p id="ax.h789" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;font id="ax.h790" face="Times New Roman, serif"&gt;&lt;font id="ax.h791" size="2"&gt;&lt;b id="ax.h792"&gt;Example:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h793" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;span id="Frame5" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.63in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h794" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h795" face="Arial, sans-serif"&gt;&lt;font id="ax.h796" size="2"&gt;&lt;b id="ax.h797"&gt;Sysetm.IO&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h798" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h799"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h800" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h801" face="Arial, sans-serif"&gt;&lt;font id="ax.h802" size="2"&gt;&lt;b id="ax.h803"&gt;System.Web.UI&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h804"&gt; &lt;/p&gt; &lt;p id="ax.h805" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h806"&gt; &lt;/p&gt; &lt;p id="ax.h807" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h808"&gt; &lt;/p&gt; &lt;p id="ax.h809" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h810"&gt; &lt;/p&gt; &lt;p id="ax.h811" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h812"&gt; &lt;/p&gt; &lt;p id="ax.h813" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h814"&gt; &lt;/p&gt; &lt;p id="ax.h815" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h816"&gt; &lt;/p&gt; &lt;p id="ax.h817" class="western" style="margin-left: 0.81in; font-style: normal;"&gt;&lt;font id="ax.h818" face="Times New Roman, serif"&gt;&lt;font id="ax.h819" size="3"&gt;&lt;b id="ax.h820"&gt;The following table summarizes the capitalization rules and provides examples for the different types of identifiers:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h821" class="western" style="margin-left: 0.81in; font-style: normal;"&gt; &lt;br id="ax.h822"&gt; &lt;/p&gt; &lt;dl id="ax.h823"&gt;&lt;dd id="ax.h824"&gt; 	&lt;table id="ax.h825" width="564" border="1" cellpadding="8" cellspacing="0"&gt; 		&lt;col id="ax.h826" width="227"&gt; 		&lt;col id="ax.h827" width="140"&gt; 		&lt;col id="ax.h828" width="147"&gt; 		&lt;tbody id="ax.h829"&gt;&lt;tr id="ax.h830"&gt; 			&lt;td id="ax.h831" width="227" bgcolor="#737373" height="13"&gt; 				&lt;p id="ax.h832" class="western" style="margin-left: 0in; font-style: normal;"&gt; 				&lt;font id="ax.h833" color="#ffffff"&gt;&lt;font id="ax.h834" face="Times New Roman, serif"&gt;&lt;font id="ax.h835" size="2"&gt;&lt;b id="ax.h836"&gt;Identifier&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h837" width="140" bgcolor="#737373"&gt; 				&lt;p id="ax.h838" class="western" style="margin-left: 0in; font-style: normal;"&gt; 				&lt;font id="ax.h839" color="#ffffff"&gt;&lt;font id="ax.h840" face="Times New Roman, serif"&gt;&lt;font id="ax.h841" size="2"&gt;&lt;b id="ax.h842"&gt;Case&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h843" width="147" bgcolor="#737373"&gt; 				&lt;p id="ax.h844" class="western" style="margin-left: 0in; font-style: normal;"&gt; 				&lt;font id="ax.h845" color="#ffffff"&gt;&lt;font id="ax.h846" face="Times New Roman, serif"&gt;&lt;font id="ax.h847" size="2"&gt;&lt;b id="ax.h848"&gt;Example&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h849"&gt; 			&lt;td id="ax.h850" width="227" bgcolor="#c0c0c0" height="9"&gt; 				&lt;p id="ax.h851" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h852" face="Times New Roman, serif"&gt;&lt;font id="ax.h853" size="2"&gt;Class&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h854" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h855" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h856" face="Times New Roman, serif"&gt;&lt;font id="ax.h857" size="2"&gt;Pascal&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h858" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h859" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h860" face="Times New Roman, serif"&gt;&lt;font id="ax.h861" size="2"&gt;&lt;b id="ax.h862"&gt;AppDomain&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h863"&gt; 			&lt;td id="ax.h864" width="227" bgcolor="#c0c0c0" height="15"&gt; 				&lt;p id="ax.h865" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h866" face="Times New Roman, serif"&gt;&lt;font id="ax.h867" size="2"&gt;Enum 				type&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h868" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h869" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h870" face="Times New Roman, serif"&gt;&lt;font id="ax.h871" size="2"&gt;Pascal&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h872" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h873" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h874" face="Times New Roman, serif"&gt;&lt;font id="ax.h875" size="2"&gt;&lt;b id="ax.h876"&gt;ErrorLevel&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h877"&gt; 			&lt;td id="ax.h878" width="227" bgcolor="#c0c0c0" height="15"&gt; 				&lt;p id="ax.h879" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h880" face="Times New Roman, serif"&gt;&lt;font id="ax.h881" size="2"&gt;Enum 				values&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h882" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h883" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h884" face="Times New Roman, serif"&gt;&lt;font id="ax.h885" size="2"&gt;Pascal&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h886" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h887" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h888" face="Times New Roman, serif"&gt;&lt;font id="ax.h889" size="2"&gt;&lt;b id="ax.h890"&gt;FatalError&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h891"&gt; 			&lt;td id="ax.h892" width="227" bgcolor="#c0c0c0" height="14"&gt; 				&lt;p id="ax.h893" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h894" face="Times New Roman, serif"&gt;&lt;font id="ax.h895" size="2"&gt;Event&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h896" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h897" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h898" face="Times New Roman, serif"&gt;&lt;font id="ax.h899" size="2"&gt;Pascal&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h900" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h901" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h902" face="Times New Roman, serif"&gt;&lt;font id="ax.h903" size="2"&gt;&lt;b id="ax.h904"&gt;ValueChange&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h905"&gt; 			&lt;td id="ax.h906" width="227" bgcolor="#c0c0c0" height="14"&gt; 				&lt;p id="ax.h907" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h908" face="Times New Roman, serif"&gt;&lt;font id="ax.h909" size="2"&gt;Exception 				class&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h910" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h911" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h912" face="Times New Roman, serif"&gt;&lt;font id="ax.h913" size="2"&gt;Pascal&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h914" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h915" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h916" face="Times New Roman, serif"&gt;&lt;font id="ax.h917" size="2"&gt;&lt;b id="ax.h918"&gt;WebException 				&lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 				&lt;/p&gt; 				&lt;p id="ax.h919" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h920" face="Arial, sans-serif"&gt;&lt;font id="ax.h921" size="2"&gt;&lt;font id="ax.h922" face="Times New Roman, serif"&gt;Note&amp;nbsp;&amp;nbsp;&amp;nbsp;Always 				ends with the suffix &lt;b id="ax.h923"&gt;Exception.&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h924"&gt; 			&lt;td id="ax.h925" width="227" bgcolor="#c0c0c0" height="11"&gt; 				&lt;p id="ax.h926" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h927" face="Times New Roman, serif"&gt;&lt;font id="ax.h928" size="2"&gt;Read-only 				Static field&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h929" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h930" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h931" face="Times New Roman, serif"&gt;&lt;font id="ax.h932" size="2"&gt;Pascal&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h933" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h934" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h935" face="Times New Roman, serif"&gt;&lt;font id="ax.h936" size="2"&gt;&lt;b id="ax.h937"&gt;RedValue&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h938"&gt; 			&lt;td id="ax.h939" width="227" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h940" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h941" face="Times New Roman, serif"&gt;&lt;font id="ax.h942" size="2"&gt;Interface&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h943" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h944" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h945" face="Times New Roman, serif"&gt;&lt;font id="ax.h946" size="2"&gt;Pascal&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h947" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h948" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h949" face="Times New Roman, serif"&gt;&lt;font id="ax.h950" size="2"&gt;&lt;b id="ax.h951"&gt;IDisposable 				&lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 				&lt;/p&gt; 				&lt;p id="ax.h952" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h953" face="Times New Roman, serif"&gt;&lt;font id="ax.h954" size="2"&gt;Note&amp;nbsp;&amp;nbsp;&amp;nbsp;Always 				begins with the prefix I.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h955"&gt; 			&lt;td id="ax.h956" width="227" bgcolor="#c0c0c0" height="15"&gt; 				&lt;p id="ax.h957" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h958" face="Times New Roman, serif"&gt;&lt;font id="ax.h959" size="2"&gt;Method&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h960" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h961" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h962" face="Times New Roman, serif"&gt;&lt;font id="ax.h963" size="2"&gt;Pascal&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h964" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h965" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h966" face="Times New Roman, serif"&gt;&lt;font id="ax.h967" size="2"&gt;&lt;b id="ax.h968"&gt;ToString&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h969"&gt; 			&lt;td id="ax.h970" width="227" bgcolor="#c0c0c0" height="8"&gt; 				&lt;p id="ax.h971" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h972" face="Times New Roman, serif"&gt;&lt;font id="ax.h973" size="2"&gt;Namespace&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h974" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h975" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h976" face="Times New Roman, serif"&gt;&lt;font id="ax.h977" size="2"&gt;Pascal&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h978" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h979" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h980" face="Times New Roman, serif"&gt;&lt;font id="ax.h981" size="2"&gt;&lt;b id="ax.h982"&gt;System.Drawing&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h983"&gt; 			&lt;td id="ax.h984" width="227" bgcolor="#c0c0c0" height="9"&gt; 				&lt;p id="ax.h985" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h986" face="Times New Roman, serif"&gt;&lt;font id="ax.h987" size="2"&gt;Parameter&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h988" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h989" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h990" face="Times New Roman, serif"&gt;&lt;font id="ax.h991" size="2"&gt;Camel&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h992" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h993" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h994" face="Times New Roman, serif"&gt;&lt;font id="ax.h995" size="2"&gt;&lt;b id="ax.h996"&gt;typeName&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h997"&gt; 			&lt;td id="ax.h998" width="227" bgcolor="#c0c0c0" height="15"&gt; 				&lt;p id="ax.h999" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h1000" face="Times New Roman, serif"&gt;&lt;font id="ax.h1001" size="2"&gt;Property&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h1002" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h1003" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h1004" face="Times New Roman, serif"&gt;&lt;font id="ax.h1005" size="2"&gt;Pascal&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h1006" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h1007" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h1008" face="Times New Roman, serif"&gt;&lt;font id="ax.h1009" size="2"&gt;&lt;b id="ax.h1010"&gt;BackColor&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h1011"&gt; 			&lt;td id="ax.h1012" width="227" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h1013" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h1014" face="Times New Roman, serif"&gt;&lt;font id="ax.h1015" size="2"&gt;Protected 				instance field&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h1016" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h1017" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h1018" face="Times New Roman, serif"&gt;&lt;font id="ax.h1019" size="2"&gt;Camel&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h1020" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h1021" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h1022" face="Times New Roman, serif"&gt;&lt;font id="ax.h1023" size="2"&gt;&lt;b id="ax.h1024"&gt;redValue 				&lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 				&lt;/p&gt; 				&lt;p id="ax.h1025" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h1026" face="Times New Roman, serif"&gt;&lt;font id="ax.h1027" size="2"&gt;Note&amp;nbsp;&amp;nbsp;&amp;nbsp;Rarely 				used. A property is preferable to using a protected instance 				field.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr id="ax.h1028"&gt; 			&lt;td id="ax.h1029" width="227" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h1030" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h1031" face="Times New Roman, serif"&gt;&lt;font id="ax.h1032" size="2"&gt;Public 				instance field&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h1033" width="140" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h1034" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h1035" face="Times New Roman, serif"&gt;&lt;font id="ax.h1036" size="2"&gt;Pascal&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td id="ax.h1037" width="147" bgcolor="#c0c0c0"&gt; 				&lt;p id="ax.h1038" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h1039" face="Times New Roman, serif"&gt;&lt;font id="ax.h1040" size="2"&gt;&lt;b id="ax.h1041"&gt;RedValue 				&lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 				&lt;/p&gt; 				&lt;p id="ax.h1042" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h1043" face="Times New Roman, serif"&gt;&lt;font id="ax.h1044" size="2"&gt;Note&amp;nbsp;&amp;nbsp;&amp;nbsp;Rarely 				used. A property is preferable to using a public instance field.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 	&lt;/tbody&gt;&lt;/table&gt; &lt;/dd&gt;&lt;/dl&gt; &lt;p id="ax.h1045" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h1046"&gt; &lt;/p&gt; &lt;p id="ax.h1047" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h1048"&gt; &lt;/p&gt; &lt;p id="ax.h1049" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h1050"&gt; &lt;/p&gt; &lt;h4 id="ax.h1051" class="western"&gt;&lt;a id="ax.h1052" name="cpconcasesensitivity"&gt;&lt;/a&gt;&lt;a id="ax.h1053" name="2.1.6.2.Case Sensitivity|outline"&gt;&lt;/a&gt; &lt;font id="ax.h1054" face="Times New Roman, serif"&gt;2.1.6.2Case Sensitivity&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h1055" class="western" style="margin-left: 0.75in; font-style: normal;"&gt;&lt;br id="ax.h1056"&gt; &lt;/p&gt; &lt;ul id="ax.h1057"&gt;&lt;li id="ax.h1058"&gt;&lt;p id="ax.h1059" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1060" face="Times New Roman, serif"&gt;&lt;font id="ax.h1061" size="2"&gt;Do 	not use names that require case sensitivity. Components must be 	fully usable from both case-sensitive and case-insensitive 	languages. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1062" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1063"&gt; &lt;/p&gt; &lt;ul id="ax.h1064"&gt;&lt;li id="ax.h1065"&gt;&lt;p id="ax.h1066" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1067" face="Times New Roman, serif"&gt;&lt;font id="ax.h1068" size="2"&gt;Case-insensitive 	languages cannot distinguish between two names within the same 	context that differ only by case. Therefore, you must avoid this 	situation in the components or classes that you create.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1069" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1070"&gt; &lt;/p&gt; &lt;ul id="ax.h1071"&gt;&lt;li id="ax.h1072"&gt;&lt;p id="ax.h1073" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1074" face="Times New Roman, serif"&gt;&lt;font id="ax.h1075" size="2"&gt;Do 	not create two namespaces with names that differ only by case. For 	example, a case insensitive language cannot distinguish between the 	following two namespace declarations.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1076" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;span id="Frame6" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 0.51in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1077" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1078" face="Courier New, monospace"&gt;&lt;font id="ax.h1079" size="2"&gt;namespace 	ee.cummings;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1080" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1081" face="Courier New, monospace"&gt;&lt;font id="ax.h1082" size="2"&gt;namespace 	Ee.Cummings;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1083" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h1084"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1085"&gt; &lt;/p&gt; &lt;p id="ax.h1086" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h1087"&gt; &lt;/p&gt; &lt;p id="ax.h1088" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h1089"&gt; &lt;/p&gt; &lt;p id="ax.h1090" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h1091"&gt; &lt;/p&gt; &lt;p id="ax.h1092" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h1093"&gt; &lt;/p&gt; &lt;ul id="ax.h1094"&gt;&lt;li id="ax.h1095"&gt;&lt;p id="ax.h1096" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1097" face="Times New Roman, serif"&gt;&lt;font id="ax.h1098" size="2"&gt;Do 	not create a function with parameter names that differ only by case. 	The following example is incorrect.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1099" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h1100"&gt; &lt;/p&gt; &lt;p id="ax.h1101" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;span id="Frame7" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 0.42in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1102" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; 	&lt;font id="ax.h1103" face="Arial, sans-serif"&gt;&lt;font id="ax.h1104" size="2"&gt;void MyFunction(string 	a, string A)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1105"&gt; &lt;/p&gt; &lt;p id="ax.h1106" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;br id="ax.h1107"&gt; &lt;/p&gt; &lt;p id="ax.h1108" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1109"&gt; &lt;/p&gt; &lt;p id="ax.h1110" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1111"&gt; &lt;/p&gt; &lt;ul id="ax.h1112"&gt;&lt;li id="ax.h1113"&gt;&lt;p id="ax.h1114" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1115" face="Arial, sans-serif"&gt;&lt;font id="ax.h1116" size="2"&gt;&lt;font id="ax.h1117" face="Times New Roman, serif"&gt;Do 	not create a namespace with type names that differ only by case. In 	the following example, &lt;b id="ax.h1118"&gt;Point p&lt;/b&gt; and &lt;b id="ax.h1119"&gt;POINT p&lt;/b&gt; are 	inappropriate type names because they differ only by case.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1120" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;span id="Frame8" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 0.63in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1121" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1122" face="Arial, sans-serif"&gt;&lt;font id="ax.h1123" size="2"&gt;System.Windows.Forms.Point 	p&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1124" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1125"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1126" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1127" face="Arial, sans-serif"&gt;&lt;font id="ax.h1128" size="2"&gt;System.Windows.Forms.POINT 	p&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1129"&gt; &lt;/p&gt; &lt;p id="ax.h1130" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1131"&gt; &lt;/p&gt; &lt;p id="ax.h1132" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1133"&gt; &lt;/p&gt; &lt;p id="ax.h1134" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1135"&gt; &lt;/p&gt; &lt;p id="ax.h1136" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1137"&gt; &lt;/p&gt; &lt;p id="ax.h1138" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1139"&gt; &lt;/p&gt; &lt;ul id="ax.h1140"&gt;&lt;li id="ax.h1141"&gt;&lt;p id="ax.h1142" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1143" face="Times New Roman, serif"&gt;&lt;font id="ax.h1144" size="2"&gt;Do 	not create a type with property names that differ only by case. In 	the following example,&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1145" class="western" style="margin-left: 0.75in; font-style: normal;"&gt;&lt;font id="ax.h1146" face="Arial, sans-serif"&gt;&lt;font id="ax.h1147" size="2"&gt;&lt;font id="ax.h1148" face="Times New Roman, serif"&gt;						&lt;b id="ax.h1149"&gt;int Color&lt;/b&gt; and &lt;b id="ax.h1150"&gt;int&lt;/b&gt; &lt;b id="ax.h1151"&gt;COLOR&lt;/b&gt; are inappropriate property names because they differ only by case.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h1152" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;span id="Frame9" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 1.63in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1153" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1154" face="Arial, sans-serif"&gt;&lt;font id="ax.h1155" size="2"&gt;	int 	Color &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1156" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1157" face="Arial, sans-serif"&gt;&lt;font id="ax.h1158" size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1159" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1160" face="Arial, sans-serif"&gt;&lt;font id="ax.h1161" size="2"&gt;				get, 	set&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1162" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1163" face="Arial, sans-serif"&gt;&lt;font id="ax.h1164" size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1165" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1166"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1167" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1168" face="Arial, sans-serif"&gt;&lt;font id="ax.h1169" size="2"&gt;int 	COLOR &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1170" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1171" face="Arial, sans-serif"&gt;&lt;font id="ax.h1172" size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1173" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1174" face="Arial, sans-serif"&gt;&lt;font id="ax.h1175" size="2"&gt;					get, 	set&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1176" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1177" face="Arial, sans-serif"&gt;&lt;font id="ax.h1178" size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1179"&gt; &lt;/p&gt; &lt;p id="ax.h1180" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1181"&gt; &lt;/p&gt; &lt;p id="ax.h1182" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1183"&gt; &lt;/p&gt; &lt;p id="ax.h1184" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1185"&gt; &lt;/p&gt; &lt;p id="ax.h1186" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1187"&gt; &lt;/p&gt; &lt;p id="ax.h1188" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1189"&gt; &lt;/p&gt; &lt;p id="ax.h1190" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1191"&gt; &lt;/p&gt; &lt;p id="ax.h1192" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1193"&gt; &lt;/p&gt; &lt;p id="ax.h1194" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1195"&gt; &lt;/p&gt; &lt;p id="ax.h1196" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1197"&gt; &lt;/p&gt; &lt;p id="ax.h1198" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1199"&gt; &lt;/p&gt; &lt;p id="ax.h1200" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1201"&gt; &lt;/p&gt; &lt;p id="ax.h1202" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1203"&gt; &lt;/p&gt; &lt;ul id="ax.h1204"&gt;&lt;li id="ax.h1205"&gt;&lt;p id="ax.h1206" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1207" face="Times New Roman, serif"&gt;&lt;font id="ax.h1208" size="2"&gt;Do 	not create a type with method names that differ only by case. In the 	following example, calculate and Calculate are inappropriate method 	names because they differ only by case.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1209" class="western" style="font-style: normal;"&gt;&lt;span id="Frame10" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 0.63in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1210" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1211" face="Arial, sans-serif"&gt;&lt;font id="ax.h1212" size="2"&gt;void 	calculate()&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1213" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1214"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1215" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1216" face="Arial, sans-serif"&gt;&lt;font id="ax.h1217" size="2"&gt;void 	Calculate()&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1218"&gt; &lt;/p&gt; &lt;p id="ax.h1219" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1220"&gt; &lt;/p&gt; &lt;p id="ax.h1221" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1222"&gt; &lt;/p&gt; &lt;p id="ax.h1223" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1224"&gt; &lt;/p&gt; &lt;p id="ax.h1225" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1226"&gt; &lt;/p&gt; &lt;p id="ax.h1227" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1228"&gt; &lt;/p&gt; &lt;p id="ax.h1229" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1230"&gt; &lt;/p&gt; &lt;h4 id="ax.h1231" class="western"&gt;&lt;a id="ax.h1232" name="cpconabbreviations"&gt;&lt;/a&gt;&lt;a id="ax.h1233" name="2.1.6.3.Abbreviations|outline"&gt;&lt;/a&gt; &lt;font id="ax.h1234" face="Times New Roman, serif"&gt;2.1.6.3Abbreviations&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h1235" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1236"&gt; &lt;/p&gt; &lt;ul id="ax.h1237"&gt;&lt;li id="ax.h1238"&gt;&lt;p id="ax.h1239" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1240" face="Times New Roman, serif"&gt;&lt;font id="ax.h1241" size="2"&gt;To 	avoid confusion and guarantee cross-language interoperation, follow 	these rules regarding the use of abbreviations: &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1242" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1243"&gt; &lt;/p&gt; &lt;ul id="ax.h1244"&gt;&lt;li id="ax.h1245"&gt;&lt;p id="ax.h1246" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1247" face="Times New Roman, serif"&gt;&lt;font id="ax.h1248" size="2"&gt;Do 	not use abbreviations or contractions as parts of identifier names.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1249" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;font id="ax.h1250" face="Times New Roman, serif"&gt;&lt;font id="ax.h1251" size="2"&gt;&lt;b id="ax.h1252"&gt;	Example: &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h1253" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1254"&gt; &lt;/p&gt; &lt;p id="ax.h1255" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;span id="Frame11" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 1.01in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1256" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1257" face="Arial, sans-serif"&gt;&lt;font id="ax.h1258" size="2"&gt;&lt;b id="ax.h1259"&gt;Good:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1260" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1261" face="Arial, sans-serif"&gt;&lt;font id="ax.h1262" size="2"&gt;									&lt;b id="ax.h1263"&gt;GetWindow&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1264" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1265"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1266" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1267" face="Arial, sans-serif"&gt;&lt;font id="ax.h1268" size="2"&gt;&lt;b id="ax.h1269"&gt;Not 	Good:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1270" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1271" face="Arial, sans-serif"&gt;&lt;font id="ax.h1272" size="2"&gt;&lt;b id="ax.h1273"&gt;									GetWin&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1274"&gt; &lt;/p&gt; &lt;p id="ax.h1275" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1276"&gt; &lt;/p&gt; &lt;p id="ax.h1277" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1278"&gt; &lt;/p&gt; &lt;p id="ax.h1279" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1280"&gt; &lt;/p&gt; &lt;p id="ax.h1281" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1282"&gt; &lt;/p&gt; &lt;p id="ax.h1283" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1284"&gt; &lt;/p&gt; &lt;p id="ax.h1285" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1286"&gt; &lt;/p&gt; &lt;p id="ax.h1287" class="western" style="margin-left: 0.75in; font-style: normal;"&gt; &lt;br id="ax.h1288"&gt; &lt;/p&gt; &lt;ul id="ax.h1289"&gt;&lt;li id="ax.h1290"&gt;&lt;p id="ax.h1291" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1292" face="Times New Roman, serif"&gt;&lt;font id="ax.h1293" size="2"&gt;Do 	not use acronyms that are not generally accepted in the computing 	field. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1294" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1295"&gt; &lt;/p&gt; &lt;ul id="ax.h1296"&gt;&lt;li id="ax.h1297"&gt;&lt;p id="ax.h1298" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1299" face="Times New Roman, serif"&gt;&lt;font id="ax.h1300" size="2"&gt;Where 	appropriate, use well-known acronyms to replace lengthy phrase 	names. For example, use UI for User Interface and OLAP for On-line 	Analytical Processing. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1301" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1302"&gt; &lt;/p&gt; &lt;ul id="ax.h1303"&gt;&lt;li id="ax.h1304"&gt;&lt;p id="ax.h1305" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1306" face="Arial, sans-serif"&gt;&lt;font id="ax.h1307" size="2"&gt;&lt;font id="ax.h1308" face="Times New Roman, serif"&gt;When 	using acronyms, use Pascal case or camel case for acronyms more than 	two characters long. For example, use &lt;b id="ax.h1309"&gt;HtmlButton&lt;/b&gt; or 	&lt;b id="ax.h1310"&gt;htmlButton&lt;/b&gt;. However, you should capitalize acronyms that 	consist of only two characters, such as &lt;b id="ax.h1311"&gt;System.IO&lt;/b&gt; instead of 	&lt;b id="ax.h1312"&gt;System.Io. &lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1313" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1314"&gt; &lt;/p&gt; &lt;p id="ax.h1315" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1316"&gt; &lt;/p&gt; &lt;ul id="ax.h1317"&gt;&lt;li id="ax.h1318"&gt;&lt;p id="ax.h1319" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1320" face="Times New Roman, serif"&gt;&lt;font id="ax.h1321" size="2"&gt;Do 	not use abbreviations in identifiers or parameter names. If you must 	use abbreviations, use camel case for abbreviations that consist of 	more than two characters, even if this contradicts the standard 	abbreviation of the word.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1322" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1323"&gt; &lt;/p&gt; &lt;h4 id="ax.h1324" class="western"&gt;&lt;a id="ax.h1325" name="cpconnamespacenamingguidelines"&gt;&lt;/a&gt;&lt;a id="ax.h1326" name="2.1.6.4.Namespace Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h1327" face="Times New Roman, serif"&gt;2.1.6.4Namespace Naming Guidelines&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h1328" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;br id="ax.h1329"&gt; &lt;/p&gt; &lt;ul id="ax.h1330"&gt;&lt;li id="ax.h1331"&gt;&lt;p id="ax.h1332" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1333" face="Arial, sans-serif"&gt;&lt;font id="ax.h1334" size="2"&gt;&lt;font id="ax.h1335" face="Times New Roman, serif"&gt;You 	should use &lt;b id="ax.h1336"&gt;Pascal case&lt;/b&gt; for namespaces&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h1337"&gt;&lt;p id="ax.h1338" class="western" style="margin-top: 0.08in; margin-bottom: 0.17in; font-style: normal;"&gt; 	&lt;font id="ax.h1339" face="Times New Roman, serif"&gt;&lt;font id="ax.h1340" size="2"&gt;T&lt;span id="Frame12" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 1.26in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 		&lt;p id="ax.h1341" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1342" face="Arial, sans-serif"&gt;&lt;font id="ax.h1343" size="2"&gt;&lt;b id="ax.h1344"&gt;CompanyName.TechnologyName[.Feature][.Design]&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  		&lt;p id="ax.h1345" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1346"&gt; 		&lt;/p&gt; 		&lt;p id="ax.h1347" class="western" style="font-style: normal;"&gt; &lt;font id="ax.h1348" face="Arial, sans-serif"&gt;&lt;font id="ax.h1349" size="2"&gt;&lt;b id="ax.h1350"&gt;For 		example:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 		&lt;p id="ax.h1351" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1352"&gt; 		&lt;/p&gt; 		&lt;p id="ax.h1353" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1354" face="Arial, sans-serif"&gt;&lt;font id="ax.h1355" size="2"&gt;									Microsoft.Media&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 		&lt;p id="ax.h1356" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1357"&gt; 		&lt;/p&gt; 		&lt;p id="ax.h1358" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1359" face="Arial, sans-serif"&gt;&lt;font id="ax.h1360" size="2"&gt;									Microsoft.Media.Design&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;/span&gt;he general rule for naming namespaces is to use the company 	name followed by the technology name and optionally the feature and 	design as follows.&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1361" class="western" style="margin-left: 0.25in; margin-top: 0.08in; margin-bottom: 0.17in; font-style: normal;"&gt; &lt;br id="ax.h1362"&gt;&lt;br id="ax.h1363"&gt; &lt;/p&gt; &lt;p id="ax.h1364" class="western" style="margin-left: 0.55in; font-style: normal;"&gt;&lt;br id="ax.h1365"&gt; &lt;/p&gt; &lt;p id="ax.h1366" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;br id="ax.h1367"&gt; &lt;/p&gt; &lt;p id="ax.h1368" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;br id="ax.h1369"&gt; &lt;/p&gt; &lt;p id="ax.h1370" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1371"&gt; &lt;/p&gt; &lt;p id="ax.h1372" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1373"&gt; &lt;/p&gt; &lt;p id="ax.h1374" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1375"&gt; &lt;/p&gt; &lt;p id="ax.h1376" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1377"&gt; &lt;/p&gt; &lt;h4 id="ax.h1378" class="western"&gt;&lt;a id="ax.h1379" name="cpconclassnamingguidelines"&gt;&lt;/a&gt;&lt;a id="ax.h1380" name="2.1.6.5.Class Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h1381" face="Times New Roman, serif"&gt;2.1.6.5Class Naming Guidelines&lt;/font&gt;&lt;/h4&gt; &lt;ul id="ax.h1382"&gt;&lt;li id="ax.h1383"&gt;&lt;p id="ax.h1384" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1385" face="Times New Roman, serif"&gt;&lt;font id="ax.h1386" size="2"&gt;Use 	a noun or noun phrase to name a class. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1387" class="western" style="margin-left: 0.8in; font-style: normal;"&gt; &lt;br id="ax.h1388"&gt; &lt;/p&gt; &lt;ul id="ax.h1389"&gt;&lt;li id="ax.h1390"&gt;&lt;p id="ax.h1391" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1392" face="Arial, sans-serif"&gt;&lt;font id="ax.h1393" size="2"&gt;&lt;font id="ax.h1394" face="Times New Roman, serif"&gt;Use 	&lt;b id="ax.h1395"&gt;Pascal case.&lt;/b&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1396" class="western" style="margin-left: 0.8in; font-style: normal;"&gt; &lt;br id="ax.h1397"&gt; &lt;/p&gt; &lt;ul id="ax.h1398"&gt;&lt;li id="ax.h1399"&gt;&lt;p id="ax.h1400" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1401" face="Times New Roman, serif"&gt;&lt;font id="ax.h1402" size="2"&gt;Use 	abbreviations sparingly. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1403" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1404"&gt; &lt;/p&gt; &lt;ul id="ax.h1405"&gt;&lt;li id="ax.h1406"&gt;&lt;p id="ax.h1407" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1408" face="Arial, sans-serif"&gt;&lt;font id="ax.h1409" size="2"&gt;&lt;font id="ax.h1410" face="Times New Roman, serif"&gt;Do 	not use a type prefix, such as C for class, on a class name. For 	example, use the class name &lt;b id="ax.h1411"&gt;FileStream&lt;/b&gt; rather than 	&lt;b id="ax.h1412"&gt;CFileStream&lt;/b&gt;. &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1413" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1414"&gt; &lt;/p&gt; &lt;ul id="ax.h1415"&gt;&lt;li id="ax.h1416"&gt;&lt;p id="ax.h1417" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1418" face="Times New Roman, serif"&gt;&lt;font id="ax.h1419" size="2"&gt;Do 	not use the underscore character (_).&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1420" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1421"&gt; &lt;/p&gt; &lt;ul id="ax.h1422"&gt;&lt;li id="ax.h1423"&gt;&lt;p id="ax.h1424" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1425" face="Arial, sans-serif"&gt;&lt;font id="ax.h1426" size="2"&gt;&lt;font id="ax.h1427" face="Times New Roman, serif"&gt;Where 	appropriate, use a compound word to name a derived class. The second 	part of the derived class&amp;#39;s name should be the name of the base 	class. Example : &lt;b id="ax.h1428"&gt;ApplicationException&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1429" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;span id="Frame13" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 1.01in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1430" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1431" face="Arial, sans-serif"&gt;&lt;font id="ax.h1432" size="2"&gt;&lt;b id="ax.h1433"&gt;public 	class FileStream&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1434" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1435"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1436" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1437" face="Arial, sans-serif"&gt;&lt;font id="ax.h1438" size="2"&gt;&lt;b id="ax.h1439"&gt;public 	class Button&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1440" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1441"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1442" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1443" face="Arial, sans-serif"&gt;&lt;font id="ax.h1444" size="2"&gt;&lt;b id="ax.h1445"&gt;public 	class String&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1446"&gt; &lt;/p&gt; &lt;p id="ax.h1447" class="western" style="margin-left: 0.8in; font-style: normal;"&gt; &lt;br id="ax.h1448"&gt; &lt;/p&gt; &lt;p id="ax.h1449" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1450"&gt; &lt;/p&gt; &lt;p id="ax.h1451" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1452"&gt; &lt;/p&gt; &lt;p id="ax.h1453" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1454"&gt; &lt;/p&gt; &lt;p id="ax.h1455" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1456"&gt; &lt;/p&gt; &lt;p id="ax.h1457" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1458"&gt; &lt;/p&gt; &lt;p id="ax.h1459" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1460"&gt; &lt;/p&gt; &lt;ul id="ax.h1461"&gt;&lt;li id="ax.h1462"&gt;&lt;p id="ax.h1463" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1464" face="Times New Roman, serif"&gt;&lt;font id="ax.h1465" size="2"&gt;Do 	not use the base word to access base class members unless you wish 	to resolve a conflict with subclasses member of the same name or 	when invoking base class constructors.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1466" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1467"&gt; &lt;/p&gt; &lt;p id="ax.h1468" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;span id="Frame14" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 2.97in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1469" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1470" face="Arial, sans-serif"&gt;&lt;font id="ax.h1471" size="2"&gt;&lt;b id="ax.h1472"&gt;public 	class Dog&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1473" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1474" face="Arial, sans-serif"&gt;&lt;font id="ax.h1475" size="2"&gt;&lt;b id="ax.h1476"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1477" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1478" face="Arial, sans-serif"&gt;&lt;font id="ax.h1479" size="2"&gt;&lt;b id="ax.h1480"&gt;					public 	Dog ( string name )&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1481" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1482" face="Arial, sans-serif"&gt;&lt;font id="ax.h1483" size="2"&gt;&lt;b id="ax.h1484"&gt;					{	}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1485" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1486" face="Arial, sans-serif"&gt;&lt;font id="ax.h1487" size="2"&gt;&lt;b id="ax.h1488"&gt;					virtual 	public void Bark ( int howLong )&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1489" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1490" face="Arial, sans-serif"&gt;&lt;font id="ax.h1491" size="2"&gt;&lt;b id="ax.h1492"&gt;					{}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1493" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1494" face="Arial, sans-serif"&gt;&lt;font id="ax.h1495" size="2"&gt;&lt;b id="ax.h1496"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1497" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1498"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1499" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1500" face="Arial, sans-serif"&gt;&lt;font id="ax.h1501" size="2"&gt;&lt;b id="ax.h1502"&gt;public 	class GermanShepherd : Dog&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1503" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1504" face="Arial, sans-serif"&gt;&lt;font id="ax.h1505" size="2"&gt;&lt;b id="ax.h1506"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1507" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1508" face="Arial, sans-serif"&gt;&lt;font id="ax.h1509" size="2"&gt;&lt;b id="ax.h1510"&gt;						public 	GermanShepherd( string name ) : base( name )&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1511" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1512" face="Arial, sans-serif"&gt;&lt;font id="ax.h1513" size="2"&gt;&lt;b id="ax.h1514"&gt;						{}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1515" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1516" face="Arial, sans-serif"&gt;&lt;font id="ax.h1517" size="2"&gt;&lt;b id="ax.h1518"&gt;						override 	public void Bark( int  howLong )&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1519" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1520" face="Arial, sans-serif"&gt;&lt;font id="ax.h1521" size="2"&gt;&lt;b id="ax.h1522"&gt;						{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1523" class="western" style="font-style: normal;"&gt;								&lt;font id="ax.h1524" face="Arial, sans-serif"&gt;&lt;font id="ax.h1525" size="2"&gt;	base.Bark( 	howLong )&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1526" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1527" face="Arial, sans-serif"&gt;&lt;font id="ax.h1528" size="2"&gt;&lt;b id="ax.h1529"&gt;						}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1530" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1531" face="Arial, sans-serif"&gt;&lt;font id="ax.h1532" size="2"&gt;&lt;b id="ax.h1533"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1534"&gt; &lt;/p&gt; &lt;p id="ax.h1535" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1536"&gt; &lt;/p&gt; &lt;p id="ax.h1537" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1538"&gt; &lt;/p&gt; &lt;p id="ax.h1539" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1540"&gt; &lt;/p&gt; &lt;p id="ax.h1541" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1542"&gt; &lt;/p&gt; &lt;p id="ax.h1543" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1544"&gt; &lt;/p&gt; &lt;p id="ax.h1545" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1546"&gt; &lt;/p&gt; &lt;p id="ax.h1547" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1548"&gt; &lt;/p&gt; &lt;p id="ax.h1549" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1550"&gt; &lt;/p&gt; &lt;p id="ax.h1551" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1552"&gt; &lt;/p&gt;  &lt;p id="ax.h1553" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1554"&gt; &lt;/p&gt; &lt;p id="ax.h1555" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1556"&gt; &lt;/p&gt; &lt;p id="ax.h1557" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1558"&gt; &lt;/p&gt; &lt;p id="ax.h1559" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1560"&gt; &lt;/p&gt; &lt;p id="ax.h1561" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1562"&gt; &lt;/p&gt; &lt;p id="ax.h1563" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1564"&gt; &lt;/p&gt; &lt;p id="ax.h1565" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1566"&gt; &lt;/p&gt; &lt;p id="ax.h1567" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1568"&gt; &lt;/p&gt; &lt;p id="ax.h1569" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1570"&gt; &lt;/p&gt; &lt;h4 id="ax.h1571" class="western"&gt;&lt;a id="ax.h1572" name="cpconinterfacenamingguidelines"&gt;&lt;/a&gt;&lt;a id="ax.h1573" name="2.1.6.6.Interface Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h1574" face="Times New Roman, serif"&gt;2.1.6.6Interface Naming Guidelines&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h1575" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1576"&gt; &lt;/p&gt; &lt;p id="ax.h1577" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1578" face="Times New Roman, serif"&gt;&lt;font id="ax.h1579" size="2"&gt;							The following rules outline the naming guidelines for interfaces:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h1580" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1581"&gt; &lt;/p&gt; &lt;ul id="ax.h1582"&gt;&lt;li id="ax.h1583"&gt;&lt;p id="ax.h1584" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1585" face="Times New Roman, serif"&gt;&lt;font id="ax.h1586" size="2"&gt;Name 	interfaces with nouns or noun phrases, or adjectives that describe 	behaviour.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1587" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;font id="ax.h1588" face="Times New Roman, serif"&gt;&lt;font id="ax.h1589" size="2"&gt;&lt;b id="ax.h1590"&gt;Example:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h1591" class="western" style="font-style: normal;"&gt;&lt;span id="Frame15" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 0.72in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1592" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1593" face="Arial, sans-serif"&gt;&lt;font id="ax.h1594" size="2"&gt;&lt;b id="ax.h1595"&gt;IComponent 																					// noun. &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1596" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1597" face="Arial, sans-serif"&gt;&lt;font id="ax.h1598" size="2"&gt;&lt;b id="ax.h1599"&gt;ICustomAttributeProvider 	 	//noun. &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1600" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1601" face="Arial, sans-serif"&gt;&lt;font id="ax.h1602" size="2"&gt;&lt;b id="ax.h1603"&gt;IPersistable 																					//adjective.&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1604"&gt; &lt;/p&gt; &lt;p id="ax.h1605" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1606"&gt; &lt;/p&gt; &lt;p id="ax.h1607" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1608"&gt; &lt;/p&gt; &lt;p id="ax.h1609" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1610"&gt; &lt;/p&gt; &lt;p id="ax.h1611" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1612"&gt; &lt;/p&gt; &lt;p id="ax.h1613" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1614"&gt; &lt;/p&gt; &lt;ul id="ax.h1615"&gt;&lt;li id="ax.h1616"&gt;&lt;p id="ax.h1617" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1618" face="Arial, sans-serif"&gt;&lt;font id="ax.h1619" size="2"&gt;&lt;font id="ax.h1620" face="Times New Roman, serif"&gt;Use 	&lt;b id="ax.h1621"&gt;Pascal case.&lt;/b&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1622" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;br id="ax.h1623"&gt; &lt;/p&gt; &lt;ul id="ax.h1624"&gt;&lt;li id="ax.h1625"&gt;&lt;p id="ax.h1626" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1627" face="Times New Roman, serif"&gt;&lt;font id="ax.h1628" size="2"&gt;Use 	abbreviations sparingly. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1629" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1630"&gt; &lt;/p&gt; &lt;ul id="ax.h1631"&gt;&lt;li id="ax.h1632"&gt;&lt;p id="ax.h1633" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1634" face="Arial, sans-serif"&gt;&lt;font id="ax.h1635" size="2"&gt;&lt;font id="ax.h1636" face="Times New Roman, serif"&gt;Prefix 	interface names with the letter &lt;b id="ax.h1637"&gt;I,&lt;/b&gt; to indicate that the type 	is an interface. &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1638" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1639"&gt; &lt;/p&gt; &lt;ul id="ax.h1640"&gt;&lt;li id="ax.h1641"&gt;&lt;p id="ax.h1642" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1643" face="Arial, sans-serif"&gt;&lt;font id="ax.h1644" size="2"&gt;&lt;font id="ax.h1645" face="Times New Roman, serif"&gt;Use 	similar names when you define a class/interface pair where the class 	is a standard implementation of the interface. The names should 	differ only by the letter&lt;b id="ax.h1646"&gt; I&lt;/b&gt; prefix on the interface name. &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1647" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1648"&gt; &lt;/p&gt; &lt;ul id="ax.h1649"&gt;&lt;li id="ax.h1650"&gt;&lt;p id="ax.h1651" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1652" face="Arial, sans-serif"&gt;&lt;font id="ax.h1653" size="2"&gt;&lt;font id="ax.h1654" face="Times New Roman, serif"&gt;Do 	not use the underscore character &lt;b id="ax.h1655"&gt;(_).&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1656" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1657"&gt; &lt;/p&gt; &lt;ul id="ax.h1658"&gt;&lt;li id="ax.h1659"&gt;&lt;p id="ax.h1660" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1661" face="Times New Roman, serif"&gt;&lt;font id="ax.h1662" size="2"&gt;Always 	user Interfaces.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1663" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1664"&gt; &lt;/p&gt; &lt;p id="ax.h1665" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;br id="ax.h1666"&gt; &lt;/p&gt; &lt;p id="ax.h1667" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;font id="ax.h1668" face="Times New Roman, serif"&gt;&lt;font id="ax.h1669" size="2"&gt;&lt;b id="ax.h1670"&gt;Example:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h1671" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1672" face="Times New Roman, serif"&gt;&lt;font id="ax.h1673" size="2"&gt;												The following are examples of correctly named interfaces.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h1674" class="western" style="font-style: normal;"&gt;&lt;span id="Frame16" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 0.76in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1675" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1676" face="Arial, sans-serif"&gt;&lt;font id="ax.h1677" size="2"&gt;public 	interface IServiceProvider&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1678" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1679"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1680" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1681" face="Arial, sans-serif"&gt;&lt;font id="ax.h1682" size="2"&gt;public 	interface IFormatable&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1683"&gt; &lt;/p&gt; &lt;p id="ax.h1684" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1685"&gt; &lt;/p&gt; &lt;p id="ax.h1686" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1687"&gt; &lt;/p&gt; &lt;p id="ax.h1688" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1689"&gt; &lt;/p&gt; &lt;p id="ax.h1690" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1691"&gt; &lt;/p&gt; &lt;p id="ax.h1692" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1693"&gt; &lt;/p&gt; &lt;p id="ax.h1694" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1695"&gt; &lt;/p&gt; &lt;p id="ax.h1696" class="western" style="margin-left: 0.81in; margin-top: 0.08in; margin-bottom: 0.17in; font-style: normal; line-height: 0.25in;"&gt; &lt;font id="ax.h1697" face="Arial, sans-serif"&gt;&lt;font id="ax.h1698" size="2"&gt;&lt;font id="ax.h1699" face="Times New Roman, serif"&gt;The following code example illustrates how to define the interface &lt;b id="ax.h1700"&gt;IComponent &lt;/b&gt;and its standard implementation, the class &lt;b id="ax.h1701"&gt;Component&lt;/b&gt;.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h1702" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1703"&gt; &lt;/p&gt; &lt;p id="ax.h1704" class="western" style="font-style: normal;"&gt;&lt;span id="Frame17" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 1.63in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1705" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1706" face="Arial, sans-serif"&gt;&lt;font id="ax.h1707" size="2"&gt;public 	interface IComponent&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1708" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1709" face="Arial, sans-serif"&gt;&lt;font id="ax.h1710" size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1711" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1712" face="Arial, sans-serif"&gt;&lt;font id="ax.h1713" size="2"&gt;				// 	Implementation goes here.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1714" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1715" face="Arial, sans-serif"&gt;&lt;font id="ax.h1716" size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1717" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1718"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1719" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1720" face="Arial, sans-serif"&gt;&lt;font id="ax.h1721" size="2"&gt;public 	class Component: IComponent &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1722" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1723" face="Arial, sans-serif"&gt;&lt;font id="ax.h1724" size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1725" class="western" style="font-style: normal;"&gt;   &lt;font id="ax.h1726" face="Arial, sans-serif"&gt;&lt;font id="ax.h1727" size="2"&gt;// 	Implementation code goes here.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1728" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1729" face="Arial, sans-serif"&gt;&lt;font id="ax.h1730" size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1731"&gt; &lt;/p&gt; &lt;p id="ax.h1732" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1733"&gt; &lt;/p&gt; &lt;p id="ax.h1734" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1735"&gt; &lt;/p&gt; &lt;p id="ax.h1736" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1737"&gt; &lt;/p&gt; &lt;p id="ax.h1738" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1739"&gt; &lt;/p&gt; &lt;p id="ax.h1740" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1741"&gt; &lt;/p&gt; &lt;p id="ax.h1742" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1743"&gt; &lt;/p&gt; &lt;p id="ax.h1744" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1745"&gt; &lt;/p&gt; &lt;p id="ax.h1746" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1747"&gt; &lt;/p&gt; &lt;p id="ax.h1748" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1749"&gt; &lt;/p&gt; &lt;p id="ax.h1750" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1751"&gt; &lt;/p&gt; &lt;p id="ax.h1752" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1753"&gt; &lt;/p&gt; &lt;ul id="ax.h1754"&gt;&lt;li id="ax.h1755"&gt;&lt;p id="ax.h1756" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1757" face="Times New Roman, serif"&gt;&lt;font id="ax.h1758" size="2"&gt;Classes 	and interfaces should have at least 2:1 ratio of methods to 	properties.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1759" class="western" style="margin-left: 0.55in; font-style: normal;"&gt;&lt;br id="ax.h1760"&gt; &lt;/p&gt; &lt;ul id="ax.h1761"&gt;&lt;li id="ax.h1762"&gt;&lt;p id="ax.h1763" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1764" face="Times New Roman, serif"&gt;&lt;font id="ax.h1765" size="2"&gt;Avoid 	interfaces with one method.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1766" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h1767"&gt; &lt;/p&gt; &lt;ul id="ax.h1768"&gt;&lt;li id="ax.h1769"&gt;&lt;p id="ax.h1770" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1771" face="Times New Roman, serif"&gt;&lt;font id="ax.h1772" size="2"&gt;No 	more than 20 members per interface.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1773" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h1774"&gt; &lt;/p&gt; &lt;ul id="ax.h1775"&gt;&lt;li id="ax.h1776"&gt;&lt;p id="ax.h1777" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1778" face="Times New Roman, serif"&gt;&lt;font id="ax.h1779" size="2"&gt;Avoid 	event as interface members.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1780" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h1781"&gt; &lt;/p&gt; &lt;ul id="ax.h1782"&gt;&lt;li id="ax.h1783"&gt;&lt;p id="ax.h1784" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1785" face="Times New Roman, serif"&gt;&lt;font id="ax.h1786" size="2"&gt;Avoid 	abstract methods, user interfaces instead.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;h4 id="ax.h1787" class="western"&gt;&lt;a id="ax.h1788" name="cpconattributenamingguidelines"&gt;&lt;/a&gt;&lt;a id="ax.h1789" name="2.1.6.7.Attribute Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h1790" face="Times New Roman, serif"&gt;2.1.6.7Attribute Naming Guidelines&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h1791" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1792"&gt; &lt;/p&gt; &lt;p id="ax.h1793" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h1794" face="Times New Roman, serif"&gt;&lt;font id="ax.h1795" size="2"&gt;You should always add the suffix Attribute to custom attribute classes.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h1796" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1797" face="Times New Roman, serif"&gt;&lt;font id="ax.h1798" size="2"&gt;&lt;b id="ax.h1799"&gt;Example:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h1800" class="western" style="font-style: normal;"&gt;&lt;span id="Frame18" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 0.38in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1801" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1802" face="Courier New, monospace"&gt;&lt;font id="ax.h1803" size="2"&gt;public 	class ObsoleteAttribute{}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1804" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h1805"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h1806"&gt; &lt;/p&gt; &lt;p id="ax.h1807" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1808"&gt; &lt;/p&gt; &lt;p id="ax.h1809" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1810"&gt; &lt;/p&gt; &lt;p id="ax.h1811" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1812"&gt; &lt;/p&gt; &lt;h4 id="ax.h1813" class="western"&gt;&lt;a id="ax.h1814" name="cpconenumerationtypenamingguidelines"&gt;&lt;/a&gt;&lt;a id="ax.h1815" name="2.1.6.8.Enumeration Type Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h1816" face="Times New Roman, serif"&gt;2.1.6.8Enumeration Type Naming Guidelines&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h1817" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h1818"&gt; &lt;/p&gt; &lt;ul id="ax.h1819"&gt;&lt;li id="ax.h1820"&gt;&lt;p id="ax.h1821" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1822" face="Times New Roman, serif"&gt;&lt;font id="ax.h1823" size="2"&gt;&lt;b id="ax.h1824"&gt;The 	enumeration (Enum) value type inherits from the Enum Class. &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;ul id="ax.h1825"&gt;&lt;li id="ax.h1826"&gt;&lt;p id="ax.h1827" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1828" face="Times New Roman, serif"&gt;&lt;font id="ax.h1829" size="2"&gt;Use 		Pascal case for Enum types and value names.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1830" class="western" style="margin-left: 1.05in; font-style: normal;"&gt;   &lt;/p&gt; &lt;ul id="ax.h1831"&gt;&lt;ul id="ax.h1832"&gt;&lt;li id="ax.h1833"&gt;&lt;p id="ax.h1834" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1835" face="Times New Roman, serif"&gt;&lt;font id="ax.h1836" size="2"&gt;Use 		abbreviations sparingly. &lt;/font&gt;&lt;/font&gt; 		&lt;/p&gt; 	&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt; &lt;p id="ax.h1837" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1838"&gt; &lt;/p&gt; &lt;ul id="ax.h1839"&gt;&lt;ul id="ax.h1840"&gt;&lt;li id="ax.h1841"&gt;&lt;p id="ax.h1842" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1843" face="Times New Roman, serif"&gt;&lt;font id="ax.h1844" size="2"&gt;Do 		not use an Enum suffix on Enum type names. &lt;/font&gt;&lt;/font&gt; 		&lt;/p&gt; 	&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt; &lt;p id="ax.h1845" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1846"&gt; &lt;/p&gt; &lt;ul id="ax.h1847"&gt;&lt;ul id="ax.h1848"&gt;&lt;li id="ax.h1849"&gt;&lt;p id="ax.h1850" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1851" face="Times New Roman, serif"&gt;&lt;font id="ax.h1852" size="2"&gt;Use 		a singular name for most Enum types, but use a plural name for Enum 		types that are bit fields. &lt;/font&gt;&lt;/font&gt; 		&lt;/p&gt; 	&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt; &lt;p id="ax.h1853" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1854"&gt; &lt;/p&gt; &lt;ul id="ax.h1855"&gt;&lt;ul id="ax.h1856"&gt;&lt;li id="ax.h1857"&gt;&lt;p id="ax.h1858" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1859" face="Times New Roman, serif"&gt;&lt;font id="ax.h1860" size="2"&gt;Always 		add the FlagsAttribute to a bit field Enum type. &lt;/font&gt;&lt;/font&gt; 		&lt;/p&gt; 	&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt; &lt;p id="ax.h1861" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h1862"&gt; &lt;/p&gt; &lt;p id="ax.h1863" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;font id="ax.h1864" face="Times New Roman, serif"&gt;&lt;font id="ax.h1865" size="2"&gt;&lt;b id="ax.h1866"&gt;Example:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h1867" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;font id="ax.h1868" face="Times New Roman, serif"&gt;&lt;font id="ax.h1869" size="2"&gt;&lt;b id="ax.h1870"&gt;	&lt;span id="Frame19" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.51in; height: 3.38in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h1871" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1872" face="Arial, sans-serif"&gt;&lt;font id="ax.h1873" size="2"&gt;&lt;b id="ax.h1874"&gt;Good:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1875" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1876" face="Arial, sans-serif"&gt;&lt;font id="ax.h1877" size="2"&gt;&lt;b id="ax.h1878"&gt;											public 	enum Color&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1879" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1880" face="Arial, sans-serif"&gt;&lt;font id="ax.h1881" size="2"&gt;&lt;b id="ax.h1882"&gt;											{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1883" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;																&lt;font id="ax.h1884" face="Arial, sans-serif"&gt;&lt;font id="ax.h1885" size="2"&gt;Red, 	Green, Blue&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1886" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1887" face="Arial, sans-serif"&gt;&lt;font id="ax.h1888" size="2"&gt;&lt;b id="ax.h1889"&gt;											}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1890" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h1891"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1892" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1893" face="Arial, sans-serif"&gt;&lt;font id="ax.h1894" size="2"&gt;&lt;b id="ax.h1895"&gt;Not 	Good:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1896" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;											&lt;/p&gt; 	&lt;p id="ax.h1897" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1898" face="Arial, sans-serif"&gt;&lt;font id="ax.h1899" size="2"&gt;&lt;b id="ax.h1900"&gt;												Public 	enum Color&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1901" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1902" face="Arial, sans-serif"&gt;&lt;font id="ax.h1903" size="2"&gt;&lt;b id="ax.h1904"&gt;												{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1905" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;															&lt;font id="ax.h1906" face="Arial, sans-serif"&gt;&lt;font id="ax.h1907" size="2"&gt;Red 	= 1, Green = 2, Blue = 3&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1908" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1909" face="Arial, sans-serif"&gt;&lt;font id="ax.h1910" size="2"&gt;&lt;b id="ax.h1911"&gt;												}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1912" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h1913"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1914" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1915" face="Arial, sans-serif"&gt;&lt;font id="ax.h1916" size="2"&gt;&lt;b id="ax.h1917"&gt;	Specifying 	type for an enum&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1918" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h1919"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h1920" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1921" face="Arial, sans-serif"&gt;&lt;font id="ax.h1922" size="2"&gt;&lt;b id="ax.h1923"&gt;	Not 	Good:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1924" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1925" face="Arial, sans-serif"&gt;&lt;font id="ax.h1926" size="2"&gt;&lt;b id="ax.h1927"&gt;													public 	enum Color : long														&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1928" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1929" face="Arial, sans-serif"&gt;&lt;font id="ax.h1930" size="2"&gt;&lt;b id="ax.h1931"&gt;													{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1932" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;																	&lt;font id="ax.h1933" face="Arial, sans-serif"&gt;&lt;font id="ax.h1934" size="2"&gt;Red, 	Green, Blue&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h1935" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h1936" face="Arial, sans-serif"&gt;&lt;font id="ax.h1937" size="2"&gt;&lt;b id="ax.h1938"&gt;														}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;									&lt;/b&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h1939" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1940"&gt; &lt;/p&gt; &lt;p id="ax.h1941" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1942"&gt; &lt;/p&gt; &lt;p id="ax.h1943" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1944"&gt; &lt;/p&gt; &lt;p id="ax.h1945" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1946"&gt; &lt;/p&gt; &lt;p id="ax.h1947" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1948"&gt; &lt;/p&gt; &lt;p id="ax.h1949" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1950"&gt; &lt;/p&gt; &lt;p id="ax.h1951" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1952"&gt; &lt;/p&gt; &lt;p id="ax.h1953" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1954"&gt; &lt;/p&gt; &lt;p id="ax.h1955" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1956"&gt; &lt;/p&gt; &lt;p id="ax.h1957" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1958"&gt; &lt;/p&gt; &lt;p id="ax.h1959" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1960"&gt; &lt;/p&gt; &lt;p id="ax.h1961" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1962"&gt; &lt;/p&gt; &lt;p id="ax.h1963" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1964"&gt; &lt;/p&gt; &lt;p id="ax.h1965" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1966"&gt; &lt;/p&gt; &lt;p id="ax.h1967" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1968"&gt; &lt;/p&gt; &lt;p id="ax.h1969" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1970"&gt; &lt;/p&gt; &lt;p id="ax.h1971" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1972"&gt; &lt;/p&gt; &lt;p id="ax.h1973" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1974"&gt; &lt;/p&gt; &lt;p id="ax.h1975" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1976"&gt; &lt;/p&gt; &lt;p id="ax.h1977" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1978"&gt; &lt;/p&gt; &lt;p id="ax.h1979" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1980"&gt; &lt;/p&gt; &lt;p id="ax.h1981" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h1982"&gt; &lt;/p&gt; &lt;h4 id="ax.h1983" class="western"&gt;&lt;a id="ax.h1984" name="cpconstaticfieldnamingguidelines"&gt;&lt;/a&gt;&lt;a id="ax.h1985" name="2.1.6.9.Static Field Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h1986" face="Times New Roman, serif"&gt;2.1.6.9Static Field Naming Guidelines&lt;/font&gt;&lt;/h4&gt; &lt;ul id="ax.h1987"&gt;&lt;li id="ax.h1988"&gt;&lt;p id="ax.h1989" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1990" face="Times New Roman, serif"&gt;&lt;font id="ax.h1991" size="2"&gt;&lt;b id="ax.h1992"&gt;Naming 	guidelines for static fields:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h1993" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;br id="ax.h1994"&gt; &lt;/p&gt; &lt;ul id="ax.h1995"&gt;&lt;ul id="ax.h1996"&gt;&lt;li id="ax.h1997"&gt;&lt;p id="ax.h1998" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h1999" face="Times New Roman, serif"&gt;&lt;font id="ax.h2000" size="2"&gt;Use 		nouns, noun phrases, or abbreviations of nouns to name static 		fields. &lt;/font&gt;&lt;/font&gt; 		&lt;/p&gt; 	&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt; &lt;p id="ax.h2001" class="western" style="margin-left: 1.05in; font-style: normal;"&gt; &lt;br id="ax.h2002"&gt; &lt;/p&gt; &lt;ul id="ax.h2003"&gt;&lt;ul id="ax.h2004"&gt;&lt;li id="ax.h2005"&gt;&lt;p id="ax.h2006" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2007" face="Times New Roman, serif"&gt;&lt;font id="ax.h2008" size="2"&gt;Use 		Pascal case. &lt;/font&gt;&lt;/font&gt; 		&lt;/p&gt; 	&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt; &lt;p id="ax.h2009" class="western" style="margin-left: 1.05in; font-style: normal;"&gt; &lt;br id="ax.h2010"&gt; &lt;/p&gt; &lt;ul id="ax.h2011"&gt;&lt;ul id="ax.h2012"&gt;&lt;li id="ax.h2013"&gt;&lt;p id="ax.h2014" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2015" face="Times New Roman, serif"&gt;&lt;font id="ax.h2016" size="2"&gt;Do 		not use a Hungarian notation prefix on static field names. &lt;/font&gt;&lt;/font&gt; 		&lt;/p&gt; 	&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt; &lt;p id="ax.h2017" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2018"&gt; &lt;/p&gt; &lt;ul id="ax.h2019"&gt;&lt;ul id="ax.h2020"&gt;&lt;li id="ax.h2021"&gt;&lt;p id="ax.h2022" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2023" face="Times New Roman, serif"&gt;&lt;font id="ax.h2024" size="2"&gt;It 		is recommended that you use static properties instead of public 		static fields whenever possible.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt; &lt;p id="ax.h2025" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h2026"&gt; &lt;/p&gt; &lt;p id="ax.h2027" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2028" face="Times New Roman, serif"&gt;&lt;font id="ax.h2029" size="2"&gt;&lt;b id="ax.h2030"&gt;								Example:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h2031" class="western" style="font-style: normal;"&gt;&lt;span id="Frame20" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.65in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h2032" class="western" style="margin-left: 0.45in; font-style: normal;"&gt;&lt;font id="ax.h2033" face="Univers-Light, Arial, sans-serif"&gt;&lt;font id="ax.h2034" size="2"&gt;&lt;b id="ax.h2035"&gt;							public 	static int  Global1 = 100;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2036" class="western" style="margin-left: 0.45in; font-style: normal;"&gt;&lt;br id="ax.h2037"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2038" class="western" style="margin-left: 0.45in; font-style: normal;"&gt;&lt;font id="ax.h2039" face="Univers-Light, Arial, sans-serif"&gt;&lt;font id="ax.h2040" size="2"&gt;&lt;b id="ax.h2041"&gt;							public 	static int  Global1 = 200;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2042" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h2043"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h2044"&gt; &lt;/p&gt; &lt;p id="ax.h2045" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2046"&gt; &lt;/p&gt; &lt;h4 id="ax.h2047" class="western"&gt;&lt;a id="ax.h2048" name="cpconparameternamingguidelines"&gt;&lt;/a&gt;&lt;a id="ax.h2049" name="2.1.6.10.Parameter Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h2050" face="Times New Roman, serif"&gt;2.1.6.10Parameter Naming Guidelines&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h2051" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;br id="ax.h2052"&gt; &lt;/p&gt; &lt;p id="ax.h2053" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;font id="ax.h2054" face="Times New Roman, serif"&gt;&lt;font id="ax.h2055" size="2"&gt;It is important to carefully follow these parameter naming guidelines because visual design tools that provide context sensitive help and class browsing functionality display method parameter names to users in the designer.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h2056" class="western" style="margin-left: 0.55in; font-style: normal;"&gt; &lt;br id="ax.h2057"&gt; &lt;/p&gt; &lt;ul id="ax.h2058"&gt;&lt;li id="ax.h2059"&gt;&lt;p id="ax.h2060" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2061" face="Times New Roman, serif"&gt;&lt;font id="ax.h2062" size="2"&gt;Use 	camel case for parameter names.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2063" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2064"&gt; &lt;/p&gt; &lt;ul id="ax.h2065"&gt;&lt;li id="ax.h2066"&gt;&lt;p id="ax.h2067" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2068" face="Times New Roman, serif"&gt;&lt;font id="ax.h2069" size="2"&gt;Use 	descriptive parameter names. Parameter names should be descriptive 	enough that the name of the parameter and its type can be used to 	determine its meaning in most scenarios. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2070" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2071"&gt; &lt;/p&gt; &lt;ul id="ax.h2072"&gt;&lt;li id="ax.h2073"&gt;&lt;p id="ax.h2074" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2075" face="Times New Roman, serif"&gt;&lt;font id="ax.h2076" size="2"&gt;Use 	names that describe a parameter&amp;#39;s meaning rather than names that 	describe a parameter&amp;#39;s type. Development tools should provide 	meaningful information about a parameter&amp;#39;s type. Therefore, a 	parameter&amp;#39;s name can be put to better use by describing meaning. Use 	type-based parameter names sparingly and only where it is 	appropriate.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2077" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2078"&gt; &lt;/p&gt; &lt;ul id="ax.h2079"&gt;&lt;li id="ax.h2080"&gt;&lt;p id="ax.h2081" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2082" face="Times New Roman, serif"&gt;&lt;font id="ax.h2083" size="2"&gt;Do 	not use reserved parameters. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2084" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2085"&gt; &lt;/p&gt; &lt;ul id="ax.h2086"&gt;&lt;li id="ax.h2087"&gt;&lt;p id="ax.h2088" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2089" face="Times New Roman, serif"&gt;&lt;font id="ax.h2090" size="2"&gt;Do 	not prefix parameter names with Hungarian type notation.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2091" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2092"&gt; &lt;/p&gt; &lt;p id="ax.h2093" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2094" face="Arial, sans-serif"&gt;&lt;font id="ax.h2095" size="2"&gt;&lt;font id="ax.h2096" face="Times New Roman, serif"&gt;&lt;b id="ax.h2097"&gt;							Example:&lt;/b&gt;  correctly named parameters&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h2098" class="western" style="font-style: normal;"&gt;	&lt;font id="ax.h2099" face="Times New Roman, serif"&gt;&lt;font id="ax.h2100" size="2"&gt;&lt;b id="ax.h2101"&gt;	&lt;span id="Frame21" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.76in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h2102" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h2103" face="Courier New, monospace"&gt;&lt;font id="ax.h2104" size="2"&gt;&lt;b id="ax.h2105"&gt;Type 	GetType(string typeName)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2106" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h2107"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2108" class="western" style="margin-left: 0.45in; font-style: normal;"&gt;&lt;font id="ax.h2109" face="Arial, sans-serif"&gt;&lt;font id="ax.h2110" size="2"&gt;&lt;font id="ax.h2111" size="3"&gt;&lt;font id="ax.h2112" face="Times New Roman, serif"&gt;&lt;font id="ax.h2113" color="#000000"&gt;					&lt;b id="ax.h2114"&gt;string 	Format(string format, object[] args)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2115" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h2116"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2117" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h2118"&gt; 	&lt;/p&gt; &lt;/span&gt;		&lt;/b&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h2119" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2120"&gt; &lt;/p&gt; &lt;p id="ax.h2121" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2122"&gt; &lt;/p&gt; &lt;p id="ax.h2123" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2124"&gt; &lt;/p&gt; &lt;p id="ax.h2125" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2126"&gt; &lt;/p&gt; &lt;p id="ax.h2127" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2128"&gt; &lt;/p&gt; &lt;p id="ax.h2129" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2130"&gt; &lt;/p&gt; &lt;h4 id="ax.h2131" class="western"&gt;&lt;a id="ax.h2132" name="cpconmethodnamingguidelines"&gt;&lt;/a&gt;&lt;a id="ax.h2133" name="2.1.6.11.Method Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h2134" face="Times New Roman, serif"&gt;2.1.6.11Method Naming Guidelines&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h2135" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;&lt;font id="ax.h2136" face="Times New Roman, serif"&gt;&lt;font id="ax.h2137" size="2"&gt;&lt;b id="ax.h2138"&gt;The following rules outline the naming guidelines for methods: &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h2139" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2140"&gt; &lt;/p&gt; &lt;ul id="ax.h2141"&gt;&lt;li id="ax.h2142"&gt;&lt;p id="ax.h2143" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2144" face="Times New Roman, serif"&gt;&lt;font id="ax.h2145" size="2"&gt;Use 	verbs or verb phrases to name methods. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2146" class="western" style="margin-left: 0.8in; font-style: normal;"&gt;&lt;br id="ax.h2147"&gt; &lt;/p&gt; &lt;ul id="ax.h2148"&gt;&lt;li id="ax.h2149"&gt;&lt;p id="ax.h2150" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2151" face="Arial, sans-serif"&gt;&lt;font id="ax.h2152" size="2"&gt;&lt;font id="ax.h2153" face="Times New Roman, serif"&gt;Use 	&lt;b id="ax.h2154"&gt;Pascal case&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2155" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h2156"&gt; &lt;/p&gt; &lt;p id="ax.h2157" class="western" style="margin-left: 0.8in; font-style: normal;"&gt;&lt;font id="ax.h2158" face="Arial, sans-serif"&gt;&lt;font id="ax.h2159" size="2"&gt;&lt;font id="ax.h2160" face="Times New Roman, serif"&gt;&lt;b id="ax.h2161"&gt;Examples: &lt;/b&gt;Correctly named methods.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h2162" class="western" style="margin-left: 0.8in; font-style: normal;"&gt;&lt;br id="ax.h2163"&gt; &lt;/p&gt; &lt;p id="ax.h2164" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;span id="Frame22" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.9in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h2165" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h2166" face="Univers-Light, Arial, sans-serif"&gt;&lt;font id="ax.h2167" size="2"&gt;&lt;b id="ax.h2168"&gt;RemoveAll()&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  	&lt;p id="ax.h2169" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h2170"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2171" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h2172" face="Univers-Light, Arial, sans-serif"&gt;&lt;font id="ax.h2173" size="2"&gt;&lt;b id="ax.h2174"&gt;GetCharArray()&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  	&lt;p id="ax.h2175" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h2176"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2177" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h2178" face="Univers-Light, Arial, sans-serif"&gt;&lt;font id="ax.h2179" size="2"&gt;&lt;b id="ax.h2180"&gt;Invoke()&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h2181"&gt; &lt;/p&gt; &lt;p id="ax.h2182" class="western" style="margin-left: 0.8in; font-style: normal;"&gt;&lt;br id="ax.h2183"&gt; &lt;/p&gt; &lt;p id="ax.h2184" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2185"&gt; &lt;/p&gt; &lt;p id="ax.h2186" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2187"&gt; &lt;/p&gt; &lt;p id="ax.h2188" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2189"&gt; &lt;/p&gt; &lt;p id="ax.h2190" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2191"&gt; &lt;/p&gt; &lt;p id="ax.h2192" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2193"&gt; &lt;/p&gt; &lt;p id="ax.h2194" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2195"&gt; &lt;/p&gt; &lt;h4 id="ax.h2196" class="western"&gt;&lt;a id="ax.h2197" name="cpconpropertynamingguidelines"&gt;&lt;/a&gt;&lt;a id="ax.h2198" name="2.1.6.12.Property Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h2199" face="Times New Roman, serif"&gt;2.1.6.12Property Naming Guidelines&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h2200" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;font id="ax.h2201" face="Times New Roman, serif"&gt;&lt;font id="ax.h2202" size="2"&gt;&lt;b id="ax.h2203"&gt;The following rules outline the naming guidelines for properties:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h2204" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h2205"&gt; &lt;/p&gt; &lt;ul id="ax.h2206"&gt;&lt;li id="ax.h2207"&gt;&lt;p id="ax.h2208" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2209" face="Arial, sans-serif"&gt;&lt;font id="ax.h2210" size="2"&gt;&lt;font id="ax.h2211" face="Times New Roman, serif"&gt;Use 	a &lt;b id="ax.h2212"&gt;noun&lt;/b&gt; or &lt;b id="ax.h2213"&gt;noun phrase&lt;/b&gt; to name properties.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2214" class="western" style="margin-left: 0.85in; font-style: normal;"&gt; &lt;br id="ax.h2215"&gt; &lt;/p&gt; &lt;ul id="ax.h2216"&gt;&lt;li id="ax.h2217"&gt;&lt;p id="ax.h2218" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2219" face="Arial, sans-serif"&gt;&lt;font id="ax.h2220" size="2"&gt;&lt;font id="ax.h2221" face="Times New Roman, serif"&gt;Use 	&lt;b id="ax.h2222"&gt;Pascal case&lt;/b&gt;.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2223" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2224"&gt; &lt;/p&gt; &lt;ul id="ax.h2225"&gt;&lt;li id="ax.h2226"&gt;&lt;p id="ax.h2227" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2228" face="Arial, sans-serif"&gt;&lt;font id="ax.h2229" size="2"&gt;&lt;font id="ax.h2230" face="Times New Roman, serif"&gt;Do 	not use &lt;b id="ax.h2231"&gt;Hungarian&lt;/b&gt; notation.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2232" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2233"&gt; &lt;/p&gt; &lt;ul id="ax.h2234"&gt;&lt;li id="ax.h2235"&gt;&lt;p id="ax.h2236" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2237" face="Times New Roman, serif"&gt;&lt;font id="ax.h2238" size="2"&gt;Consider 	creating a property with the same name as its underlying type. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2239" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2240"&gt; &lt;/p&gt; &lt;p id="ax.h2241" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;font id="ax.h2242" face="Times New Roman, serif"&gt;&lt;font id="ax.h2243" size="2"&gt;&lt;b id="ax.h2244"&gt;Example:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h2245" class="western" style="font-style: normal;"&gt;&lt;span id="Frame23" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 6.69in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h2246" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2247" face="Arial, sans-serif"&gt;&lt;font id="ax.h2248" size="2"&gt;&lt;b id="ax.h2249"&gt;Good:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2250" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2251"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2252" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2253" face="Arial, sans-serif"&gt;&lt;font id="ax.h2254" size="2"&gt;&lt;b id="ax.h2255"&gt;	1)								public 	class smapleClass&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2256" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2257" face="Arial, sans-serif"&gt;&lt;font id="ax.h2258" size="2"&gt;&lt;b id="ax.h2259"&gt;											{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2260" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2261" face="Arial, sans-serif"&gt;&lt;font id="ax.h2262" size="2"&gt;&lt;b id="ax.h2263"&gt;														public 	color BackColor&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2264" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2265" face="Arial, sans-serif"&gt;&lt;font id="ax.h2266" size="2"&gt;&lt;b id="ax.h2267"&gt;														{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2268" class="western" style="font-style: normal;"&gt;																		&lt;font id="ax.h2269" face="Arial, sans-serif"&gt;&lt;font id="ax.h2270" size="2"&gt;	//Code 	for get and set assessors goes here.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2271" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2272" face="Arial, sans-serif"&gt;&lt;font id="ax.h2273" size="2"&gt;&lt;b id="ax.h2274"&gt;															}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2275" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2276" face="Arial, sans-serif"&gt;&lt;font id="ax.h2277" size="2"&gt;&lt;b id="ax.h2278"&gt;												}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2279" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2280"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2281" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2282" face="Arial, sans-serif"&gt;&lt;font id="ax.h2283" size="2"&gt;&lt;b id="ax.h2284"&gt;2)&lt;/b&gt; 						&lt;b id="ax.h2285"&gt;Providing a property with the same name as a 	type.&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2286" class="western" style="font-style: normal;"&gt;									&lt;/p&gt; 	&lt;p id="ax.h2287" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2288" face="Arial, sans-serif"&gt;&lt;font id="ax.h2289" size="2"&gt;&lt;b id="ax.h2290"&gt;											public 	enum Color &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2291" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2292" face="Arial, sans-serif"&gt;&lt;font id="ax.h2293" size="2"&gt;&lt;b id="ax.h2294"&gt;											{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2295" class="western" style="font-style: normal;"&gt;  											&lt;font id="ax.h2296" face="Arial, sans-serif"&gt;&lt;font id="ax.h2297" size="2"&gt;	// 	Insert code for Enum here.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2298" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2299" face="Arial, sans-serif"&gt;&lt;font id="ax.h2300" size="2"&gt;&lt;b id="ax.h2301"&gt;											}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2302" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2303" face="Arial, sans-serif"&gt;&lt;font id="ax.h2304" size="2"&gt;&lt;b id="ax.h2305"&gt;											public 	class Control &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2306" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2307" face="Arial, sans-serif"&gt;&lt;font id="ax.h2308" size="2"&gt;&lt;b id="ax.h2309"&gt;											{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2310" class="western" style="font-style: normal;"&gt;  &lt;font id="ax.h2311" face="Arial, sans-serif"&gt;&lt;font id="ax.h2312" size="2"&gt;&lt;b id="ax.h2313"&gt;													 	public Color Color &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2314" class="western" style="font-style: normal;"&gt;   &lt;font id="ax.h2315" face="Arial, sans-serif"&gt;&lt;font id="ax.h2316" size="2"&gt;&lt;b id="ax.h2317"&gt;													{ 	&lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2318" class="western" style="margin-left: 1.05in; font-style: normal;"&gt;  	    &lt;font id="ax.h2319" face="Arial, sans-serif"&gt;&lt;font id="ax.h2320" size="2"&gt;get {// Insert code 	here.} &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2321" class="western" style="margin-left: 1.25in; font-style: normal;"&gt; 	&lt;font id="ax.h2322" face="Arial, sans-serif"&gt;&lt;font id="ax.h2323" size="2"&gt;set {// Insert code 	here.} &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2324" class="western" style="font-style: normal;"&gt;   &lt;font id="ax.h2325" face="Arial, sans-serif"&gt;&lt;font id="ax.h2326" size="2"&gt;&lt;b id="ax.h2327"&gt;													}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2328" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2329" face="Arial, sans-serif"&gt;&lt;font id="ax.h2330" size="2"&gt;&lt;b id="ax.h2331"&gt;													}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2332" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2333"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2334" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2335" face="Arial, sans-serif"&gt;&lt;font id="ax.h2336" size="2"&gt;&lt;b id="ax.h2337"&gt;Not 	Good:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2338" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;&lt;font id="ax.h2339" face="Arial, sans-serif"&gt;&lt;font id="ax.h2340" size="2"&gt;&lt;b id="ax.h2341"&gt;											public 	enum Color &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2342" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;&lt;font id="ax.h2343" face="Arial, sans-serif"&gt;&lt;font id="ax.h2344" size="2"&gt;&lt;b id="ax.h2345"&gt;											{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2346" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;														&lt;font id="ax.h2347" face="Arial, sans-serif"&gt;&lt;font id="ax.h2348" size="2"&gt;	// 	Insert code for Enum here.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2349" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;&lt;font id="ax.h2350" face="Arial, sans-serif"&gt;&lt;font id="ax.h2351" size="2"&gt;&lt;b id="ax.h2352"&gt;											}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2353" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;&lt;font id="ax.h2354" face="Arial, sans-serif"&gt;&lt;font id="ax.h2355" size="2"&gt;&lt;b id="ax.h2356"&gt;											public 	class Control &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2357" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;&lt;font id="ax.h2358" face="Arial, sans-serif"&gt;&lt;font id="ax.h2359" size="2"&gt;&lt;b id="ax.h2360"&gt;											{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2361" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;   	&lt;font id="ax.h2362" face="Arial, sans-serif"&gt;&lt;font id="ax.h2363" size="2"&gt;&lt;b id="ax.h2364"&gt;												public 	int Color &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2365" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;   	&lt;font id="ax.h2366" face="Arial, sans-serif"&gt;&lt;font id="ax.h2367" size="2"&gt;&lt;b id="ax.h2368"&gt;												{ &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2369" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;   	   												&lt;font id="ax.h2370" face="Arial, sans-serif"&gt;&lt;font id="ax.h2371" size="2"&gt;	get 	{// Insert code here.} &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2372" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;   	   &lt;font id="ax.h2373" face="Arial, sans-serif"&gt;&lt;font id="ax.h2374" size="2"&gt;													set {// 	Insert code here.}  &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2375" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;  	&lt;font id="ax.h2376" face="Arial, sans-serif"&gt;&lt;font id="ax.h2377" size="2"&gt;&lt;b id="ax.h2378"&gt;												}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2379" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;&lt;font id="ax.h2380" face="Arial, sans-serif"&gt;&lt;font id="ax.h2381" size="2"&gt;&lt;b id="ax.h2382"&gt;											}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2383" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;&lt;br id="ax.h2384"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2385" class="western" style="margin-left: 0.6in; font-style: normal;"&gt;&lt;font id="ax.h2386" face="Arial, sans-serif"&gt;&lt;font id="ax.h2387" size="2"&gt;This 	is incorrect because the property &lt;b id="ax.h2388"&gt;Color &lt;/b&gt;is of type &lt;b id="ax.h2389"&gt;Integer.&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2390" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2391"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h2392"&gt; &lt;/p&gt; &lt;p id="ax.h2393" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2394"&gt; &lt;/p&gt; &lt;p id="ax.h2395" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2396"&gt; &lt;/p&gt; &lt;p id="ax.h2397" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2398"&gt; &lt;/p&gt; &lt;p id="ax.h2399" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2400"&gt; &lt;/p&gt; &lt;p id="ax.h2401" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2402"&gt; &lt;/p&gt; &lt;p id="ax.h2403" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2404"&gt; &lt;/p&gt; &lt;p id="ax.h2405" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2406"&gt; &lt;/p&gt; &lt;p id="ax.h2407" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2408"&gt; &lt;/p&gt; &lt;p id="ax.h2409" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2410"&gt; &lt;/p&gt; &lt;p id="ax.h2411" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2412"&gt; &lt;/p&gt; &lt;p id="ax.h2413" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2414"&gt; &lt;/p&gt; &lt;p id="ax.h2415" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2416"&gt; &lt;/p&gt; &lt;p id="ax.h2417" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2418"&gt; &lt;/p&gt; &lt;p id="ax.h2419" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2420"&gt; &lt;/p&gt; &lt;p id="ax.h2421" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2422"&gt; &lt;/p&gt; &lt;p id="ax.h2423" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2424"&gt; &lt;/p&gt; &lt;p id="ax.h2425" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2426"&gt; &lt;/p&gt; &lt;p id="ax.h2427" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2428"&gt; &lt;/p&gt; &lt;p id="ax.h2429" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2430"&gt; &lt;/p&gt; &lt;p id="ax.h2431" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2432"&gt; &lt;/p&gt; &lt;p id="ax.h2433" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2434"&gt; &lt;/p&gt; &lt;p id="ax.h2435" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2436"&gt; &lt;/p&gt; &lt;p id="ax.h2437" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2438"&gt; &lt;/p&gt; &lt;p id="ax.h2439" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2440"&gt; &lt;/p&gt; &lt;p id="ax.h2441" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2442"&gt; &lt;/p&gt; &lt;p id="ax.h2443" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2444"&gt; &lt;/p&gt; &lt;p id="ax.h2445" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2446"&gt; &lt;/p&gt; &lt;p id="ax.h2447" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2448"&gt; &lt;/p&gt; &lt;p id="ax.h2449" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2450"&gt; &lt;/p&gt; &lt;p id="ax.h2451" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2452"&gt; &lt;/p&gt; &lt;p id="ax.h2453" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2454"&gt; &lt;/p&gt; &lt;p id="ax.h2455" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2456"&gt; &lt;/p&gt; &lt;p id="ax.h2457" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2458"&gt; &lt;/p&gt; &lt;p id="ax.h2459" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2460"&gt; &lt;/p&gt; &lt;p id="ax.h2461" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2462"&gt; &lt;/p&gt; &lt;p id="ax.h2463" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2464"&gt; &lt;/p&gt; &lt;p id="ax.h2465" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2466"&gt; &lt;/p&gt; &lt;p id="ax.h2467" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2468"&gt; &lt;/p&gt; &lt;p id="ax.h2469" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2470"&gt; &lt;/p&gt; &lt;p id="ax.h2471" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2472"&gt; &lt;/p&gt; &lt;p id="ax.h2473" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2474"&gt; &lt;/p&gt; &lt;p id="ax.h2475" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2476"&gt; &lt;/p&gt; &lt;p id="ax.h2477" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2478"&gt; &lt;/p&gt; &lt;h4 id="ax.h2479" class="western"&gt;&lt;a id="ax.h2480" name="cpconeventnamingguidelines"&gt;&lt;/a&gt;&lt;a id="ax.h2481" name="2.1.6.13.Event Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h2482" face="Times New Roman, serif"&gt;2.1.6.13Event Naming Guidelines&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h2483" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2484"&gt; &lt;/p&gt; &lt;p id="ax.h2485" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;font id="ax.h2486" face="Times New Roman, serif"&gt;&lt;font id="ax.h2487" size="2"&gt;&lt;b id="ax.h2488"&gt;The naming guidelines for events:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;ul id="ax.h2489"&gt;&lt;li id="ax.h2490"&gt;&lt;p id="ax.h2491" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2492" face="Arial, sans-serif"&gt;&lt;font id="ax.h2493" size="2"&gt;&lt;font id="ax.h2494" face="Times New Roman, serif"&gt;	Use 	&lt;b id="ax.h2495"&gt;Pascal case.&lt;/b&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2496" class="western" style="margin-left: 0.65in; font-style: normal;"&gt; &lt;br id="ax.h2497"&gt; &lt;/p&gt; &lt;ul id="ax.h2498"&gt;&lt;li id="ax.h2499"&gt;&lt;p id="ax.h2500" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2501" face="Times New Roman, serif"&gt;&lt;font id="ax.h2502" size="2"&gt;	Do 	not use Hungarian notation.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2503" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2504"&gt; &lt;/p&gt; &lt;ul id="ax.h2505"&gt;&lt;li id="ax.h2506"&gt;&lt;p id="ax.h2507" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2508" face="Arial, sans-serif"&gt;&lt;font id="ax.h2509" size="2"&gt;&lt;font id="ax.h2510" face="Times New Roman, serif"&gt;Use 	an &lt;b id="ax.h2511"&gt;EventHandler&lt;/b&gt; suffix on event handler names.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2512" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2513"&gt; &lt;/p&gt; &lt;ul id="ax.h2514"&gt;&lt;li id="ax.h2515"&gt;&lt;p id="ax.h2516" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2517" face="Arial, sans-serif"&gt;&lt;font id="ax.h2518" size="2"&gt;&lt;font id="ax.h2519" face="Times New Roman, serif"&gt;Specify 	two parameters named &lt;b id="ax.h2520"&gt;sender&lt;/b&gt; and &lt;b id="ax.h2521"&gt;e.&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2522" class="western" style="margin-left: 0.65in; font-style: normal;"&gt; &lt;br id="ax.h2523"&gt; &lt;/p&gt; &lt;ul id="ax.h2524"&gt;&lt;ul id="ax.h2525"&gt;&lt;li id="ax.h2526"&gt;&lt;p id="ax.h2527" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2528" face="Arial, sans-serif"&gt;&lt;font id="ax.h2529" size="2"&gt;&lt;font id="ax.h2530" face="Times New Roman, serif"&gt;The 		&lt;b id="ax.h2531"&gt;sender&lt;/b&gt; parameter represents the object that raised the 		event. The sender parameter is always of 		type &lt;b id="ax.h2532"&gt;object&lt;/b&gt;.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt; &lt;p id="ax.h2533" class="western" style="margin-left: 1.15in; font-style: normal;"&gt; &lt;br id="ax.h2534"&gt; &lt;/p&gt; &lt;ul id="ax.h2535"&gt;&lt;ul id="ax.h2536"&gt;&lt;li id="ax.h2537"&gt;&lt;p id="ax.h2538" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2539" face="Arial, sans-serif"&gt;&lt;font id="ax.h2540" size="2"&gt;&lt;font id="ax.h2541" face="Times New Roman, serif"&gt;The 		state associated with the event is encapsulated in an instance of 		an event class named &lt;b id="ax.h2542"&gt;e&lt;/b&gt;. Use an appropriate and specific 		event class for the&lt;b id="ax.h2543"&gt; e&lt;/b&gt; parameter type.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt; &lt;p id="ax.h2544" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2545"&gt; &lt;/p&gt; &lt;ul id="ax.h2546"&gt;&lt;li id="ax.h2547"&gt;&lt;p id="ax.h2548" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2549" face="Arial, sans-serif"&gt;&lt;font id="ax.h2550" size="2"&gt;&lt;font id="ax.h2551" face="Times New Roman, serif"&gt;Name 	an event argument class with the &lt;b id="ax.h2552"&gt;EventArgs&lt;/b&gt; suffix.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2553" class="western" style="margin-left: 0.65in; font-style: normal;"&gt; &lt;br id="ax.h2554"&gt; &lt;/p&gt; &lt;ul id="ax.h2555"&gt;&lt;li id="ax.h2556"&gt;&lt;p id="ax.h2557" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2558" face="Arial, sans-serif"&gt;&lt;font id="ax.h2559" size="2"&gt;&lt;font id="ax.h2560" face="Times New Roman, serif"&gt;Consider 	naming events with a &lt;b id="ax.h2561"&gt;verb&lt;/b&gt;. For example, correctly named event 	names include &lt;b id="ax.h2562"&gt;Clicked&lt;/b&gt;, &lt;b id="ax.h2563"&gt;Painting&lt;/b&gt;, and &lt;b id="ax.h2564"&gt;DroppedDown&lt;/b&gt;.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2565" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2566"&gt; &lt;/p&gt; &lt;ul id="ax.h2567"&gt;&lt;li id="ax.h2568"&gt;&lt;p id="ax.h2569" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2570" face="Arial, sans-serif"&gt;&lt;font id="ax.h2571" size="2"&gt;&lt;font id="ax.h2572" face="Times New Roman, serif"&gt;Do 	not use a &lt;b id="ax.h2573"&gt;prefix&lt;/b&gt; or &lt;b id="ax.h2574"&gt;suffix&lt;/b&gt; on the event declaration on 	the type. For example, use &lt;b id="ax.h2575"&gt;Close&lt;/b&gt; instead of &lt;b id="ax.h2576"&gt;OnClose&lt;/b&gt;.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2577" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2578"&gt; &lt;/p&gt; &lt;p id="ax.h2579" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2580" face="Arial, sans-serif"&gt;&lt;font id="ax.h2581" size="2"&gt;&lt;font id="ax.h2582" face="Times New Roman, serif"&gt;&lt;b id="ax.h2583"&gt;Example:&lt;/b&gt; Illustrates an event handler with an appropriate name and parameters.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h2584" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2585"&gt; &lt;/p&gt; &lt;p id="ax.h2586" class="western" style="font-style: normal;"&gt;&lt;span id="Frame24" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.51in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h2587" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h2588" face="Arial, sans-serif"&gt;&lt;font id="ax.h2589" size="2"&gt;&lt;b id="ax.h2590"&gt;public 	delegate void MouseEventHandler(object sender, MouseEventArgs e);&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2591" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h2592"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h2593"&gt; &lt;/p&gt; &lt;p id="ax.h2594" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2595"&gt; &lt;/p&gt; &lt;p id="ax.h2596" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2597"&gt; &lt;/p&gt; &lt;p id="ax.h2598" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2599"&gt; &lt;/p&gt; &lt;p id="ax.h2600" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2601"&gt; &lt;/p&gt; &lt;p id="ax.h2602" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2603" face="Arial, sans-serif"&gt;&lt;font id="ax.h2604" size="2"&gt;&lt;font id="ax.h2605" face="Times New Roman, serif"&gt;&lt;b id="ax.h2606"&gt;Example: &lt;/b&gt;Illustrates a correctly named event argument class.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h2607" class="western" style="font-style: normal;"&gt;&lt;span id="Frame25" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 2.13in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h2608" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h2609" face="Arial, sans-serif"&gt;&lt;font id="ax.h2610" size="2"&gt;&lt;b id="ax.h2611"&gt;public 	class MouseEventArgs : EventArgs &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2612" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h2613" face="Arial, sans-serif"&gt;&lt;font id="ax.h2614" size="2"&gt;&lt;b id="ax.h2615"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2616" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;  	 &lt;font id="ax.h2617" face="Arial, sans-serif"&gt;&lt;font id="ax.h2618" size="2"&gt;int x;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2619" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;  	 &lt;font id="ax.h2620" face="Arial, sans-serif"&gt;&lt;font id="ax.h2621" size="2"&gt;int y;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2622" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;br id="ax.h2623"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2624" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;  	 &lt;font id="ax.h2625" face="Arial, sans-serif"&gt;&lt;font id="ax.h2626" size="2"&gt;&lt;b id="ax.h2627"&gt;			public 	MouseEventArgs(int x, int y) &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2628" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;  	    &lt;font id="ax.h2629" face="Arial, sans-serif"&gt;&lt;font id="ax.h2630" size="2"&gt;&lt;b id="ax.h2631"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2632" class="western" style="margin-left: 0.63in; font-style: normal;"&gt; 									&lt;font id="ax.h2633" face="Arial, sans-serif"&gt;&lt;font id="ax.h2634" size="2"&gt;this.x = 	x; this.y = y;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2635" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;&lt;font id="ax.h2636" face="Arial, sans-serif"&gt;&lt;font id="ax.h2637" size="2"&gt;&lt;b id="ax.h2638"&gt;					 	}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2639" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;  	&lt;font id="ax.h2640" face="Arial, sans-serif"&gt;&lt;font id="ax.h2641" size="2"&gt;&lt;b id="ax.h2642"&gt;			public int X {&lt;/b&gt; 	get { return x; }&lt;b id="ax.h2643"&gt; } &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2644" class="western" style="margin-left: 0.63in; font-style: normal;"&gt;  	&lt;font id="ax.h2645" face="Arial, sans-serif"&gt;&lt;font id="ax.h2646" size="2"&gt;&lt;b id="ax.h2647"&gt;			public int Y { &lt;/b&gt;get 	{ return y; }&lt;b id="ax.h2648"&gt; } &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2649" class="western" style="margin-left: 0.63in; font-style: normal;"&gt; 	&lt;font id="ax.h2650" face="Arial, sans-serif"&gt;&lt;font id="ax.h2651" size="2"&gt;&lt;b id="ax.h2652"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h2653"&gt; &lt;/p&gt; &lt;p id="ax.h2654" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2655"&gt; &lt;/p&gt; &lt;p id="ax.h2656" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2657"&gt; &lt;/p&gt; &lt;p id="ax.h2658" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2659"&gt; &lt;/p&gt; &lt;p id="ax.h2660" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2661"&gt; &lt;/p&gt; &lt;p id="ax.h2662" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2663"&gt; &lt;/p&gt; &lt;p id="ax.h2664" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2665"&gt; &lt;/p&gt; &lt;p id="ax.h2666" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2667"&gt; &lt;/p&gt; &lt;p id="ax.h2668" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2669"&gt; &lt;/p&gt; &lt;p id="ax.h2670" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2671"&gt; &lt;/p&gt; &lt;p id="ax.h2672" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2673"&gt; &lt;/p&gt; &lt;p id="ax.h2674" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2675"&gt; &lt;/p&gt; &lt;p id="ax.h2676" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2677"&gt; &lt;/p&gt; &lt;p id="ax.h2678" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2679"&gt; &lt;/p&gt; &lt;p id="ax.h2680" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2681"&gt; &lt;/p&gt; &lt;p id="ax.h2682" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2683"&gt; &lt;/p&gt; &lt;h4 id="ax.h2684" class="western"&gt;&lt;a id="ax.h2685" name="2.1.6.14.Delegate Naming Guidelines|outline"&gt;&lt;/a&gt; &lt;font id="ax.h2686" face="Times New Roman, serif"&gt;2.1.6.14Delegate Naming Guidelines&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h2687" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;font id="ax.h2688" face="Times New Roman, serif"&gt;&lt;font id="ax.h2689" size="2"&gt;&lt;b id="ax.h2690"&gt;The naming guidelines for events:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h2691" class="western" style="margin-left: 0.6in; font-style: normal;"&gt; &lt;br id="ax.h2692"&gt; &lt;/p&gt; &lt;ul id="ax.h2693"&gt;&lt;li id="ax.h2694"&gt;&lt;p id="ax.h2695" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2696" face="Arial, sans-serif"&gt;&lt;font id="ax.h2697" size="2"&gt;&lt;font id="ax.h2698" face="Times New Roman, serif"&gt;	Use 	&lt;b id="ax.h2699"&gt;Pascal case.&lt;/b&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2700" class="western" style="margin-left: 0.65in; font-style: normal;"&gt; &lt;br id="ax.h2701"&gt; &lt;/p&gt; &lt;ul id="ax.h2702"&gt;&lt;li id="ax.h2703"&gt;&lt;p id="ax.h2704" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2705" face="Times New Roman, serif"&gt;&lt;font id="ax.h2706" size="2"&gt;	Do 	not use Hungarian notation.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2707" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2708"&gt; &lt;/p&gt; &lt;ul id="ax.h2709"&gt;&lt;li id="ax.h2710"&gt;&lt;p id="ax.h2711" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2712" face="Times New Roman, serif"&gt;&lt;font id="ax.h2713" size="2"&gt;Copy 	a delegate to local variable before publishing to avoid concurrency 	race condition.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2714" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2715"&gt; &lt;/p&gt; &lt;ul id="ax.h2716"&gt;&lt;li id="ax.h2717"&gt;&lt;p id="ax.h2718" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2719" face="Arial, sans-serif"&gt;&lt;font id="ax.h2720" size="2"&gt;&lt;font id="ax.h2721" face="Times New Roman, serif"&gt;Always 	check a delegate for &lt;b id="ax.h2722"&gt;null &lt;/b&gt;before invoking it.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2723" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2724"&gt; &lt;/p&gt; &lt;ul id="ax.h2725"&gt;&lt;li id="ax.h2726"&gt;&lt;p id="ax.h2727" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2728" face="Times New Roman, serif"&gt;&lt;font id="ax.h2729" size="2"&gt;Use 	delegate inference instead of explicit delegate instantiation&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2730" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2731"&gt; &lt;/p&gt; &lt;p id="ax.h2732" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h2733"&gt; &lt;/p&gt; &lt;p id="ax.h2734" class="western" style="margin-left: 0.65in; font-style: normal;"&gt; &lt;span id="Frame26" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 1.51in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h2735" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2736" face="Arial, sans-serif"&gt;&lt;font id="ax.h2737" size="2"&gt;&lt;b id="ax.h2738"&gt;delegate 	void SomeDegate();&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2739" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2740"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2741" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2742" face="Arial, sans-serif"&gt;&lt;font id="ax.h2743" size="2"&gt;&lt;b id="ax.h2744"&gt;public 	void SomeMethod()&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2745" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2746" face="Arial, sans-serif"&gt;&lt;font id="ax.h2747" size="2"&gt;&lt;b id="ax.h2748"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2749" class="western" style="font-style: normal;"&gt;				&lt;font id="ax.h2750" face="Arial, sans-serif"&gt;&lt;font id="ax.h2751" size="2"&gt;//Code 	goes here.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2752" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2753" face="Arial, sans-serif"&gt;&lt;font id="ax.h2754" size="2"&gt;&lt;b id="ax.h2755"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2756" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2757"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2758" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2759" face="Arial, sans-serif"&gt;&lt;font id="ax.h2760" size="2"&gt;&lt;b id="ax.h2761"&gt;SomeDelegate 	 someDelegate  = SomeMethod;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h2762"&gt; &lt;/p&gt; &lt;p id="ax.h2763" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2764"&gt; &lt;/p&gt; &lt;p id="ax.h2765" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2766"&gt; &lt;/p&gt; &lt;p id="ax.h2767" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2768"&gt; &lt;/p&gt; &lt;p id="ax.h2769" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2770"&gt; &lt;/p&gt; &lt;p id="ax.h2771" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2772"&gt; &lt;/p&gt; &lt;p id="ax.h2773" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2774"&gt; &lt;/p&gt; &lt;p id="ax.h2775" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2776"&gt; &lt;/p&gt; &lt;p id="ax.h2777" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2778"&gt; &lt;/p&gt; &lt;p id="ax.h2779" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2780"&gt; &lt;/p&gt; &lt;h3 id="ax.h2781" class="western" style="text-decoration: none;"&gt;&lt;a id="ax.h2782" name="2.1.7.Use Early Binding for Better performance|outline"&gt;&lt;/a&gt; &lt;font id="ax.h2783" face="Times New Roman, serif"&gt;2.1.7Use Early Binding for Better performance&lt;/font&gt;&lt;/h3&gt; &lt;p id="ax.h2784" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2785"&gt; &lt;/p&gt; &lt;ul id="ax.h2786"&gt;&lt;li id="ax.h2787"&gt;&lt;p id="ax.h2788" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2789" face="Times New Roman, serif"&gt;&lt;font id="ax.h2790" size="2"&gt;Early 	Binding provides much better performance than late binding.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2791" class="western" style="margin-left: 0.75in; font-style: normal;"&gt;&lt;br id="ax.h2792"&gt; &lt;/p&gt; &lt;ul id="ax.h2793"&gt;&lt;li id="ax.h2794"&gt;&lt;p id="ax.h2795" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2796" face="Times New Roman, serif"&gt;&lt;font id="ax.h2797" size="2"&gt;Always 	specify a data type for variables when they are declared. This 	provides strong typing of variables for best performance.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h2798" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2799"&gt; &lt;/p&gt; &lt;p id="ax.h2800" class="western" style="font-style: normal;"&gt;&lt;span id="Frame27" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 1.76in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h2801" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2802" face="Arial, sans-serif"&gt;&lt;font id="ax.h2803" size="2"&gt;&lt;b id="ax.h2804"&gt;Good:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2805" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2806" face="Arial, sans-serif"&gt;&lt;font id="ax.h2807" size="2"&gt;&lt;b id="ax.h2808"&gt;										Early 	Binding&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2809" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2810"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2811" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2812" face="Arial, sans-serif"&gt;&lt;font id="ax.h2813" size="2"&gt;&lt;b id="ax.h2814"&gt;										String[] 	address = null;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2815" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2816"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2817" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2818" face="Arial, sans-serif"&gt;&lt;font id="ax.h2819" size="2"&gt;&lt;b id="ax.h2820"&gt;Not 	Good: &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2821" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2822" face="Arial, sans-serif"&gt;&lt;font id="ax.h2823" size="2"&gt;&lt;b id="ax.h2824"&gt;										Late 	Binding&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2825" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2826"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2827" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2828" face="Arial, sans-serif"&gt;&lt;font id="ax.h2829" size="2"&gt;&lt;b id="ax.h2830"&gt;											Object[] 	address = null;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2831" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2832"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2833" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2834"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h2835"&gt; &lt;/p&gt; &lt;p id="ax.h2836" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2837"&gt; &lt;/p&gt; &lt;p id="ax.h2838" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2839"&gt; &lt;/p&gt; &lt;p id="ax.h2840" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2841"&gt; &lt;/p&gt; &lt;p id="ax.h2842" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2843"&gt; &lt;/p&gt; &lt;p id="ax.h2844" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2845"&gt; &lt;/p&gt; &lt;p id="ax.h2846" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2847"&gt; &lt;/p&gt; &lt;p id="ax.h2848" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2849"&gt; &lt;/p&gt; &lt;p id="ax.h2850" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2851"&gt; &lt;/p&gt; &lt;p id="ax.h2852" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2853"&gt; &lt;/p&gt; &lt;p id="ax.h2854" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2855"&gt; &lt;/p&gt; &lt;p id="ax.h2856" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2857"&gt; &lt;/p&gt; &lt;h3 id="ax.h2858" class="western" style="text-decoration: none;"&gt;&lt;a id="ax.h2859" name="2.1.8.Returning Values|outline"&gt;&lt;/a&gt; &lt;font id="ax.h2860" face="Times New Roman, serif"&gt;2.1.8Returning Values&lt;/font&gt;&lt;/h3&gt; &lt;p id="ax.h2861" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h2862" face="Times New Roman, serif"&gt;&lt;font id="ax.h2863" size="2"&gt;Try to make the structure of your program match the intent. Example: &lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h2864" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2865"&gt; &lt;/p&gt; &lt;p id="ax.h2866" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;span id="Frame28" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 3.63in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h2867" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2868" face="Arial, sans-serif"&gt;&lt;font id="ax.h2869" size="2"&gt;&lt;b id="ax.h2870"&gt;if(booleanExpression)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2871" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2872" face="Arial, sans-serif"&gt;&lt;font id="ax.h2873" size="2"&gt;&lt;b id="ax.h2874"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2875" class="western" style="font-style: normal;"&gt;    &lt;font id="ax.h2876" face="Arial, sans-serif"&gt;&lt;font id="ax.h2877" size="2"&gt;return 	true;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2878" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2879" face="Arial, sans-serif"&gt;&lt;font id="ax.h2880" size="2"&gt;&lt;b id="ax.h2881"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2882" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2883" face="Arial, sans-serif"&gt;&lt;font id="ax.h2884" size="2"&gt;&lt;b id="ax.h2885"&gt;else&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2886" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2887" face="Arial, sans-serif"&gt;&lt;font id="ax.h2888" size="2"&gt;&lt;b id="ax.h2889"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2890" class="western" style="font-style: normal;"&gt;    &lt;font id="ax.h2891" face="Arial, sans-serif"&gt;&lt;font id="ax.h2892" size="2"&gt;return 	false;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2893" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2894" face="Arial, sans-serif"&gt;&lt;font id="ax.h2895" size="2"&gt;&lt;b id="ax.h2896"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2897" class="western" style="font-style: normal;"&gt;		&lt;/p&gt; 	&lt;p id="ax.h2898" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2899" face="Arial, sans-serif"&gt;&lt;font id="ax.h2900" size="2"&gt;&lt;b id="ax.h2901"&gt;should 	instead be written as &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2902" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2903" face="Arial, sans-serif"&gt;&lt;font id="ax.h2904" size="2"&gt;return 	booleanExpression;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2905" class="western" style="font-style: normal;"&gt;		&lt;/p&gt; 	&lt;p id="ax.h2906" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2907" face="Arial, sans-serif"&gt;&lt;font id="ax.h2908" size="2"&gt;&lt;b id="ax.h2909"&gt;Similarly, 	&lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2910" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2911" face="Arial, sans-serif"&gt;&lt;font id="ax.h2912" size="2"&gt;&lt;b id="ax.h2913"&gt;if(condition)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2914" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2915" face="Arial, sans-serif"&gt;&lt;font id="ax.h2916" size="2"&gt;&lt;b id="ax.h2917"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2918" class="western" style="font-style: normal;"&gt;    &lt;font id="ax.h2919" face="Arial, sans-serif"&gt;&lt;font id="ax.h2920" size="2"&gt;return 	x;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2921" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2922" face="Arial, sans-serif"&gt;&lt;font id="ax.h2923" size="2"&gt;&lt;b id="ax.h2924"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2925" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2926" face="Arial, sans-serif"&gt;&lt;font id="ax.h2927" size="2"&gt;return 	y;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2928" class="western" style="font-style: normal;"&gt;		&lt;/p&gt; 	&lt;p id="ax.h2929" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2930" face="Arial, sans-serif"&gt;&lt;font id="ax.h2931" size="2"&gt;&lt;b id="ax.h2932"&gt;should 	be written as &lt;/b&gt;&lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2933" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h2934" face="Arial, sans-serif"&gt;&lt;font id="ax.h2935" size="2"&gt;return 	((condition) ? x : y);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2936" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h2937"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h2938" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2939"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h2940"&gt; &lt;/p&gt; &lt;p id="ax.h2941" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2942"&gt; &lt;/p&gt; &lt;p id="ax.h2943" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2944"&gt; &lt;/p&gt; &lt;p id="ax.h2945" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2946"&gt; &lt;/p&gt; &lt;p id="ax.h2947" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2948"&gt; &lt;/p&gt; &lt;p id="ax.h2949" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2950"&gt; &lt;/p&gt; &lt;p id="ax.h2951" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2952"&gt; &lt;/p&gt; &lt;p id="ax.h2953" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2954"&gt; &lt;/p&gt; &lt;p id="ax.h2955" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2956"&gt; &lt;/p&gt; &lt;p id="ax.h2957" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2958"&gt; &lt;/p&gt; &lt;p id="ax.h2959" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2960"&gt; &lt;/p&gt; &lt;p id="ax.h2961" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2962"&gt; &lt;/p&gt; &lt;p id="ax.h2963" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2964"&gt; &lt;/p&gt; &lt;p id="ax.h2965" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2966"&gt; &lt;/p&gt; &lt;p id="ax.h2967" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2968"&gt; &lt;/p&gt; &lt;p id="ax.h2969" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2970"&gt; &lt;/p&gt; &lt;p id="ax.h2971" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2972"&gt; &lt;/p&gt; &lt;p id="ax.h2973" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2974"&gt; &lt;/p&gt; &lt;p id="ax.h2975" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2976"&gt; &lt;/p&gt; &lt;p id="ax.h2977" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h2978"&gt; &lt;/p&gt; &lt;p id="ax.h2979" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2980"&gt; &lt;/p&gt; &lt;p id="ax.h2981" class="western" style="margin-left: 0.56in; font-style: normal;"&gt; &lt;br id="ax.h2982"&gt; &lt;/p&gt; &lt;h3 id="ax.h2983" class="western" style="text-decoration: none;"&gt;&lt;a id="ax.h2984" name="2.1.9.Statements|outline"&gt;&lt;/a&gt; &lt;font id="ax.h2985" face="Times New Roman, serif"&gt;2.1.9Statements&lt;/font&gt;&lt;/h3&gt; &lt;h4 id="ax.h2986" class="western"&gt;&lt;a id="ax.h2987" name="2.1.9.1.Simple Statements|outline"&gt;&lt;/a&gt;&lt;font id="ax.h2988" face="Times New Roman, serif"&gt;2.1.9.1Simple Statements&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h2989" class="western" style="font-style: normal;"&gt;&lt;span id="Frame29" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.76in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h2990" class="western" style="margin-left: 0.56in; font-style: normal;"&gt;&lt;font id="ax.h2991" face="Courier New, monospace"&gt;&lt;font id="ax.h2992" size="2"&gt;&lt;font id="ax.h2993" size="3"&gt;argv++; 	        /* Correct */&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2994" class="western" style="margin-left: 0.56in; font-style: normal;"&gt;&lt;font id="ax.h2995" face="Courier New, monospace"&gt;&lt;font id="ax.h2996" size="2"&gt;&lt;font id="ax.h2997" size="3"&gt;argc--; 	        /* Correct */&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h2998" class="western" style="margin-left: 0.56in; font-style: normal;"&gt;&lt;font id="ax.h2999" face="Courier New, monospace"&gt;&lt;font id="ax.h3000" size="2"&gt;&lt;font id="ax.h3001" size="3"&gt;argv++; 	argc--; /* AVOID! */&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3002" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3003"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3004" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3005"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h3006"&gt; &lt;/p&gt; &lt;p id="ax.h3007" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3008"&gt; &lt;/p&gt; &lt;p id="ax.h3009" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3010"&gt; &lt;/p&gt; &lt;p id="ax.h3011" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3012"&gt; &lt;/p&gt; &lt;p id="ax.h3013" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3014"&gt; &lt;/p&gt; &lt;p id="ax.h3015" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3016"&gt; &lt;/p&gt; &lt;p id="ax.h3017" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3018"&gt; &lt;/p&gt; &lt;h4 id="ax.h3019" class="western"&gt;&lt;a id="ax.h3020" name="2.1.9.2.Compound Statements|outline"&gt;&lt;/a&gt; &lt;font id="ax.h3021" face="Times New Roman, serif"&gt;2.1.9.2Compound Statements&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h3022" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3023"&gt; &lt;/p&gt; &lt;p id="ax.h3024" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3025" face="Times New Roman, serif"&gt;&lt;font id="ax.h3026" size="2"&gt;Compound statements are statements that contain lists of statements enclosed in braces&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h3027" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;font id="ax.h3028" face="Arial, sans-serif"&gt;&lt;font id="ax.h3029" size="2"&gt;&lt;font id="ax.h3030" face="Times New Roman, serif"&gt;&lt;b id="ax.h3031"&gt;&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font id="ax.h3032" face="Courier New, monospace"&gt;&lt;font id="ax.h3033" size="2"&gt;&lt;b id="ax.h3034"&gt;&lt;font id="ax.h3035" face="Times New Roman, serif"&gt;{ statements }&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;b id="ax.h3036"&gt;&lt;font id="ax.h3037" face="Times New Roman, serif"&gt;&amp;quot;.&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;ul id="ax.h3038"&gt;&lt;li id="ax.h3039"&gt;&lt;p id="ax.h3040" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h3041" face="Times New Roman, serif"&gt;&lt;font id="ax.h3042" size="2"&gt;The enclosed 	statements should be indented one more level than the enclosing 	braces. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h3043"&gt;&lt;p id="ax.h3044" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h3045" face="Times New Roman, serif"&gt;&lt;font id="ax.h3046" size="2"&gt;The opening brace 	should be at the beginning of the line that precedes the compound 	statement; the closing brace should begin a line and be indented to 	the opening brace. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;/li&gt;&lt;li id="ax.h3047"&gt;&lt;p id="ax.h3048" class="western" style="margin-top: 0.07in; margin-bottom: 0.07in; font-style: normal;"&gt; 	&lt;font id="ax.h3049" face="Times New Roman, serif"&gt;&lt;font id="ax.h3050" size="2"&gt;Braces are used 	around all statements, even single statements, when they are part of 	a control structure, such as an if-else or for statement. This makes 	it easier to add statements without accidentally introducing bugs 	due to forgetting to add braces. &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;h4 id="ax.h3051" class="western"&gt;&lt;a id="ax.h3052" name="2.1.9.3.if, if-else, if else-if else Statements|outline"&gt;&lt;/a&gt; &lt;font id="ax.h3053" face="Times New Roman, serif"&gt;2.1.9.3if, if-else, if else-if else Statements&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h3054" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; &lt;font id="ax.h3055" face="Times New Roman, serif"&gt;&lt;font id="ax.h3056" size="2"&gt;				The if-else class of statements should have the following form: &lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h3057" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;span id="Frame30" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 4.51in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h3058" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3059" face="Arial, sans-serif"&gt;&lt;font id="ax.h3060" size="2"&gt;&lt;b id="ax.h3061"&gt;if(condition)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3062" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3063" face="Arial, sans-serif"&gt;&lt;font id="ax.h3064" size="2"&gt;&lt;b id="ax.h3065"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3066" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;   	 &lt;font id="ax.h3067" face="Arial, sans-serif"&gt;&lt;font id="ax.h3068" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3069" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3070" face="Arial, sans-serif"&gt;&lt;font id="ax.h3071" size="2"&gt;&lt;b id="ax.h3072"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3073" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3074"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3075" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3076"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3077" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3078" face="Arial, sans-serif"&gt;&lt;font id="ax.h3079" size="2"&gt;&lt;b id="ax.h3080"&gt;if(condition)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3081" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3082" face="Arial, sans-serif"&gt;&lt;font id="ax.h3083" size="2"&gt;&lt;b id="ax.h3084"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3085" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;   	 &lt;font id="ax.h3086" face="Arial, sans-serif"&gt;&lt;font id="ax.h3087" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3088" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3089" face="Arial, sans-serif"&gt;&lt;font id="ax.h3090" size="2"&gt;&lt;b id="ax.h3091"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3092" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3093" face="Arial, sans-serif"&gt;&lt;font id="ax.h3094" size="2"&gt;&lt;b id="ax.h3095"&gt;else&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3096" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3097" face="Arial, sans-serif"&gt;&lt;font id="ax.h3098" size="2"&gt;&lt;b id="ax.h3099"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3100" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;   	 &lt;font id="ax.h3101" face="Arial, sans-serif"&gt;&lt;font id="ax.h3102" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3103" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3104" face="Arial, sans-serif"&gt;&lt;font id="ax.h3105" size="2"&gt;&lt;b id="ax.h3106"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3107" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3108"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3109" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3110" face="Arial, sans-serif"&gt;&lt;font id="ax.h3111" size="2"&gt;&lt;b id="ax.h3112"&gt;if(condition)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3113" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3114" face="Arial, sans-serif"&gt;&lt;font id="ax.h3115" size="2"&gt;&lt;b id="ax.h3116"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3117" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;   	 &lt;font id="ax.h3118" face="Arial, sans-serif"&gt;&lt;font id="ax.h3119" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3120" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3121" face="Arial, sans-serif"&gt;&lt;font id="ax.h3122" size="2"&gt;&lt;b id="ax.h3123"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3124" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3125" face="Arial, sans-serif"&gt;&lt;font id="ax.h3126" size="2"&gt;&lt;b id="ax.h3127"&gt;else 	if(condition)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3128" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3129" face="Arial, sans-serif"&gt;&lt;font id="ax.h3130" size="2"&gt;&lt;b id="ax.h3131"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3132" class="western" style="margin-left: 0.5in; font-style: normal;"&gt; 	&lt;font id="ax.h3133" face="Arial, sans-serif"&gt;&lt;font id="ax.h3134" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3135" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3136" face="Arial, sans-serif"&gt;&lt;font id="ax.h3137" size="2"&gt;&lt;b id="ax.h3138"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3139" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3140" face="Arial, sans-serif"&gt;&lt;font id="ax.h3141" size="2"&gt;&lt;b id="ax.h3142"&gt;else&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3143" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3144" face="Arial, sans-serif"&gt;&lt;font id="ax.h3145" size="2"&gt;&lt;b id="ax.h3146"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3147" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;   	 &lt;font id="ax.h3148" face="Arial, sans-serif"&gt;&lt;font id="ax.h3149" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3150" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3151" face="Arial, sans-serif"&gt;&lt;font id="ax.h3152" size="2"&gt;&lt;b id="ax.h3153"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3154" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3155"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h3156"&gt; &lt;/p&gt; &lt;p id="ax.h3157" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3158"&gt; &lt;/p&gt; &lt;p id="ax.h3159" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3160"&gt; &lt;/p&gt; &lt;p id="ax.h3161" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3162"&gt; &lt;/p&gt; &lt;p id="ax.h3163" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3164"&gt; &lt;/p&gt; &lt;p id="ax.h3165" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3166"&gt; &lt;/p&gt; &lt;p id="ax.h3167" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3168"&gt; &lt;/p&gt; &lt;p id="ax.h3169" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3170"&gt; &lt;/p&gt; &lt;p id="ax.h3171" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3172"&gt; &lt;/p&gt; &lt;p id="ax.h3173" class="western" style="margin-left: 0in; font-style: normal;"&gt;		&lt;/p&gt; &lt;p id="ax.h3174" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3175"&gt; &lt;/p&gt; &lt;p id="ax.h3176" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3177"&gt; &lt;/p&gt; &lt;p id="ax.h3178" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3179"&gt; &lt;/p&gt; &lt;p id="ax.h3180" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3181"&gt; &lt;/p&gt; &lt;p id="ax.h3182" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3183"&gt; &lt;/p&gt; &lt;p id="ax.h3184" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3185"&gt; &lt;/p&gt; &lt;p id="ax.h3186" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3187"&gt; &lt;/p&gt; &lt;p id="ax.h3188" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3189"&gt; &lt;/p&gt; &lt;p id="ax.h3190" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3191"&gt; &lt;/p&gt; &lt;p id="ax.h3192" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3193"&gt; &lt;/p&gt; &lt;p id="ax.h3194" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3195"&gt; &lt;/p&gt; &lt;p id="ax.h3196" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3197"&gt; &lt;/p&gt; &lt;p id="ax.h3198" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3199"&gt; &lt;/p&gt; &lt;p id="ax.h3200" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3201"&gt; &lt;/p&gt; &lt;p id="ax.h3202" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3203"&gt; &lt;/p&gt; &lt;p id="ax.h3204" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3205"&gt; &lt;/p&gt; &lt;p id="ax.h3206" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3207"&gt; &lt;/p&gt; &lt;p id="ax.h3208" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3209"&gt; &lt;/p&gt; &lt;p id="ax.h3210" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3211"&gt; &lt;/p&gt; &lt;p id="ax.h3212" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3213" face="Arial, sans-serif"&gt;&lt;font id="ax.h3214" size="2"&gt;&lt;font id="ax.h3215" face="Times New Roman, serif"&gt;&lt;b id="ax.h3216"&gt;Note:&lt;/b&gt; if statements always use braces {}. Avoid the following error-prone form: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h3217" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;span id="Frame31" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.51in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h3218" class="western" style="margin-left: 0in; font-style: normal;"&gt; 	&lt;font id="ax.h3219" face="Arial, sans-serif"&gt;&lt;font id="ax.h3220" size="2"&gt;&lt;b id="ax.h3221"&gt;if(condition)&lt;/b&gt; /* 	AVOID! THIS OMITS THE BRACES {}! */&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3222" class="western" style="margin-left: 0in; font-style: normal;"&gt; 	&lt;font id="ax.h3223" face="Arial, sans-serif"&gt;&lt;font id="ax.h3224" size="2"&gt;statement;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3225" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3226"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h3227"&gt; &lt;/p&gt; &lt;p id="ax.h3228" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h3229"&gt; &lt;/p&gt; &lt;p id="ax.h3230" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h3231"&gt; &lt;/p&gt; &lt;p id="ax.h3232" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h3233"&gt; &lt;/p&gt; &lt;p id="ax.h3234" class="western" style="margin-left: 0in; font-style: normal;"&gt; &lt;br id="ax.h3235"&gt; &lt;/p&gt; &lt;p id="ax.h3236" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3237"&gt; &lt;/p&gt; &lt;h4 id="ax.h3238" class="western"&gt;&lt;a id="ax.h3239" name="2.1.9.4.for Statements|outline"&gt;&lt;/a&gt;&lt;font id="ax.h3240" face="Times New Roman, serif"&gt;2.1.9.4for Statements&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h3241" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3242"&gt; &lt;/p&gt; &lt;p id="ax.h3243" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3244" face="Arial, sans-serif"&gt;&lt;font id="ax.h3245" size="2"&gt;&lt;font id="ax.h3246" face="Times New Roman, serif"&gt;A &lt;/font&gt;&lt;font id="ax.h3247" face="Courier New, monospace"&gt;&lt;font id="ax.h3248" size="2"&gt;&lt;font id="ax.h3249" face="Times New Roman, serif"&gt;for&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font id="ax.h3250" face="Times New Roman, serif"&gt; statement should have the following form: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h3251" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3252"&gt; &lt;/p&gt; &lt;p id="ax.h3253" class="western" style="font-style: normal;"&gt;&lt;span id="Frame32" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.76in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h3254" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3255" face="Arial, sans-serif"&gt;&lt;font id="ax.h3256" size="2"&gt;&lt;b id="ax.h3257"&gt;for(initialization; 	condition; update)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3258" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3259" face="Arial, sans-serif"&gt;&lt;font id="ax.h3260" size="2"&gt;&lt;b id="ax.h3261"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3262" style="margin-left: 0.5in; font-style: normal;"&gt;    &lt;font id="ax.h3263" face="Arial, sans-serif"&gt;&lt;font id="ax.h3264" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3265" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3266" face="Arial, sans-serif"&gt;&lt;font id="ax.h3267" size="2"&gt;&lt;b id="ax.h3268"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3269" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3270"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h3271"&gt; &lt;/p&gt; &lt;p id="ax.h3272" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3273"&gt; &lt;/p&gt; &lt;p id="ax.h3274" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3275"&gt; &lt;/p&gt; &lt;p id="ax.h3276" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3277"&gt; &lt;/p&gt; &lt;p id="ax.h3278" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3279"&gt; &lt;/p&gt; &lt;p id="ax.h3280" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3281"&gt; &lt;/p&gt; &lt;p id="ax.h3282" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3283"&gt; &lt;/p&gt; &lt;p id="ax.h3284" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3285"&gt; &lt;/p&gt; &lt;p id="ax.h3286" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3287" face="Arial, sans-serif"&gt;&lt;font id="ax.h3288" size="2"&gt;&lt;font id="ax.h3289" face="Times New Roman, serif"&gt;An empty &lt;/font&gt;&lt;font id="ax.h3290" face="Courier New, monospace"&gt;&lt;font id="ax.h3291" size="2"&gt;&lt;font id="ax.h3292" face="Times New Roman, serif"&gt;for&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font id="ax.h3293" face="Times New Roman, serif"&gt; statement (one in which all the work is done in the initialization, condition, and update clauses) should have the following form: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h3294" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3295"&gt; &lt;/p&gt; &lt;p id="ax.h3296" class="western" style="font-style: normal;"&gt;&lt;span id="Frame33" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 0.76in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h3297" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3298" face="Arial, sans-serif"&gt;&lt;font id="ax.h3299" size="2"&gt;&lt;b id="ax.h3300"&gt;for(initialization; 	condition; update)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3301" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3302" face="Arial, sans-serif"&gt;&lt;font id="ax.h3303" size="2"&gt;&lt;b id="ax.h3304"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3305" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3306" color="#000000"&gt; 	   &lt;font id="ax.h3307" face="Courier New, monospace"&gt;&lt;font id="ax.h3308" size="2"&gt;&lt;font id="ax.h3309" face="Arial, sans-serif"&gt;/* 	No Body */&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3310" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3311" face="Arial, sans-serif"&gt;&lt;font id="ax.h3312" size="2"&gt;&lt;b id="ax.h3313"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3314" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3315"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h3316"&gt; &lt;/p&gt; &lt;p id="ax.h3317" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3318"&gt; &lt;/p&gt; &lt;p id="ax.h3319" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3320"&gt; &lt;/p&gt; &lt;p id="ax.h3321" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3322"&gt; &lt;/p&gt; &lt;p id="ax.h3323" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3324"&gt; &lt;/p&gt; &lt;p id="ax.h3325" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3326"&gt; &lt;/p&gt; &lt;p id="ax.h3327" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3328"&gt; &lt;/p&gt; &lt;p id="ax.h3329" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3330"&gt; &lt;/p&gt; &lt;p id="ax.h3331" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3332" face="Times New Roman, serif"&gt;&lt;font id="ax.h3333" size="2"&gt;When using the comma operator in the initialization or update clause of a "for" statement, avoid the complexity of using more than three variables.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h3334" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3335"&gt; &lt;/p&gt; &lt;p id="ax.h3336" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3337" face="Times New Roman, serif"&gt;&lt;font id="ax.h3338" size="2"&gt;If needed, use separate statements before the "for" loop (for the initialization clause) or at the end of the loop (for the update clause).&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h3339" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3340"&gt; &lt;/p&gt; &lt;h4 id="ax.h3341" class="western"&gt;&lt;a id="ax.h3342" name="2.1.9.5.while Statements|outline"&gt;&lt;/a&gt;&lt;font id="ax.h3343" face="Times New Roman, serif"&gt;2.1.9.5while Statements&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h3344" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3345" face="Arial, sans-serif"&gt;&lt;font id="ax.h3346" size="2"&gt;&lt;font id="ax.h3347" face="Times New Roman, serif"&gt;A &lt;/font&gt;&lt;font id="ax.h3348" face="Courier New, monospace"&gt;&lt;font id="ax.h3349" size="2"&gt;&lt;font id="ax.h3350" face="Times New Roman, serif"&gt;while&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font id="ax.h3351" face="Times New Roman, serif"&gt; statement should have the following form: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h3352" class="western" style="font-style: normal;"&gt;&lt;span id="Frame34" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.63in; height: 2.01in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h3353" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3354" face="Arial, sans-serif"&gt;&lt;font id="ax.h3355" size="2"&gt;&lt;b id="ax.h3356"&gt;while(condition)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3357" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3358" face="Arial, sans-serif"&gt;&lt;font id="ax.h3359" size="2"&gt;&lt;b id="ax.h3360"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3361" style="margin-left: 0.5in; font-style: normal;"&gt;    &lt;font id="ax.h3362" face="Arial, sans-serif"&gt;&lt;font id="ax.h3363" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3364" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3365" face="Arial, sans-serif"&gt;&lt;font id="ax.h3366" size="2"&gt;&lt;b id="ax.h3367"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3368" style="margin-left: 0in; font-style: normal;"&gt;		&lt;/p&gt; 	&lt;p id="ax.h3369" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h3370" face="Arial, sans-serif"&gt;&lt;font id="ax.h3371" size="2"&gt;An 	empty &lt;font id="ax.h3372" face="Courier New, monospace"&gt;&lt;font id="ax.h3373" size="2"&gt;while&lt;/font&gt;&lt;/font&gt; 	statement should have the following form: &lt;/font&gt;&lt;/font&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3374" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3375"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3376" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3377" face="Arial, sans-serif"&gt;&lt;font id="ax.h3378" size="2"&gt;&lt;b id="ax.h3379"&gt;while(condition)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3380" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3381" face="Arial, sans-serif"&gt;&lt;font id="ax.h3382" size="2"&gt;&lt;b id="ax.h3383"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3384" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3385" color="#000000"&gt; 	   &lt;font id="ax.h3386" face="Courier New, monospace"&gt;&lt;font id="ax.h3387" size="2"&gt;&lt;font id="ax.h3388" face="Arial, sans-serif"&gt;/* 	No Body */&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3389" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3390" face="Arial, sans-serif"&gt;&lt;font id="ax.h3391" size="2"&gt;&lt;b id="ax.h3392"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3393" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3394"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h3395"&gt; &lt;/p&gt; &lt;p id="ax.h3396" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3397"&gt; &lt;/p&gt; &lt;p id="ax.h3398" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3399"&gt; &lt;/p&gt; &lt;p id="ax.h3400" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3401"&gt; &lt;/p&gt; &lt;p id="ax.h3402" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3403"&gt; &lt;/p&gt; &lt;p id="ax.h3404" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3405"&gt; &lt;/p&gt; &lt;p id="ax.h3406" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3407"&gt; &lt;/p&gt; &lt;p id="ax.h3408" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3409"&gt; &lt;/p&gt; &lt;p id="ax.h3410" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3411"&gt; &lt;/p&gt; &lt;p id="ax.h3412" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3413"&gt; &lt;/p&gt; &lt;p id="ax.h3414" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3415"&gt; &lt;/p&gt; &lt;p id="ax.h3416" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3417"&gt; &lt;/p&gt; &lt;p id="ax.h3418" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3419"&gt; &lt;/p&gt; &lt;p id="ax.h3420" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3421"&gt; &lt;/p&gt; &lt;p id="ax.h3422" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3423"&gt; &lt;/p&gt; &lt;p id="ax.h3424" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3425"&gt; &lt;/p&gt; &lt;h4 id="ax.h3426" class="western"&gt;&lt;a id="ax.h3427" name="2.1.9.6.do-while Statements|outline"&gt;&lt;/a&gt; &lt;font id="ax.h3428" face="Times New Roman, serif"&gt;2.1.9.6do-while Statements&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h3429" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3430" face="Arial, sans-serif"&gt;&lt;font id="ax.h3431" size="2"&gt;&lt;font id="ax.h3432" face="Times New Roman, serif"&gt;A &lt;/font&gt;&lt;font id="ax.h3433" face="Courier New, monospace"&gt;&lt;font id="ax.h3434" size="2"&gt;&lt;font id="ax.h3435" face="Times New Roman, serif"&gt;do-while&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font id="ax.h3436" face="Times New Roman, serif"&gt; statement should have the following form: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h3437" class="western" style="font-style: normal;"&gt;&lt;span id="Frame35" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.55in; height: 1.01in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h3438" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3439" face="Arial, sans-serif"&gt;&lt;font id="ax.h3440" size="2"&gt;&lt;b id="ax.h3441"&gt;do&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3442" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3443" face="Arial, sans-serif"&gt;&lt;font id="ax.h3444" size="2"&gt;&lt;b id="ax.h3445"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3446" style="margin-left: 0.5in; font-style: normal;"&gt;     &lt;font id="ax.h3447" face="Arial, sans-serif"&gt;&lt;font id="ax.h3448" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3449" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3450" face="Arial, sans-serif"&gt;&lt;font id="ax.h3451" size="2"&gt;&lt;b id="ax.h3452"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3453" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3454" face="Arial, sans-serif"&gt;&lt;font id="ax.h3455" size="2"&gt;&lt;b id="ax.h3456"&gt;while(condition);&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3457" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3458"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3459" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3460"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h3461"&gt; &lt;/p&gt; &lt;p id="ax.h3462" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3463"&gt; &lt;/p&gt; &lt;p id="ax.h3464" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3465"&gt; &lt;/p&gt; &lt;p id="ax.h3466" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3467"&gt; &lt;/p&gt; &lt;p id="ax.h3468" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3469"&gt; &lt;/p&gt; &lt;p id="ax.h3470" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3471"&gt; &lt;/p&gt; &lt;p id="ax.h3472" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3473"&gt; &lt;/p&gt; &lt;p id="ax.h3474" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3475"&gt; &lt;/p&gt; &lt;p id="ax.h3476" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3477"&gt; &lt;/p&gt; &lt;p id="ax.h3478" style="margin-left: 0in; font-style: normal;"&gt;		&lt;/p&gt; &lt;h4 id="ax.h3479" class="western"&gt;&lt;a id="ax.h3480" name="2.1.9.7.switch Statements|outline"&gt;&lt;/a&gt;&lt;font id="ax.h3481" face="Times New Roman, serif"&gt;2.1.9.7switch Statements&lt;/font&gt;&lt;/h4&gt; &lt;ul id="ax.h3482"&gt;&lt;li id="ax.h3483"&gt;&lt;p id="ax.h3484" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h3485" face="Arial, sans-serif"&gt;&lt;font id="ax.h3486" size="2"&gt;&lt;font id="ax.h3487" face="Times New Roman, serif"&gt;Never 	use &lt;b id="ax.h3488"&gt;goto&lt;/b&gt; unless in a &lt;b id="ax.h3489"&gt;switch&lt;/b&gt; statement fall through.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h3490" class="western" style="margin-left: 0.55in; font-style: normal;"&gt;&lt;br id="ax.h3491"&gt; &lt;/p&gt; &lt;ul id="ax.h3492"&gt;&lt;li id="ax.h3493"&gt;&lt;p id="ax.h3494" class="western" style="font-style: normal;"&gt;&lt;font id="ax.h3495" face="Times New Roman, serif"&gt;&lt;font id="ax.h3496" size="2"&gt;Always 	have a default case in a switch statement that asserts.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p id="ax.h3497" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3498"&gt; &lt;/p&gt; &lt;p id="ax.h3499" class="western" style="margin-left: 0.55in; font-style: normal;"&gt;&lt;br id="ax.h3500"&gt; &lt;/p&gt; &lt;p id="ax.h3501" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3502"&gt; &lt;/p&gt; &lt;p id="ax.h3503" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3504" face="Arial, sans-serif"&gt;&lt;font id="ax.h3505" size="2"&gt;&lt;font id="ax.h3506" face="Times New Roman, serif"&gt;A &lt;/font&gt;&lt;font id="ax.h3507" face="Courier New, monospace"&gt;&lt;font id="ax.h3508" size="2"&gt;&lt;font id="ax.h3509" face="Times New Roman, serif"&gt;switch&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font id="ax.h3510" face="Times New Roman, serif"&gt; statement should have the following form: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt; &lt;p id="ax.h3511" class="western" style="font-style: normal;"&gt;&lt;span id="Frame36" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.55in; height: 3.01in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h3512" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3513" face="Arial, sans-serif"&gt;&lt;font id="ax.h3514" size="2"&gt;&lt;b id="ax.h3515"&gt;switch(condition)&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3516" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3517" face="Arial, sans-serif"&gt;&lt;font id="ax.h3518" size="2"&gt;&lt;b id="ax.h3519"&gt;{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3520" style="margin-left: 0.5in; font-style: normal;"&gt;    &lt;font id="ax.h3521" face="Arial, sans-serif"&gt;&lt;font id="ax.h3522" size="2"&gt;case 	ABC:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3523" style="margin-left: 0.5in; font-style: normal;"&gt;        	&lt;font id="ax.h3524" face="Arial, sans-serif"&gt;&lt;font id="ax.h3525" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3526" style="margin-left: 0.5in; font-style: normal;"&gt;        &lt;font id="ax.h3527" face="Arial, sans-serif"&gt;&lt;font id="ax.h3528" size="2"&gt;/* 	falls through */&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3529" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3530"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3531" style="margin-left: 0.5in; font-style: normal;"&gt;    &lt;font id="ax.h3532" face="Arial, sans-serif"&gt;&lt;font id="ax.h3533" size="2"&gt;case 	DEF:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3534" style="margin-left: 0.5in; font-style: normal;"&gt;        	&lt;font id="ax.h3535" face="Arial, sans-serif"&gt;&lt;font id="ax.h3536" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3537" style="margin-left: 0.5in; font-style: normal;"&gt;        &lt;font id="ax.h3538" face="Arial, sans-serif"&gt;&lt;font id="ax.h3539" size="2"&gt;break;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3540" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3541"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3542" style="margin-left: 0.5in; font-style: normal;"&gt;    &lt;font id="ax.h3543" face="Arial, sans-serif"&gt;&lt;font id="ax.h3544" size="2"&gt;case 	XYZ:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3545" style="margin-left: 0.5in; font-style: normal;"&gt;        	&lt;font id="ax.h3546" face="Arial, sans-serif"&gt;&lt;font id="ax.h3547" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3548" style="margin-left: 0.5in; font-style: normal;"&gt;        &lt;font id="ax.h3549" face="Arial, sans-serif"&gt;&lt;font id="ax.h3550" size="2"&gt;break;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3551" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3552"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3553" style="margin-left: 0.5in; font-style: normal;"&gt;    &lt;font id="ax.h3554" face="Arial, sans-serif"&gt;&lt;font id="ax.h3555" size="2"&gt;default:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3556" style="margin-left: 0.5in; font-style: normal;"&gt;        	&lt;font id="ax.h3557" face="Arial, sans-serif"&gt;&lt;font id="ax.h3558" size="2"&gt;statements;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3559" style="margin-left: 0.5in; font-style: normal;"&gt;        &lt;font id="ax.h3560" face="Arial, sans-serif"&gt;&lt;font id="ax.h3561" size="2"&gt;break;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3562" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3563" face="Arial, sans-serif"&gt;&lt;font id="ax.h3564" size="2"&gt;&lt;b id="ax.h3565"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3566" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3567"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3568" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3569"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h3570"&gt; &lt;/p&gt; &lt;p id="ax.h3571" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3572"&gt; &lt;/p&gt; &lt;p id="ax.h3573" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3574"&gt; &lt;/p&gt; &lt;p id="ax.h3575" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3576"&gt; &lt;/p&gt; &lt;p id="ax.h3577" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3578"&gt; &lt;/p&gt; &lt;p id="ax.h3579" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3580"&gt; &lt;/p&gt; &lt;p id="ax.h3581" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3582"&gt; &lt;/p&gt; &lt;p id="ax.h3583" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3584"&gt; &lt;/p&gt; &lt;p id="ax.h3585" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3586"&gt; &lt;/p&gt; &lt;p id="ax.h3587" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3588"&gt; &lt;/p&gt; &lt;p id="ax.h3589" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3590"&gt; &lt;/p&gt; &lt;p id="ax.h3591" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3592"&gt; &lt;/p&gt; &lt;p id="ax.h3593" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3594"&gt; &lt;/p&gt; &lt;p id="ax.h3595" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3596"&gt; &lt;/p&gt; &lt;p id="ax.h3597" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3598"&gt; &lt;/p&gt; &lt;p id="ax.h3599" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3600"&gt; &lt;/p&gt; &lt;p id="ax.h3601" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3602"&gt; &lt;/p&gt; &lt;p id="ax.h3603" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3604"&gt; &lt;/p&gt; &lt;p id="ax.h3605" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3606"&gt; &lt;/p&gt; &lt;p id="ax.h3607" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3608"&gt; &lt;/p&gt; &lt;p id="ax.h3609" class="western" style="margin-left: 0.55in; font-style: normal;"&gt;&lt;br id="ax.h3610"&gt; &lt;/p&gt; &lt;p id="ax.h3611" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3612"&gt; &lt;/p&gt; &lt;h4 id="ax.h3613" class="western"&gt;&lt;a id="ax.h3614" name="2.1.9.8.Using Statement|outline"&gt;&lt;/a&gt;&lt;font id="ax.h3615" face="Times New Roman, serif"&gt;2.1.9.8Using Statement&lt;/font&gt;&lt;/h4&gt; &lt;p id="ax.h3616" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3617" face="Times New Roman, serif"&gt;&lt;font id="ax.h3618" size="2"&gt;Works with any IDisposable object&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h3619" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3620" face="Times New Roman, serif"&gt;&lt;font id="ax.h3621" size="2"&gt;&lt;b id="ax.h3622"&gt;Data access classes, streams, text readers and writers, network classes, etc.&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p id="ax.h3623" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3624"&gt; &lt;/p&gt; &lt;p id="ax.h3625" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3626"&gt; &lt;/p&gt; &lt;p id="ax.h3627" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3628"&gt; &lt;/p&gt; &lt;p id="ax.h3629" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3630"&gt; &lt;/p&gt; &lt;p id="ax.h3631" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3632"&gt; &lt;/p&gt; &lt;p id="ax.h3633" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3634"&gt; &lt;/p&gt; &lt;p id="ax.h3635" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3636"&gt; &lt;/p&gt; &lt;p id="ax.h3637" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3638"&gt; &lt;/p&gt; &lt;p id="ax.h3639" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3640"&gt; &lt;/p&gt; &lt;p id="ax.h3641" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3642"&gt; &lt;/p&gt; &lt;p id="ax.h3643" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3644"&gt; &lt;/p&gt; &lt;p id="ax.h3645" class="western" style="font-style: normal;"&gt;&lt;span id="Frame37" dir="ltr" style="border: 1px solid rgb(0, 0, 0); padding: 0.05in 0.1in; background: rgb(192, 192, 192) none repeat scroll 0% 0%; float: left; width: 5.55in; height: 2.38in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; 	&lt;p id="ax.h3646" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h3647" face="Arial, sans-serif"&gt;&lt;font id="ax.h3648" size="2"&gt;&lt;b id="ax.h3649"&gt;Good:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3650" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3651" face="Arial, sans-serif"&gt;&lt;font id="ax.h3652" size="2"&gt;&lt;b id="ax.h3653"&gt;using 	(Resource res = new Resource()) {&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3654" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;   	&lt;font id="ax.h3655" face="Arial, sans-serif"&gt;&lt;font id="ax.h3656" size="2"&gt;&lt;b id="ax.h3657"&gt;res.DoWork();&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3658" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;font id="ax.h3659" face="Arial, sans-serif"&gt;&lt;font id="ax.h3660" size="2"&gt;&lt;b id="ax.h3661"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3662" class="western" style="margin-left: 0.5in; font-style: normal;"&gt;&lt;br id="ax.h3663"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3664" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;font id="ax.h3665" face="Arial, sans-serif"&gt;&lt;font id="ax.h3666" size="2"&gt;&lt;b id="ax.h3667"&gt;Not 	Good:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3668" class="western" style="margin-left: 0in; font-style: normal;"&gt;&lt;br id="ax.h3669"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3670" class="western" style="margin-left: 0.56in; font-style: normal;"&gt;&lt;font id="ax.h3671" face="Arial, sans-serif"&gt;&lt;font id="ax.h3672" size="2"&gt;&lt;b id="ax.h3673"&gt;Resource 	res = new Resource(...);&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3674" class="western" style="margin-left: 0.56in; font-style: normal;"&gt;&lt;font id="ax.h3675" face="Arial, sans-serif"&gt;&lt;font id="ax.h3676" size="2"&gt;&lt;b id="ax.h3677"&gt;try 	{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3678" class="western" style="margin-left: 0.56in; font-style: normal;"&gt;  	 &lt;font id="ax.h3679" face="Arial, sans-serif"&gt;&lt;font id="ax.h3680" size="2"&gt;res.DoWork();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3681" class="western" style="margin-left: 0.56in; font-style: normal;"&gt;&lt;font id="ax.h3682" face="Arial, sans-serif"&gt;&lt;font id="ax.h3683" size="2"&gt;&lt;b id="ax.h3684"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3685" class="western" style="margin-left: 0.56in; font-style: normal;"&gt;&lt;font id="ax.h3686" face="Arial, sans-serif"&gt;&lt;font id="ax.h3687" size="2"&gt;&lt;b id="ax.h3688"&gt;finally 	{&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3689" class="western" style="margin-left: 0.56in; font-style: normal;"&gt;  	 &lt;font id="ax.h3690" face="Arial, sans-serif"&gt;&lt;font id="ax.h3691" size="2"&gt;if (res != null) 	((IDisposable)res).Dispose();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3692" class="western" style="margin-left: 0.56in; font-style: normal;"&gt;&lt;font id="ax.h3693" face="Arial, sans-serif"&gt;&lt;font id="ax.h3694" size="2"&gt;&lt;b id="ax.h3695"&gt;}&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 	&lt;p id="ax.h3696" class="western" style="margin-left: 0.56in; font-style: normal;"&gt;&lt;br id="ax.h3697"&gt; 	&lt;/p&gt; 	&lt;p id="ax.h3698" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3699"&gt; 	&lt;/p&gt; &lt;/span&gt;&lt;br id="ax.h3700"&gt; &lt;/p&gt; &lt;p id="ax.h3701" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3702"&gt; &lt;/p&gt; &lt;p id="ax.h3703" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3704"&gt; &lt;/p&gt; &lt;p id="ax.h3705" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3706"&gt; &lt;/p&gt; &lt;p id="ax.h3707" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3708"&gt; &lt;/p&gt; &lt;p id="ax.h3709" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3710"&gt; &lt;/p&gt; &lt;p id="ax.h3711" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3712"&gt; &lt;/p&gt; &lt;p id="ax.h3713" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3714"&gt; &lt;/p&gt; &lt;p id="ax.h3715" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3716"&gt; &lt;/p&gt; &lt;p id="ax.h3717" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3718"&gt; &lt;/p&gt; &lt;p id="ax.h3719" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3720"&gt; &lt;/p&gt; &lt;p id="ax.h3721" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3722"&gt; &lt;/p&gt; &lt;p id="ax.h3723" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3724"&gt; &lt;/p&gt; &lt;p id="ax.h3725" class="western" style="font-style: normal;"&gt;&lt;br id="ax.h3726"&gt; &lt;/p&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-7483775553382075088?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/08/best-practices-for-good-programming.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-6343956275581253772</guid><pubDate>Tue, 05 Aug 2008 09:01:00 +0000</pubDate><atom:updated>2008-08-05T02:53:15.237-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>String Formats</title><description>&lt;span style="color: rgb(255, 153, 0); font-weight: bold;"&gt;DATE TIME&lt;/span&gt;&lt;br /&gt;How to format &lt;a href="http://msdn2.microsoft.com/en-us/library/system.datetime.aspx"&gt;DateTime&lt;/a&gt; using &lt;a href="http://msdn2.microsoft.com/en-us/library/system.string.format.aspx"&gt;String.Format&lt;/a&gt; method. All formatting can be done also using &lt;a href="http://msdn2.microsoft.com/en-us/library/zdtaw1bw.aspx"&gt;DateTime.ToString&lt;/a&gt; method.&lt;h2&gt;Custom DateTime Formatting&lt;/h2&gt;  &lt;p&gt;There are following custom format specifiers &lt;code&gt;y&lt;/code&gt; (year), &lt;code&gt;M&lt;/code&gt; (month), &lt;code&gt;d&lt;/code&gt; (day), &lt;code&gt;h&lt;/code&gt; (hour 12), &lt;code&gt;H&lt;/code&gt; (hour 24), &lt;code&gt;m&lt;/code&gt; (minute), &lt;code&gt;s&lt;/code&gt; (second), &lt;code&gt;f&lt;/code&gt; (second fraction), &lt;code&gt;F&lt;/code&gt; (second fraction, trailing zeroes are trimmed), &lt;code&gt;t&lt;/code&gt; (P.M or A.M) and &lt;code&gt;z&lt;/code&gt; (time zone).&lt;/p&gt;  &lt;p&gt;Following examples demonstrate how are the format specifiers rewritten to the output.&lt;/p&gt;&lt;br /&gt; &lt;pre class="code"&gt;&lt;span class="comments"&gt;// create date time 2008-03-09 16:05:07.123&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;DateTime&lt;/span&gt; dt = &lt;span class="keyword"&gt;new&lt;/span&gt; &lt;span class="type"&gt;DateTime&lt;/span&gt;(2008, 3, 9, 16, 5, 7, 123);&lt;br /&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:y yy yyy yyyy}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "8 08 008 2008"   year&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:M MM MMM MMMM}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "3 03 Mar March"  month&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:d dd ddd dddd}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "9 09 Sun Sunday" day&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:h hh H HH}"&lt;/span&gt;,     dt);  &lt;span class="comments"&gt;// "4 04 16 16"      hour 12/24&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:m mm}"&lt;/span&gt;,          dt);  &lt;span class="comments"&gt;// "5 05"            minute&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:s ss}"&lt;/span&gt;,          dt);  &lt;span class="comments"&gt;// "7 07"            second&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:f ff fff ffff}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "1 12 123 1230"   sec.fraction&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:F FF FFF FFFF}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "1 12 123 123"    without zeroes&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:t tt}"&lt;/span&gt;,          dt);  &lt;span class="comments"&gt;// "P PM"            A.M. or P.M.&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:z zz zzz}"&lt;/span&gt;,      dt);  &lt;span class="comments"&gt;// "-6 -06 -06:00"   time zone&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;You can use also &lt;strong&gt;date separator&lt;/strong&gt; &lt;code&gt;/&lt;/code&gt; (slash) and &lt;strong&gt;time sepatator&lt;/strong&gt; &lt;code&gt;:&lt;/code&gt; (colon). These characters will be rewritten to characters defined in the current &lt;a href="http://msdn2.microsoft.com/en-us/library/system.globalization.datetimeformatinfo.dateseparator.aspx"&gt;DateTimeForma­tInfo.DateSepa­rator&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/system.globalization.datetimeformatinfo.timeseparator.aspx"&gt;DateTimeForma­tInfo.TimeSepa­rator&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt; &lt;pre class="code"&gt;&lt;span class="comments"&gt;// date separator in german culture is "." (so "/" changes to ".")&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:d/M/yyyy HH:mm:ss}"&lt;/span&gt;, dt); &lt;span class="comments"&gt;// "9/3/2008 16:05:07" - english (en-US)&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:d/M/yyyy HH:mm:ss}"&lt;/span&gt;, dt); &lt;span class="comments"&gt;// "9.3.2008 16:05:07" - german (de-DE)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;Here are some examples of custom date and time formatting:&lt;/p&gt;&lt;br /&gt; &lt;pre class="code"&gt;&lt;span class="comments"&gt;// month/day numbers without/with leading zeroes&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:M/d/yyyy}"&lt;/span&gt;, dt);            &lt;span class="comments"&gt;// "3/9/2008"&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:MM/dd/yyyy}"&lt;/span&gt;, dt);          &lt;span class="comments"&gt;// "03/09/2008"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="comments"&gt;// day/month names&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:ddd, MMM d, yyyy}"&lt;/span&gt;, dt);    &lt;span class="comments"&gt;// "Sun, Mar 9, 2008"&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:dddd, MMMM d, yyyy}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "Sunday, March 9, 2008"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="comments"&gt;// two/four digit year&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:MM/dd/yy}"&lt;/span&gt;, dt);            &lt;span class="comments"&gt;// "03/09/08"&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:MM/dd/yyyy}"&lt;/span&gt;, dt);          &lt;span class="comments"&gt;// "03/09/2008"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;h2&gt;Standard DateTime Formatting&lt;/h2&gt;  &lt;p&gt;In &lt;a href="http://msdn2.microsoft.com/en-us/library/system.globalization.datetimeformatinfo.aspx"&gt;DateTimeForma­tInfo&lt;/a&gt; there are defined standard patterns for the current culture. For example property &lt;a href="http://msdn2.microsoft.com/en-us/library/system.globalization.datetimeformatinfo.shorttimepattern.aspx"&gt;ShortTimePattern&lt;/a&gt; is string that contains value &lt;code&gt;h:mm tt&lt;/code&gt; for &lt;strong&gt;en-US&lt;/strong&gt; culture and value &lt;code&gt;HH:mm&lt;/code&gt; for &lt;strong&gt;de-DE&lt;/strong&gt; culture.&lt;/p&gt;  &lt;p&gt;Following table shows patterns defined in &lt;a href="http://msdn2.microsoft.com/en-us/library/system.globalization.datetimeformatinfo.aspx"&gt;DateTimeForma­tInfo&lt;/a&gt; and their values for en-US culture. First column contains format specifiers for the &lt;a href="http://msdn2.microsoft.com/en-us/library/system.string.format.aspx"&gt;String.Format&lt;/a&gt; method.&lt;/p&gt;  &lt;table&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;th&gt;Specifier&lt;/th&gt;    &lt;th&gt;DateTimeFormatInfo property&lt;/th&gt;    &lt;th&gt;Pattern value (for en-US culture)&lt;/th&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;t&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;ShortTimePattern&lt;/td&gt;    &lt;td&gt;&lt;code&gt;h:mm tt&lt;/code&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;d&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;ShortDatePattern&lt;/td&gt;    &lt;td&gt;&lt;code&gt;M/d/yyyy&lt;/code&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;T&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;LongTimePattern&lt;/td&gt;    &lt;td&gt;&lt;code&gt;h:mm:ss tt&lt;/code&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;D&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;LongDatePattern&lt;/td&gt;    &lt;td&gt;&lt;code&gt;dddd, MMMM dd, yyyy&lt;/code&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;f&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;&lt;em&gt;(combination of &lt;code&gt;D&lt;/code&gt; and &lt;code&gt;t&lt;/code&gt;)&lt;/em&gt;&lt;/td&gt;    &lt;td&gt;&lt;code&gt;dddd, MMMM dd, yyyy h:mm tt&lt;/code&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;F&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;FullDateTimePattern&lt;/td&gt;    &lt;td&gt;&lt;code&gt;dddd, MMMM dd, yyyy h:mm:ss tt&lt;/code&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;g&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;&lt;em&gt;(combination of &lt;code&gt;d&lt;/code&gt; and &lt;code&gt;t&lt;/code&gt;)&lt;/em&gt;&lt;/td&gt;    &lt;td&gt;&lt;code&gt;M/d/yyyy h:mm tt&lt;/code&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;G&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;&lt;em&gt;(combination of &lt;code&gt;d&lt;/code&gt; and &lt;code&gt;T&lt;/code&gt;)&lt;/em&gt;&lt;/td&gt;    &lt;td&gt;&lt;code&gt;M/d/yyyy h:mm:ss tt&lt;/code&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;m&lt;/code&gt;, &lt;code&gt;M&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;MonthDayPattern&lt;/td&gt;    &lt;td&gt;&lt;code&gt;MMMM dd&lt;/code&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;y&lt;/code&gt;, &lt;code&gt;Y&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;YearMonthPattern&lt;/td&gt;    &lt;td&gt;&lt;code&gt;MMMM, yyyy&lt;/code&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;r&lt;/code&gt;, &lt;code&gt;R&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;RFC1123Pattern&lt;/td&gt;    &lt;td&gt;&lt;code&gt;ddd, dd MMM yyyy HH':'mm':'ss 'GMT'&lt;/code&gt; &lt;em&gt;(*)&lt;/em&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;s&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;SortableDateTi­mePattern&lt;/td&gt;    &lt;td&gt;&lt;code&gt;yyyy'-'MM'-'dd'T'HH':'mm':'ss&lt;/code&gt; &lt;em&gt;(*)&lt;/em&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt;&lt;code&gt;u&lt;/code&gt;&lt;/td&gt;    &lt;td&gt;UniversalSorta­bleDateTimePat­tern&lt;/td&gt;    &lt;td&gt;&lt;code&gt;yyyy'-'MM'-'dd HH':'mm':'ss'Z'&lt;/code&gt; &lt;em&gt;(*)&lt;/em&gt;&lt;/td&gt;  &lt;/tr&gt;   &lt;tr&gt;   &lt;td&gt; &lt;/td&gt;    &lt;td&gt; &lt;/td&gt;    &lt;td&gt;&lt;em&gt;(*) = culture independent&lt;/em&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;Following examples show usage of &lt;strong&gt;standard format specifiers&lt;/strong&gt; in &lt;a href="http://msdn2.microsoft.com/en-us/library/system.string.format.aspx"&gt;String.Format&lt;/a&gt; method and the resulting output.&lt;/p&gt;&lt;br /&gt; &lt;pre class="code"&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:t}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "4:05 PM"                         ShortTime&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:d}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "3/9/2008"                        ShortDate&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:T}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "4:05:07 PM"                      LongTime&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:D}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "Sunday, March 09, 2008"          LongDate&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:f}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "Sunday, March 09, 2008 4:05 PM"  LongDate+ShortTime&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:F}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "Sunday, March 09, 2008 4:05:07 PM" FullDateTime&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:g}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "3/9/2008 4:05 PM"                ShortDate+ShortTime&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:G}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "3/9/2008 4:05:07 PM"             ShortDate+LongTime&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:m}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "March 09"                        MonthDay&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:y}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "March, 2008"                     YearMonth&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:r}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "Sun, 09 Mar 2008 16:05:07 GMT"   RFC1123&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:s}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "2008-03-09T16:05:07"             SortableDateTime&lt;/span&gt;&lt;br /&gt;&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:u}"&lt;/span&gt;, dt);  &lt;span class="comments"&gt;// "2008-03-09 16:05:07Z"            UniversalSortableDateTime&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);"&gt;INTEGER&lt;/span&gt;&lt;br /&gt;Integer numbers can be formatted in .NET in many ways. You can use static&lt;br /&gt;method String.&lt;a href="http://msdn2.microsoft.com/en-us/library/system.string.format.aspx" rel="nofollow"&gt;Format&lt;/a&gt; or instance method int.&lt;a href="http://msdn2.microsoft.com/en-us/library/system.int32.tostring.aspx" rel="nofollow"&gt;ToString&lt;/a&gt;. Following examples shows how to align numbers (with&lt;br /&gt;spaces or zeroes), how to format negative numbers or how to do custom formatting&lt;br /&gt;like phone numbers.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;h2&gt;Add zeroes before number&lt;/h2&gt;  &lt;p&gt;To add zeroes before a number, use &lt;strong&gt;colon separator „:“&lt;/strong&gt; and write as many zeroes as you want.&lt;/p&gt;&lt;br /&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:00000}"&lt;/span&gt;, 15);          &lt;span class="comments"&gt;// "00015"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:00000}"&lt;/span&gt;, -15);         &lt;span class="comments"&gt;// "-00015"&lt;/span&gt;    &lt;h2&gt;Align number to the right or left&lt;/h2&gt;  &lt;p&gt;To align number to the right, use &lt;strong&gt;comma „,“&lt;/strong&gt; followed by a number of characters. This alignment option must be before the colon separator.&lt;/p&gt;&lt;br /&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0,5}"&lt;/span&gt;, 15);              &lt;span class="comments"&gt;// "   15"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0,-5}"&lt;/span&gt;, 15);             &lt;span class="comments"&gt;// "15   "&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0,5:000}"&lt;/span&gt;, 15);          &lt;span class="comments"&gt;// "  015"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0,-5:000}"&lt;/span&gt;, 15);         &lt;span class="comments"&gt;// "015  "&lt;/span&gt;    &lt;h2&gt;Different formatting for negative numbers and zero&lt;/h2&gt;  &lt;p&gt;You can have special format for negative numbers and zero. Use &lt;strong&gt;semicolon separator „;“&lt;/strong&gt; to separate formatting to two or three sections. The second section is format for negative numbers, the third section is for zero.&lt;/p&gt;&lt;br /&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:#;minus #}"&lt;/span&gt;, 15);      &lt;span class="comments"&gt;// "15"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:#;minus #}"&lt;/span&gt;, -15);     &lt;span class="comments"&gt;// "minus 15"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:#;minus #;zero}"&lt;/span&gt;, 0);  &lt;span class="comments"&gt;// "zero"&lt;/span&gt;    &lt;h2&gt;Custom number formatting (e.g. phone number)&lt;/h2&gt;  &lt;p&gt;Numbers can be formatted also to any custom format, e.g. like phone numbers or serial numbers.&lt;/p&gt;&lt;br /&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:+### ### ### ###}"&lt;/span&gt;, 447900123456); &lt;span class="comments"&gt;// "+447 900 123 456"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:##-####-####}"&lt;/span&gt;, 8958712551);       &lt;span class="comments"&gt;// "89-5871-2551"&lt;/span&gt;  &lt;pre class="code"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;DOUBLE&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;The following examples show how to format float numbers to string in C#. You can use static method &lt;strong&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/system.string.format.aspx" rel="nofollow"&gt;String.Format&lt;/a&gt;&lt;/strong&gt; or instance methods &lt;a href="http://msdn2.microsoft.com/en-us/library/kfsatb94.aspx"&gt;double.ToString&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/f71z6k0c.aspx"&gt;float.ToString&lt;/a&gt;.&lt;/p&gt;  &lt;h2&gt;Digits after decimal point&lt;/h2&gt;  &lt;p&gt;This example formats double to string with &lt;strong&gt;fixed number of decimal places&lt;/strong&gt;. For two decimal places use pattern „&lt;b&gt;0.00&lt;/b&gt;“. If a float number has less decimal places, the rest digits on the right will be zeroes. If it has more decimal places, the number will be rounded.&lt;/p&gt;&lt;br /&gt; &lt;span class="comments"&gt;// just two decimal places&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0.00}"&lt;/span&gt;, 123.4567);      &lt;span class="comments"&gt;// "123.46"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0.00}"&lt;/span&gt;, 123.4);         &lt;span class="comments"&gt;// "123.40"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0.00}"&lt;/span&gt;, 123.0);         &lt;span class="comments"&gt;// "123.00"&lt;/span&gt;    &lt;p&gt;Next example formats double to string with &lt;strong&gt;floating number of decimal places&lt;/strong&gt;. E.g. for maximal two decimal places use pattern „&lt;b&gt;0.##&lt;/b&gt;“.&lt;/p&gt;&lt;br /&gt; &lt;span class="comments"&gt;// max. two decimal places&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0.##}"&lt;/span&gt;, 123.4567);      &lt;span class="comments"&gt;// "123.46"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0.##}"&lt;/span&gt;, 123.4);         &lt;span class="comments"&gt;// "123.4"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0.##}"&lt;/span&gt;, 123.0);         &lt;span class="comments"&gt;// "123"&lt;/span&gt;    &lt;h2&gt;Digits before decimal point&lt;/h2&gt;  &lt;p&gt;If you want a float number to have any &lt;strong&gt;minimal number of digits before decimal point&lt;/strong&gt; use N-times zero before decimal point. E.g. pattern „&lt;b&gt;00.0&lt;/b&gt;“ formats a float number to string with at least two digits before decimal point and one digit after that.&lt;/p&gt;&lt;br /&gt; &lt;span class="comments"&gt;// at least two digits before decimal point&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:00.0}"&lt;/span&gt;, 123.4567);      &lt;span class="comments"&gt;// "123.5"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:00.0}"&lt;/span&gt;, 23.4567);       &lt;span class="comments"&gt;// "23.5"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:00.0}"&lt;/span&gt;, 3.4567);        &lt;span class="comments"&gt;// "03.5"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:00.0}"&lt;/span&gt;, -3.4567);       &lt;span class="comments"&gt;// "-03.5"&lt;/span&gt;    &lt;h2&gt;Thousands separator&lt;/h2&gt;  &lt;p&gt;To format double to string &lt;strong&gt;with use of thousands separator&lt;/strong&gt; use zero and comma separator before an usual float formatting pattern, e.g. pattern „&lt;b&gt;0,0.0&lt;/b&gt;“ formats the number to use thousands separators and to have one decimal place.&lt;/p&gt;&lt;br /&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0,0.0}"&lt;/span&gt;, 12345.67);     &lt;span class="comments"&gt;// "12,345.7"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0,0}"&lt;/span&gt;, 12345.67);       &lt;span class="comments"&gt;// "12,346"&lt;/span&gt;    &lt;h2&gt;Zero&lt;/h2&gt;  &lt;p&gt;Float &lt;strong&gt;numbers between zero and one&lt;/strong&gt; can be formatted in two ways, with or without leading zero before decimal point. To format number without a leading zero use &lt;b&gt;#&lt;/b&gt; before point. For example „&lt;b&gt;#.0&lt;/b&gt;“ formats number to have one decimal place and zero to N digits before decimal point (e.g. „.5“ or „123.5“).&lt;/p&gt;  &lt;p&gt;Following code shows &lt;strong&gt;how can be formatted a zero&lt;/strong&gt; (of double type).&lt;/p&gt;&lt;br /&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0.0}"&lt;/span&gt;, 0.0);            &lt;span class="comments"&gt;// "0.0"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0.#}"&lt;/span&gt;, 0.0);            &lt;span class="comments"&gt;// "0"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:#.0}"&lt;/span&gt;, 0.0);            &lt;span class="comments"&gt;// ".0"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:#.#}"&lt;/span&gt;, 0.0);            &lt;span class="comments"&gt;// ""&lt;/span&gt;    &lt;h2&gt;Align numbers with spaces&lt;/h2&gt;  &lt;p&gt;To align float number &lt;strong&gt;to the right&lt;/strong&gt; use comma „&lt;b&gt;,&lt;/b&gt;“ option before the colon. Type comma followed by a number of spaces, e.g. „&lt;b&gt;0,10:0.0&lt;/b&gt;“ (this can be used only in &lt;a href="http://msdn2.microsoft.com/en-us/library/system.string.format.aspx" rel="nofollow"&gt;String.Format&lt;/a&gt; method, not in &lt;a href="http://msdn2.microsoft.com/en-us/library/kfsatb94.aspx"&gt;double.ToString&lt;/a&gt; method). To align numbers &lt;strong&gt;to the left&lt;/strong&gt; use negative number of spaces.&lt;/p&gt;&lt;br /&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0,10:0.0}"&lt;/span&gt;, 123.4567);    &lt;span class="comments"&gt;// "     123.5"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0,-10:0.0}"&lt;/span&gt;, 123.4567);   &lt;span class="comments"&gt;// "123.5     "&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0,10:0.0}"&lt;/span&gt;, -123.4567);   &lt;span class="comments"&gt;// "    -123.5"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0,-10:0.0}"&lt;/span&gt;, -123.4567);  &lt;span class="comments"&gt;// "-123.5    "&lt;/span&gt;    &lt;h2&gt;Custom formatting for negative numbers and zero&lt;/h2&gt;  &lt;p&gt;If you need to use custom format for negative float numbers or zero, use &lt;strong&gt;semicolon separator&lt;/strong&gt; „&lt;b&gt;;&lt;/b&gt;“ to split pattern to &lt;strong&gt;three sections&lt;/strong&gt;. The first section formats positive numbers, the &lt;strong&gt;second section formats negative numbers&lt;/strong&gt; and the third section formats zero. If you omit the last section, zero will be formatted using the first section.&lt;/p&gt;&lt;br /&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0.00;minus 0.00;zero}"&lt;/span&gt;, 123.4567);   &lt;span class="comments"&gt;// "123.46"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0.00;minus 0.00;zero}"&lt;/span&gt;, -123.4567);  &lt;span class="comments"&gt;// "minus 123.46"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0.00;minus 0.00;zero}"&lt;/span&gt;, 0.0);        &lt;span class="comments"&gt;// "zero"&lt;/span&gt;    &lt;h2&gt;Some funny examples&lt;/h2&gt;  &lt;p&gt;As you could notice in the previous example, you can put any text into formatting pattern, e.g. before an usual pattern „&lt;b&gt;&lt;i&gt;my text &lt;/i&gt;0.0&lt;/b&gt;“. You can even put any text between the zeroes, e.g. „&lt;b&gt;0&lt;i&gt;aaa&lt;/i&gt;.&lt;i&gt;bbb&lt;/i&gt;0&lt;/b&gt;“.&lt;/p&gt;&lt;br /&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:my number is 0.0}"&lt;/span&gt;, 12.3);   &lt;span class="comments"&gt;// "my number is 12.3"&lt;/span&gt; &lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0:0aaa.bbb0}"&lt;/span&gt;, 12.3);          &lt;span class="comments"&gt;// "12aaa.bbb3"&lt;/span&gt;  &lt;pre class="code"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;h1&gt;Align String with Spaces [C#]&lt;/h1&gt;  &lt;p&gt;This example shows how to align strings with spaces. The example formats text to table and writes it to console output.&lt;/p&gt;  &lt;p&gt;To align string to the right or to the left use static method &lt;a href="http://msdn2.microsoft.com/en-us/library/system.string.format.aspx" rel="nofollow"&gt;String.Format&lt;/a&gt;. To &lt;strong&gt;align string to the left&lt;/strong&gt; (spaces on the right) use formatting patern with &lt;b&gt;comma&lt;/b&gt; (&lt;b&gt;,&lt;/b&gt;) followed by a negative number of characters: String.Format(„{0,–10}“, text). To &lt;strong&gt;right alignment&lt;/strong&gt; use a positive number: {0,10}.&lt;/p&gt;  &lt;p&gt;Following example shows how to format text to the table. Values in the first and second column are aligned to the left and the third column is aligned to the right.&lt;/p&gt; [C#]&lt;br /&gt; &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(&lt;span class="string"&gt;"-------------------------------"&lt;/span&gt;); &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(&lt;span class="string"&gt;"First Name | Last Name  |   Age"&lt;/span&gt;); &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(&lt;span class="string"&gt;"-------------------------------"&lt;/span&gt;); &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0,-10} | {1,-10} | {2,5}"&lt;/span&gt;, &lt;span class="string"&gt;"Bill"&lt;/span&gt;, &lt;span class="string"&gt;"Gates"&lt;/span&gt;, 51)); &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0,-10} | {1,-10} | {2,5}"&lt;/span&gt;, &lt;span class="string"&gt;"Edna"&lt;/span&gt;, &lt;span class="string"&gt;"Parker"&lt;/span&gt;, 114)); &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(&lt;span class="type"&gt;String&lt;/span&gt;.Format(&lt;span class="string"&gt;"{0,-10} | {1,-10} | {2,5}"&lt;/span&gt;, &lt;span class="string"&gt;"Johnny"&lt;/span&gt;, &lt;span class="string"&gt;"Depp"&lt;/span&gt;, 44)); &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(&lt;span class="string"&gt;"-------------------------------"&lt;/span&gt;);    Output string:&lt;br /&gt;  -------------------------------  First Name | Last Name  |   Age  -------------------------------  Bill       | Gates      |    51  Edna       | Parker     |   114  Johnny     | Depp       |    44  ------------------------------- &lt;pre class="code"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;h1&gt;Indent String with Spaces [C#]&lt;/h1&gt;  &lt;p&gt;This example shows how to indent strings using method for padding in C#. To &lt;strong&gt;repeat spaces&lt;/strong&gt; use method &lt;a href="http://msdn2.microsoft.com/en-us/library/system.string.padleft.aspx"&gt;String.PadLeft&lt;/a&gt;. If you call „hello“.PadLeft(10) you will get the string aligned to the right: „     hello“. If you use empty string instead of the „hello“ string the result will be 10× repeated space character. This can be used to create simple Indent method.&lt;/p&gt;  &lt;p&gt;The Indent method:&lt;/p&gt; [C#]&lt;br /&gt; &lt;span class="keyword"&gt;public static string&lt;/span&gt; &lt;strong&gt;Indent&lt;/strong&gt;(&lt;span class="keyword"&gt;int&lt;/span&gt; count) {     &lt;span class="keyword"&gt;return&lt;/span&gt; &lt;span class="string"&gt;""&lt;/span&gt;.PadLeft(count); }    &lt;p&gt;Test code:&lt;/p&gt; [C#]&lt;br /&gt; &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(Indent(0) + &lt;span class="string"&gt;"List"&lt;/span&gt;); &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(Indent(3) + &lt;span class="string"&gt;"Item 1"&lt;/span&gt;); &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(Indent(6) + &lt;span class="string"&gt;"Item 1.1"&lt;/span&gt;); &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(Indent(6) + &lt;span class="string"&gt;"Item 1.2"&lt;/span&gt;); &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(Indent(3) + &lt;span class="string"&gt;"Item 2"&lt;/span&gt;); &lt;span class="type"&gt;Console&lt;/span&gt;.WriteLine(Indent(6) + &lt;span class="string"&gt;"Item 2.1"&lt;/span&gt;);    &lt;p&gt;Output string:&lt;/p&gt;  List    Item 1       Item 1.1       Item 1.2    Item 2       Item 2.1 &lt;pre class="code"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-6343956275581253772?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/08/string-formats.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-460384867653441088</guid><pubDate>Mon, 04 Aug 2008 06:04:00 +0000</pubDate><atom:updated>2008-08-03T23:18:16.472-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>How to prevent our .NET DLL from decompilation</title><description>&lt;div dir="ltr"&gt;&lt;b&gt;Scenario: &lt;/b&gt;By design, .NET embeds rich Meta data inside the executable code using MSIL. Any one can&lt;br&gt;easily decompile your DLL back using tools like ILDASM (owned by Microsoft) or Reflector for&lt;br&gt;.NET which is a third party. &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Secondly, there are many third party tools, which make this&lt;br&gt;decompiling process int a single click. So any one can easily look in to your assemblies and reverse&lt;br&gt;engineer them back in to actual source code and understand some real good logic, which can&lt;br&gt; make it easy to crack your application.&lt;br&gt;&lt;br&gt;&lt;b&gt;Here the solution:&lt;/b&gt; You can stop this reverse engineering by using "&lt;b&gt;obfuscation&lt;/b&gt;". It is a&lt;br&gt;technique, which will foil the decompilers. Many third parties (XenoCode, Demeanor for .NET)&lt;br&gt; provide .NET obfuscation solution. Microsoft includes one that is Dotfuscator Community&lt;br&gt;Edition with Visual Studio.NET.&lt;br&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-460384867653441088?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/08/how-to-prevent-our-net-dll-from.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-7527441014844610578</guid><pubDate>Fri, 01 Aug 2008 05:57:00 +0000</pubDate><atom:updated>2008-07-31T23:45:06.649-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>Automatically adding namespace</title><description>&lt;span style="font-weight: bold;"&gt;Scenario:&lt;/span&gt; Consider that u want to use a class but u don't know under which namespace the class belong.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Here the solution:&lt;/span&gt; keep the cursor on the class that u r using and press 'Alt+Shift+F10' a new popup menu will occur which will show the namespace just click on the popup menu the name space will automatically added in the starting of ur code.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;using System;&lt;br /&gt;Regex clsReg = new Regex(); here Regex is a class which comes under System.Text.RegularExpressions namespace but u didnt include it in ur code&lt;br /&gt;&lt;br /&gt;now keep the cursor on Regex and press alt+shit+F10 a popup menu will occur like the below image.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_MtqNsO2zX8s/SJKoBxgXXwI/AAAAAAAAACE/QxrQaExIuo4/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp2.blogger.com/_MtqNsO2zX8s/SJKoBxgXXwI/AAAAAAAAACE/QxrQaExIuo4/s320/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5229426865752989442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then click the using System.Text.RegularExpressions;&lt;br /&gt;now u go and see the starting page of ur code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note:&lt;/span&gt; This technique will workout for all the built in classes also for the classes which are added in the reference.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-7527441014844610578?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/07/automatically-adding-namespace.html</link><author>nirmal292283@gmail.com (Nirmal)</author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_MtqNsO2zX8s/SJKoBxgXXwI/AAAAAAAAACE/QxrQaExIuo4/s72-c/untitled.JPG' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-3314150739943146258</guid><pubDate>Wed, 30 Jul 2008 16:14:00 +0000</pubDate><atom:updated>2008-07-30T09:30:49.677-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>IS IT POSSIBLE TO USE INNER JOIN QUERY IN A DATASET</title><description>&lt;span style="font-weight: bold;"&gt;Scenario: &lt;/span&gt;U have 2 tables in ur dataset with both the table contains a column name 'Samecolumn'&lt;br /&gt;Table1: Samecolumn has the following 3 value&lt;br /&gt;              col1&lt;br /&gt;              col2&lt;br /&gt;              col3&lt;br /&gt;Table2: Samecolumn has the following 2 value&lt;br /&gt;              col2&lt;br /&gt;              col3&lt;br /&gt;Is it possible to query in the dataset to get the ouput of 2 rows i.e) col2, col3&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Solution:&lt;/span&gt; No, There is no direct way to get the child rows&lt;br /&gt;                     DataRelation and get joined rows, you will need to use the GetChildRows method of DataRow and pass the DataRelation object.&lt;br /&gt;                    The following code example creates a DataRelation between the Customers&lt;br /&gt;table and the Orders table of a DataSet and returns all the orders for each&lt;br /&gt;customer.&lt;br /&gt;&lt;br /&gt;Dim custOrderRel As DataRelation = custDataset.Relations.Add("CustOrders", _&lt;br /&gt;custDS.Tables("Table1").Columns("Samecolumn"), _&lt;br /&gt;custDS.Tables("Table2").Columns("Samecolumn"))&lt;br /&gt;&lt;br /&gt;Dim custRow As DataRow&lt;br /&gt;Dim orderRow As DataRow&lt;br /&gt;&lt;br /&gt;For Each custRow in custDataset.Tables("Table1").Rows&lt;br /&gt;   Console.WriteLine(custRow("Samecolumn"))&lt;br /&gt;   For Each orderRow in custRow.GetChildRows(custOrderRel)&lt;br /&gt;     Console.WriteLine(orderRow("Samecolumn"))&lt;br /&gt;   Next&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-3314150739943146258?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/07/is-it-possible-to-use-inner-join-query.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-1156138052802762111</guid><pubDate>Wed, 30 Jul 2008 09:00:00 +0000</pubDate><atom:updated>2008-07-30T02:06:47.469-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Commercial</category><title>Rare images</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_MtqNsO2zX8s/SJAuufkxltI/AAAAAAAAABs/b8MVcMJtqZU/s1600-h/img1.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://bp0.blogger.com/_MtqNsO2zX8s/SJAuufkxltI/AAAAAAAAABs/b8MVcMJtqZU/s320/img1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5228730543661749970" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-1156138052802762111?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/07/rare-images.html</link><author>nirmal292283@gmail.com (Nirmal)</author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_MtqNsO2zX8s/SJAuufkxltI/AAAAAAAAABs/b8MVcMJtqZU/s72-c/img1.jpg' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-897096056044264185</guid><pubDate>Tue, 29 Jul 2008 09:53:00 +0000</pubDate><atom:updated>2008-07-29T22:48:59.035-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>Find rowindex in dataset based on datarow, Set primary key to dataset</title><description>&lt;div dir="ltr"&gt;&lt;style&gt;&lt;/style&gt;&lt;font color="#008000"&gt;//To SETS THE DATASET PRIMARY KEY&lt;br&gt;&lt;/font&gt;DataCoulumn[] keys  = new DataColumn[1];&lt;br&gt;keys[0] =  DataSet.Tables[&amp;quot;mytable&amp;quot;].Column[&amp;quot;i_ID&amp;quot;];&lt;br&gt;DataSet.Tables[&amp;quot;mytable&amp;quot;].PrimaryKey  = keys;  &lt;p&gt;&lt;font color="#008000"&gt;// To Bind in THE DATAGRID  VIEW&lt;/font&gt;&lt;br&gt;BindingManagerBase bm;&lt;br&gt;DataGridView1.DataSource =  DataSet.Tables[&amp;quot;mytable&amp;quot;].DefaultView;&lt;br&gt;bm =  this.DataGridView1.BindingContext[this.DataGridView1.DataSource, this.  DataGridView1.DataMember];&lt;/p&gt; &lt;p&gt;&lt;font color="#008000"&gt;//You have a datarow and u need to find the rowindex of the row in dataset &lt;br&gt;&lt;/font&gt;DataRow  findRow = DataSet.Tables[&amp;quot;mytable&amp;quot;].Rows.Find(((DataRowView)bm.Current).Row[0]);  // Row[0] is the collumn to seach in in this case ID column&lt;br&gt;int indexNumber =  DataSet.Tables[&amp;quot;mytable&amp;quot;].Rows.IndexOF(findRow);&lt;/p&gt; &lt;div&gt;&lt;font size="2" face="Arial"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-897096056044264185?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/07/find-rowindex-in-dataset-based-on.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-7747515710596012192</guid><pubDate>Tue, 29 Jul 2008 06:39:00 +0000</pubDate><atom:updated>2008-07-30T02:51:49.456-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>Ping a machine using c#.net</title><description>&lt;div dir="ltr"&gt;&lt;span style="font-weight: bold;"&gt;Name space&lt;/span&gt;: using System.Net.NetworkInformation;&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                Ping oping = new Ping();&lt;br /&gt;                PingReply oReply = oping.Send(machineipaddress);&lt;br /&gt;                if (oReply.Status.ToString().ToLower() != "success")&lt;br /&gt;                {&lt;br /&gt;                    MessageBox.Show("Unable to ping the machine " + machineipaddress + "\n\n\t" + oReply.Status);&lt;br /&gt;                    Environment.Exit(0);&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;            catch (PingException ex)&lt;br /&gt;            {&lt;br /&gt;                MessageBox.Show("Error while pinging the machine " + machineipaddress + "\n\n" + ex.Message);&lt;br /&gt;                Environment.Exit(0);&lt;br /&gt;            }&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-7747515710596012192?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/07/ping-machine-using-cnet.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-2149321053643539246</guid><pubDate>Mon, 28 Jul 2008 09:36:00 +0000</pubDate><atom:updated>2008-07-30T01:27:59.543-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>DotNet interview Questions</category><title>.net windows forms interview question</title><description>&lt;div dir="ltr"&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 9"&gt;&lt;meta name="Originator" content="Microsoft Word 9"&gt;&lt;link rel="File-List" href="file:///C:/DOCUME%7E1/nirmaln/LOCALS%7E1/Temp/msoclip1/01/clip_filelist.xml"&gt;&lt;style&gt; &amp;lt;!--  /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:&amp;quot;&amp;quot;; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&amp;quot;Times New Roman&amp;quot;; 	mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;} pre 	{margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:&amp;quot;Courier New&amp;quot;; 	mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */ @list l0 	{mso-list-id:1469742420; 	mso-list-template-ids:-995558110;} @list l0:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&amp;gt; &lt;/style&gt;  &lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Can you write a class      without specifying namespace? Which namespace does it belong to by      default?&lt;/b&gt;?&lt;br&gt;      Yes, you can, then the class belongs to global namespace which has no      name. For commercial products, naturally, you wouldn't want global      namespace. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;You are designing a GUI      application with a window and several widgets on it. The user then resizes      the app window and sees a lot of grey space, while the widgets stay in      place. What's the problem?&lt;/b&gt; One should use anchoring for correct      resizing. Otherwise the default property of a widget on a form is      top-left, so it stays at the same location when resized. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;How can you save the      desired properties of Windows Forms application?&lt;/b&gt; .config files in .NET      are supported through the API to allow storing and retrieving information.      They are nothing more than simple XML files, sort of like what .ini files      were before for Win32 apps. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;So how do you retrieve the      customized properties of a .NET application from XML .config file?&lt;/b&gt;      Initialize an instance of AppSettingsReader class. Call the GetValue      method of AppSettingsReader class, passing in the name of the property and      the type expected. Assign the result to the appropriate variable. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Can you automate this      process?&lt;/b&gt; In Visual Studio yes, use Dynamic Properties for automatic      .config creation, storage and retrieval. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;My progress bar freezes up      and dialog window shows blank, when an intensive background process takes      over&lt;/b&gt;. Yes, you should've multi-threaded your GUI, with taskbar and      main form being one thread, and the background process being the other. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the safest way to      deploy a Windows Forms app?&lt;/b&gt; Web deployment: the user always downloads      the latest version of the code; the program runs within security sandbox,      properly written app will not require additional security privileges. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Why is it not a good idea      to insert code into InitializeComponent method when working with Visual      Studio?&lt;/b&gt; The designer will likely throw it away; most of the code      inside InitializeComponent is auto-generated. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the difference      between WindowsDefaultLocation and WindowsDefaultBounds?&lt;/b&gt;      WindowsDefaultLocation tells the form to start up at a location selected      by OS, but with internally specified size. WindowsDefaultBounds delegates      both size and starting position choices to the OS. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the difference      between Move and LocationChanged? Resize and SizeChanged?&lt;/b&gt; Both methods      do the same, Move and Resize are the names adopted from VB to ease      migration to C#. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;How would you create a      non-rectangular window, let's say an ellipse?&lt;/b&gt; Create a rectangular      form, set the TransparencyKey property to the same value as BackColor,      which will effectively make the background of the form transparent. Then      set the FormBorderStyle to FormBorderStyle.None, which will remove the      contour and contents of the form. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;How do you create a      separator in the Menu Designer?&lt;/b&gt; A hyphen '-' would do it. Also, an      ampersand '&amp;amp;\' would underline the next letter. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;How's anchoring different      from docking?&lt;/b&gt; Anchoring treats the component as having the absolute      size and adjusts its location relative to the parent form. Docking treats      the component location as absolute and disregards the component size. So      if a status bar must always be at the bottom no matter what, use docking.      If a button should be on the top right, but change its position with the      form being resized, use anchoring. &lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;  &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-2149321053643539246?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/07/net-windows-forms-interview-question.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-3335194813786778913</guid><pubDate>Mon, 28 Jul 2008 09:33:00 +0000</pubDate><atom:updated>2008-07-30T01:27:59.543-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>DotNet interview Questions</category><title>Asp.net interview Questions</title><description>&lt;div dir="ltr"&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 9"&gt;&lt;meta name="Originator" content="Microsoft Word 9"&gt;&lt;link rel="File-List" href="file:///C:/DOCUME%7E1/nirmaln/LOCALS%7E1/Temp/msoclip1/01/clip_filelist.xml"&gt;&lt;style&gt; &amp;lt;!--  /* Font Definitions */ @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:&amp;quot;&amp;quot;; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&amp;quot;Times New Roman&amp;quot;; 	mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;} a:link, span.MsoHyperlink 	{color:blue; 	text-decoration:underline; 	text-underline:single;} a:visited, span.MsoHyperlinkFollowed 	{color:purple; 	text-decoration:underline; 	text-underline:single;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */ @list l0 	{mso-list-id:903102034; 	mso-list-template-ids:365045834;} @list l0:level1 	{mso-level-tab-stop:45.0pt; 	mso-level-number-position:left; 	margin-left:45.0pt; 	text-indent:-.25in;} @list l1 	{mso-list-id:1078476857; 	mso-list-template-ids:152738202;} @list l1:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:1.25in; 	mso-level-number-position:left; 	margin-left:1.25in; 	text-indent:-.25in; 	font-family:Symbol;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&amp;gt; &lt;/style&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;Describe the role of &lt;i&gt;inetinfo.exe, aspnet_isapi.dll &lt;/i&gt;and&lt;i&gt;aspnet_wp.exe&lt;/i&gt; in the page loading process&lt;/b&gt;. inetinfo.exe is theMicrosoft IIS server running, handling &lt;a href="http://ASP.NET"&gt;ASP.NET&lt;/a&gt; requests among other things.When an &lt;a href="http://ASP.NET"&gt;ASP.NET&lt;/a&gt; request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe. &lt;a name="more50"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;What's the difference between Response.Write() andResponse.Output.Write()?&lt;/b&gt; The latter one allows you to write formattedoutput. &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;3.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;What methods are fired during the page load?&lt;/b&gt; Init() - when the pageis instantiated, Load() - when the page is loaded into server memory,PreRender() - the brief moment before the page is displayed to the user asHTML, Unload() - when page finishes loading. &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;4.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;Where does the Web page belong in the .NET Framework class hierarchy?&lt;/b&gt;System.Web.UI.Page &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;5.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;Where do you store the information about the user's locale?&lt;/b&gt; System.Web.UI.Page.Culture &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;6.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;What's the difference between Codebehind=&amp;quot;MyCode.aspx.cs&amp;quot; andSrc=&amp;quot;MyCode.aspx.cs&amp;quot;?&lt;/b&gt; CodeBehind is relevant to Visual Studio.NET only. &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;7.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;What's a bubbled event?&lt;/b&gt; When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents. &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;8.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;Suppose you want a certain &lt;a href="http://ASP.NET"&gt;ASP.NET&lt;/a&gt; function executed on MouseOver overa certain button. Where do you add an event handler?&lt;/b&gt; It's the Attributesproperty, the Add function inside that property. So &lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;btnSubmit.Attributes.Add(&amp;quot;onMouseOver&amp;quot;,&amp;quot;someClientCode();&amp;quot;)&lt;/span&gt; &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;9.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;What data type does the RangeValidator control support?&lt;/b&gt; Integer,String and Date.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;10.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Explain the differences between Server-side and Client-side code?&lt;a name="more5"&gt;&lt;/a&gt;&lt;span style=""&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;Server-side code runs on the server. Client-side code runs in the clients' browser.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;11.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;What type of code (server or client) is found in a Code-Behind class? &lt;/b&gt;Server-side code.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;12.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Should validation (did the user enter a real date) occur server-side or client-side? Why? &lt;/b&gt;Client-side. This reduces an additional request to the server to validate the users input.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;13.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;What does the &amp;quot;EnableViewState&amp;quot; property do? Why would I want it on or off?&lt;span style=""&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;It enables the viewstate on the page. It allows the page to save the users input on a form.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;14.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other? &lt;/b&gt;Server.Transfer is used to post a form to another page. Response.Redirect is used to redirect the user to another page or site.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;15.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Can you explain the difference between an &lt;a href="http://ADO.NET"&gt;ADO.NET&lt;/a&gt; Dataset and an ADO Recordset? &lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;A DataSet can represent an entire relational database in memory, complete with tables, relations, and views. &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;A DataSet is designed to work without any continuing connection to the original data source. &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Data in a DataSet is bulk-loaded, rather than being loaded on demand. &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;There&amp;#39;s no concept of cursor types in a DataSet. &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;DataSets have no current record pointer You can use For Each loops to move through the data. &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;You can store many edits in a DataSet, and write them to the original data source in a single operation. &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;Though the DataSet is universal, other objects in &lt;a href="http://ADO.NET"&gt;ADO.NET&lt;/a&gt; come in different versions for different data sources. &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;16.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?&lt;span style=""&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;This is where you can set the specific variables for the Application and Session objects.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;17.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;If I'm developing an application that must accommodate multiple security levels though secure login and my &lt;a href="http://ASP.NET"&gt;ASP.NET&lt;/a&gt; web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users? &lt;/b&gt;Maintain the login state security through a database.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;18.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Can you explain what inheritance is and an example of when you might use it? &lt;/b&gt;When you want to inherit (use the functionality of) another class. Base Class Employee. A Manager class could be derived from the Employee base class.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;19.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Whats an assembly?&lt;span style=""&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;Assemblies are the building blocks of the .NET framework. &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconassembliesoverview.asp"&gt;Overview of assemblies from MSDN&lt;/a&gt;&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;20.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Describe the difference between inline and code behind. &lt;/b&gt;Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;21.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Explain what a diffgram is, and a good use for one? &lt;/b&gt;The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. For reading database data to an XML file to be sent to a Web Service.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;22.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Whats MSIL, and why should my developers need an appreciation of it if at all? &lt;/b&gt;MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;23.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Which method do you invoke on the DataAdapter control to load your generated dataset with data? &lt;/b&gt;The .Fill() method&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;24.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Can you edit data in the Repeater control? &lt;/b&gt;&lt;span style=""&gt;&amp;nbsp;&lt;/span&gt;No, it just reads the information from its data source&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;25.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Which template must you provide, in order to display data in a Repeater control? &lt;/b&gt;ItemTemplate&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;26.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;How can you provide an alternating color scheme in a Repeater control? &lt;/b&gt;Use the AlternatingItemTemplate&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;27.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control? &lt;/b&gt;You must set the DataSource property and call the DataBind method.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;28.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;What base class do all Web Forms inherit from? &lt;/b&gt;&lt;span style=""&gt;&amp;nbsp;&lt;/span&gt;The Page class.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;29.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Name two properties common in every validation control? &lt;/b&gt;ControlToValidate property and Text property.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;30.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;What tags do you need to add within the asp:datagrid tags to bind columns manually? &lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Set AutoGenerateColumns Property to false on the datagrid tag&lt;/span&gt;&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;31.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;What tag do you use to add a hyperlink column to the DataGrid? &lt;/b&gt;&amp;lt;asp:HyperLinkColumn&amp;gt;&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;32.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;What is the transport protocol you use to call a Web service?&lt;/b&gt; SOAP is the preferred protocol.&lt;b style=""&gt; &lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;33.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;True or False: A Web service can only be written in .NET?&lt;/b&gt; False&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;34.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;What does WSDL stand for? &lt;/b&gt;(Web Services Description Language)&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;35.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Where on the Internet would you look for Web services? &lt;/b&gt;(&lt;a href="http://www.uddi.org/"&gt;http://www.uddi.org&lt;/a&gt;)&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;36.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?&lt;/b&gt; DataTextField property&lt;b style=""&gt; &lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;37.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;Which control would you use if you needed to make sure the values in two different controls matched? &lt;/b&gt;&lt;span style=""&gt;&amp;nbsp;&lt;/span&gt;CompareValidator Control&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;38.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;True or False: To test a Web service you must create a windows application or Web application to consume this service? &lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;False, the webservice comes with a test page and it provides HTTP-GET method to test.&lt;/span&gt;&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;"&gt;&lt;b style=""&gt;39.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;How many classes can a single .NET DLL contain? &lt;/b&gt;&lt;span style=""&gt;&amp;nbsp;&lt;/span&gt;It can contain many classes.&lt;b style=""&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-3335194813786778913?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/07/aspnet-interview-questions.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1847486894770293726.post-2756940417014148355</guid><pubDate>Mon, 28 Jul 2008 09:31:00 +0000</pubDate><atom:updated>2008-07-30T01:27:59.543-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>DotNet interview Questions</category><title>C# interview Questions</title><description>&lt;div dir="ltr"&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 9"&gt;&lt;meta name="Originator" content="Microsoft Word 9"&gt;&lt;link rel="File-List" href="file:///C:/DOCUME%7E1/nirmaln/LOCALS%7E1/Temp/msoclip1/01/clip_filelist.xml"&gt;&lt;style&gt; &amp;lt;!--  /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:&amp;quot;&amp;quot;; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&amp;quot;Times New Roman&amp;quot;; 	mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */ @list l0 	{mso-list-id:640237360; 	mso-list-template-ids:-1593685238;} @list l0:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} @list l1 	{mso-list-id:1163470808; 	mso-list-template-ids:-2014909748;} @list l1:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&amp;gt; &lt;/style&gt;  &lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the implicit name      of the parameter that gets passed into the class' set method?&lt;/b&gt; Value,      and its datatype depends on whatever variable we're changing. &lt;a name="more55"&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;How do you inherit from a      class in C#? &lt;/b&gt;Place a colon and then the name of the base class. Notice      that it's double colon in C++. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Does C# support multiple      inheritance? &lt;/b&gt;No, use interfaces instead. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;When you inherit a      protected class-level variable, who is it available to? &lt;/b&gt;Classes in the      same namespace. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Are private class-level      variables inherited? &lt;/b&gt;Yes, but they are not accessible, so looking at      it you can honestly say that they are not inherited. But they are. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Describe the accessibility      modifier protected internal. &lt;/b&gt;It's available to derived classes and      classes within the same Assembly (and naturally from the base class it's      declared in). &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;C# provides a default      constructor for me. I write a constructor that takes a string as a      parameter, but want to keep the no parameter one. How many constructors      should I write? &lt;/b&gt;Two. Once you write at least one constructor, C#      cancels the freebie constructor, and now you have to write one yourself,      even if there's no implementation in it. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the top .NET class      that everything is derived from? &lt;/b&gt;System.Object. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;How's method overriding      different from overloading? &lt;/b&gt;When overriding, you change the method      behavior for a derived class. Overloading simply involves having a method      with the same name within the class. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What does the keyword      virtual mean in the method definition? &lt;/b&gt;The method can be over-ridden. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Can you declare the      override method static while the original method is non-static? &lt;/b&gt;No,      you can't, the signature of the virtual method must remain the same, only      the keyword virtual is changed to keyword override. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Can you override private      virtual methods? &lt;/b&gt;No, moreover, you cannot access private methods in      inherited classes, have to be protected in the base class to allow any      sort of access. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Can you prevent your class      from being inherited and becoming a base class for some other classes?&lt;/b&gt;      Yes, that's what keyword sealed in the class definition is for. The      developer trying to derive from your class will get a message: cannot      inherit from Sealed class WhateverBaseClassName. It's the same concept as      final class in Java. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Can you allow class to be      inherited, but prevent the method from being over-ridden? &lt;/b&gt;Yes, just      leave the class public and make the method sealed. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's an abstract class? &lt;/b&gt;A      class that cannot be instantiated. A concept in C++ known as pure virtual      method. A class that must be inherited and have the methods over-ridden.      Essentially, it's a blueprint for a class without any implementation. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;When do you absolutely      have to declare a class as abstract (as opposed to free-willed educated      choice or decision based on UML diagram)? &lt;/b&gt;When at least one of the      methods in the class is abstract. When the class itself is inherited from      an abstract class, but not all base abstract methods have been      over-ridden. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's an interface class?      &lt;/b&gt;It's an abstract class with public abstract methods all of which must      be implemented in the inherited classes. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Why can't you specify the      accessibility modifier for methods inside the interface? &lt;/b&gt;They all must      be public. Therefore, to prevent you from getting the false impression      that you have any freedom of choice, you are not allowed to specify any      accessibility, it's public by default. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Can you inherit multiple      interfaces? &lt;/b&gt;Yes, why not. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;And if they have      conflicting method names? &lt;/b&gt;It's up to you to implement the method      inside your own class, so implementation is left entirely up to you. This      might cause a problem on a higher-level scale if similarly named methods      from different interfaces expect different data, but as far as compiler      cares you're okay. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the difference      between an interface and abstract class? &lt;/b&gt;In the interface all methods      must be abstract; in the abstract class some methods can be concrete. In      the interface no accessibility modifiers are allowed, which is ok in      abstract classes. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;How can you overload a      method? &lt;/b&gt;Different parameter data types, different number of      parameters, different order of parameters. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;If a base class has a      bunch of overloaded constructors, and an inherited class has another bunch      of overloaded constructors, can you enforce a call from an inherited      constructor to an arbitrary base constructor? &lt;/b&gt;Yes, just place a colon,      and then keyword base (parameter list to invoke the appropriate      constructor) in the overloaded constructor definition inside the inherited      class. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the difference      between System.String and System.StringBuilder classes? &lt;/b&gt;System.String      is immutable; System.StringBuilder was designed with the purpose of having      a mutable string where a variety of operations can be performed. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the advantage of      using System.Text.StringBuilder over System.String? &lt;/b&gt;StringBuilder is      more efficient in the cases, where a lot of manipulation is done to the      text. Strings are immutable, so each time it's being operated on, a new      instance is created. &lt;a name="more57"&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Can you store multiple      data types in System.Array? &lt;/b&gt;No. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the difference      between the System.Array.CopyTo() and System.Array.Clone()? &lt;/b&gt;The first      one performs a deep copy of the array, the second one is shallow. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;How can you sort the      elements of the array in descending order? &lt;/b&gt;By calling Sort() and then      Reverse() methods. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the .NET datatype      that allows the retrieval of data by a unique key? &lt;/b&gt;HashTable. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's class SortedList      underneath? &lt;/b&gt;A sorted HashTable. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Will &lt;i&gt;finally&lt;/i&gt; block      get executed if the exception had not occurred? &lt;/b&gt;Yes. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the C# equivalent      of C++ catch (…), which was a catch-all statement for any possible      exception? &lt;/b&gt;A catch block that catches the exception of type      System.Exception. You can also omit the parameter data type in this case      and just write catch {}. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Can multiple catch blocks      be executed? &lt;/b&gt;No, once the proper catch code fires off, the control is      transferred to the finally block (if there are any), and then whatever      follows the finally block. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Why is it a bad idea to      throw your own exceptions? &lt;/b&gt;Well, if at that point you know that an      error has occurred, then why not write the proper code to handle that      error instead of passing a new Exception object to the catch block?      Throwing your own exceptions signifies some design flaws in the project. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's a delegate? &lt;/b&gt;A      delegate object encapsulates a reference to a method. In C++ they were      referred to as function pointers. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's a multicast      delegate? &lt;/b&gt;It's a delegate that points to and eventually fires off      several methods. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;How's the DLL Hell problem      solved in .NET? &lt;/b&gt;Assembly versioning allows the application to specify      not only the library it needs to run (which was available under Win32),      but also the version of the assembly. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What are the ways to      deploy an assembly? &lt;/b&gt;An MSI installer, a CAB archive, and XCOPY      command. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's a satellite      assembly? &lt;/b&gt;When you write a multilingual or multi-cultural application      in .NET, and want to distribute the core application separately from the      localized modules, the localized assemblies that modify the core      application are called satellite assemblies. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What namespaces are      necessary to create a localized application? &lt;/b&gt;System.Globalization,      System.Resources. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the difference      between // comments, /* */ comments and /// comments? &lt;/b&gt;Single-line,      multi-line and XML documentation comments. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;How do you generate      documentation from the C# file commented properly with a command-line      compiler? &lt;/b&gt;Compile it with a /doc switch. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the difference      between &amp;lt;c&amp;gt; and &amp;lt;code&amp;gt; XML documentation tag? &lt;/b&gt;Single line      code example and multiple-line code example. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Is XML case-sensitive? &lt;/b&gt;Yes,      so &amp;lt;Student&amp;gt; and &amp;lt;student&amp;gt; are different elements. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What debugging tools come      with the .NET SDK? &lt;/b&gt;CorDBG – command-line debugger, and DbgCLR –      graphic debugger. Visual Studio .NET uses the DbgCLR. To use CorDbg, you      must compile the original C# file using the /debug switch. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What does the This window      show in the debugger? &lt;/b&gt;It points to the object that's pointed to by      this reference. Object's instance data is shown. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What does assert() do? &lt;/b&gt;In      debug compilation, assert takes in a Boolean condition as a parameter, and      shows the error dialog if the condition is false. The program proceeds      without any interruption if the condition is true. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the difference      between the Debug class and Trace class? Documentation looks the same. &lt;/b&gt;Use      Debug class for debug builds, use Trace class for both debug and release      builds. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Why are there five tracing      levels in System.Diagnostics.TraceSwitcher? &lt;/b&gt;The tracing dumps can be      quite verbose and for some applications that are constantly running you      run the risk of overloading the machine and the hard drive there. Five levels      range from None to Verbose, allowing to fine-tune the tracing activities. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Where is the output of      TextWriterTraceListener redirected? &lt;/b&gt;To the Console or a text file      depending on the parameter passed to the constructor. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;How do you debug an      &lt;a href="http://ASP.NET"&gt;ASP.NET&lt;/a&gt; Web application? &lt;/b&gt;Attach the aspnet_wp.exe process to the      DbgClr debugger. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What are three test cases      you should go through in unit testing? &lt;/b&gt;Positive test cases (correct      data, correct output), negative test cases (broken or missing data, proper      handling), exception test cases (exceptions are thrown and caught      properly). &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Can you change the value      of a variable while debugging a C# application? &lt;/b&gt;Yes, if you are      debugging via Visual Studio.NET, just go to Immediate window. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Explain the three services      model (three-tier application). &lt;/b&gt;Presentation (UI), business (logic and      underlying code) and data (from storage or other sources). &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What are advantages and      disadvantages of Microsoft-provided data provider classes in &lt;a href="http://ADO.NET"&gt;ADO.NET&lt;/a&gt;? &lt;/b&gt;SQLServer.NET      data provider is high-speed and robust, but requires SQL Server license      purchased from Microsoft. &lt;a href="http://OLE-DB.NET"&gt;OLE-DB.NET&lt;/a&gt; is universal for accessing other      sources, like Oracle, DB2, Microsoft Access and Informix, but it's a .NET      layer on top of OLE layer, so not the fastest thing in the world. &lt;a href="http://ODBC.NET"&gt;ODBC.NET&lt;/a&gt;      is a deprecated layer provided for backward compatibility to ODBC engines.      &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the role of the      DataReader class in &lt;a href="http://ADO.NET"&gt;ADO.NET&lt;/a&gt; connections? &lt;/b&gt;It returns a read-only      dataset from the data source when the command is executed. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What is the wildcard      character in SQL? Let's say you want to query database with LIKE for all      employees whose name starts with La. &lt;/b&gt;The wildcard character is %, the      proper query with LIKE would involve 'La%'. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Explain ACID rule of thumb      for transactions. &lt;/b&gt;Transaction must be Atomic (it is one unit of work      and does not dependent on previous and following transactions), Consistent      (data is either committed or roll back, no "in-between" case where      something has been updated and something hasn't), Isolated (no transaction      sees the intermediate results of the current transaction), Durable (the      values persist if the data had been committed even if the system crashes      right after). &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What connections does      Microsoft SQL Server support? &lt;/b&gt;Windows Authentication (via Active      Directory) and SQL Server authentication (via Microsoft SQL Server      username and passwords). &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Which one is trusted and      which one is untrusted? &lt;/b&gt;Windows Authentication is trusted because the      username and password are checked with the Active Directory, the SQL      Server authentication is untrusted, since SQL Server is the only verifier      participating in the transaction. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;Why would you use      untrusted verificaion? &lt;/b&gt;Web Services might use it, as well as      non-Windows applications. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What does the parameter      Initial Catalog define inside Connection String? &lt;/b&gt;The database name to      connect to. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What's the data provider      name to connect to Access database? &lt;/b&gt;Microsoft.Access. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What does Dispose method      do with the connection object? &lt;/b&gt;Deletes it from the memory. &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;b&gt;What is a pre-requisite      for connection pooling? &lt;/b&gt;Multiple processes must agree that they will      share the same connection, where every parameter is the same, including      the security settings. &lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;  &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1847486894770293726-2756940417014148355?l=fordemand.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://fordemand.blogspot.com/2008/07/c-interview-questions.html</link><author>nirmal292283@gmail.com (Nirmal)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item></channel></rss>