<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-1264876288197353948</atom:id><lastBuildDate>Fri, 09 Sep 2011 08:33:23 +0000</lastBuildDate><title>Dotnet 3.5 interview questions and answers</title><description>This blogs provides .net 4.0/3.5/2.0 interview questions and answers.</description><link>http://dotnet2008interviewquestions.blogspot.com/</link><managingEditor>noreply@blogger.com (amitmittal77)</managingEditor><generator>Blogger</generator><openSearch:totalResults>41</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-1592494974014496510</guid><pubDate>Fri, 09 Sep 2011 08:33:00 +0000</pubDate><atom:updated>2011-09-09T04:33:23.348-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>.NET Framework</category><category domain='http://www.blogger.com/atom/ns#'>.net 4.0</category><category domain='http://www.blogger.com/atom/ns#'>ASP.NET</category><title>Interview questions for .Net Framework 4.0</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:OfficeDocumentSettings&gt;
  &lt;o:AllowPNG/&gt;
 &lt;/o:OfficeDocumentSettings&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;ZH-CN&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:EnableOpenTypeKerning/&gt;
   &lt;w:DontFlipMirrorIndents/&gt;
   &lt;w:OverrideTableStyleHps/&gt;
   &lt;w:UseFELayout/&gt;
  &lt;/w:Compatibility&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val="Cambria Math"/&gt;
   &lt;m:brkBin m:val="before"/&gt;
   &lt;m:brkBinSub m:val="&amp;#45;-"/&gt;
   &lt;m:smallFrac m:val="off"/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val="0"/&gt;
   &lt;m:rMargin m:val="0"/&gt;
   &lt;m:defJc m:val="centerGroup"/&gt;
   &lt;m:wrapIndent m:val="1440"/&gt;
   &lt;m:intLim m:val="subSup"/&gt;
   &lt;m:naryLim m:val="undOvr"/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267"&gt;
  &lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/&gt;
  &lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/&gt;
  &lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/&gt;
  &lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong"/&gt;
  &lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/&gt;
  &lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/&gt;
  &lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="37" Name="Bibliography"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: SimSun; mso-fareast-language: ZH-CN; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin;"&gt;Q.
How would you Deploy your old applications with .Net Framework 4.0? Are the Old
applications compatible?&lt;br /&gt;
&lt;br /&gt;
Ans.&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;"&gt; .NET Framework 4 is highly compatible with
applications that are built with earlier .NET Framework versions. Though Some
Changes have been made to improve security, standards compliance, correctness,
reliability, and performance.&lt;br /&gt;
&lt;br /&gt;
To run older applications with .NET Framework 4, you will have to re-compile
your applications with the target .NET Framework version specified in the
properties for your project in Visual Studio Or you can specify the supported
runtime with the Element in an application configuration file. .Net Framework 4
does not automatically use its version of the common language runtime to run
applications that are built with earlier versions of the .NET Framework.&lt;br style="mso-special-character: line-break;" /&gt;
&lt;/span&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:OfficeDocumentSettings&gt;
  &lt;o:AllowPNG/&gt;
 &lt;/o:OfficeDocumentSettings&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;ZH-CN&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:EnableOpenTypeKerning/&gt;
   &lt;w:DontFlipMirrorIndents/&gt;
   &lt;w:OverrideTableStyleHps/&gt;
   &lt;w:UseFELayout/&gt;
  &lt;/w:Compatibility&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val="Cambria Math"/&gt;
   &lt;m:brkBin m:val="before"/&gt;
   &lt;m:brkBinSub m:val="&amp;#45;-"/&gt;
   &lt;m:smallFrac m:val="off"/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val="0"/&gt;
   &lt;m:rMargin m:val="0"/&gt;
   &lt;m:defJc m:val="centerGroup"/&gt;
   &lt;m:wrapIndent m:val="1440"/&gt;
   &lt;m:intLim m:val="subSup"/&gt;
   &lt;m:naryLim m:val="undOvr"/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267"&gt;
  &lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/&gt;
  &lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/&gt;
  &lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/&gt;
  &lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong"/&gt;
  &lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/&gt;
  &lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/&gt;
  &lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="37" Name="Bibliography"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: SimSun; mso-fareast-language: ZH-CN; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin;"&gt;Q.
Whts is Parallel Computing?&lt;br /&gt;
&lt;br /&gt;
Ans.&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: SimSun; mso-fareast-language: ZH-CN; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin;"&gt; To take advantage of multiple cores (that is,
CPUs or processors) you can parallelize your code so that it will be
distributed across multiple processors. In the past, parallelization required
low-level manipulation of threads and locks, but Visual Studio 2010 and the
.NET Framework 4 enhances the support for parallel programming by providing a
new runtime, new class library types, and new diagnostic tools. These features
simplify parallel development so that you can write efficient, fine-grained,
and scalable parallel code in a natural idiom without having to work directly
with threads or the thread pool. &lt;br /&gt;
&lt;br /&gt;
The new System.Threading.Tasks namespace and other related types support this
new model.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Q. What is BigInteger and When would you use that?&lt;br /&gt;
&lt;br /&gt;
Ans.&lt;/b&gt; BigInteger, which is a part of System.Numerics Namespace is a great
enhancement over Byte and Int32 data types. It is a nonprimitive integral type
that supports arbitrarily large signed integers. Unlike Byte and Int32 types,
BigInteger does not include a Minvalue and MaxValue property, so can be used to
store large integer values.&lt;br style="mso-special-character: line-break;" /&gt;
&lt;br style="mso-special-character: line-break;" /&gt;
&lt;/span&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:OfficeDocumentSettings&gt;
  &lt;o:AllowPNG/&gt;
 &lt;/o:OfficeDocumentSettings&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;ZH-CN&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:EnableOpenTypeKerning/&gt;
   &lt;w:DontFlipMirrorIndents/&gt;
   &lt;w:OverrideTableStyleHps/&gt;
   &lt;w:UseFELayout/&gt;
  &lt;/w:Compatibility&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val="Cambria Math"/&gt;
   &lt;m:brkBin m:val="before"/&gt;
   &lt;m:brkBinSub m:val="&amp;#45;-"/&gt;
   &lt;m:smallFrac m:val="off"/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val="0"/&gt;
   &lt;m:rMargin m:val="0"/&gt;
   &lt;m:defJc m:val="centerGroup"/&gt;
   &lt;m:wrapIndent m:val="1440"/&gt;
   &lt;m:intLim m:val="subSup"/&gt;
   &lt;m:naryLim m:val="undOvr"/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267"&gt;
  &lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/&gt;
  &lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/&gt;
  &lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/&gt;
  &lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong"/&gt;
  &lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/&gt;
  &lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/&gt;
  &lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="37" Name="Bibliography"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;div class="MsoNormal"&gt;
&lt;b&gt;Q. What other than BigInteger has been introduced in
System.Numerics Namespace?&lt;br /&gt;
&lt;br /&gt;
Ans.&lt;/b&gt; Complex types, which represents a complex number has been Introduced.
a complex number is a number in the form a + bi, where a is the real part, and
b is the imaginary part.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Q. How do you assign a Value to a Complex Number.&lt;br /&gt;
&lt;br /&gt;
Ans.&lt;/b&gt; You can assign a value to a complex number in few different ways.&lt;br /&gt;
1. By passing two Double values to its constructor. The first value represents
the real part of the complex number, and the second value represents its
imaginary part. &lt;br /&gt;
2. By assigning a Byte, SByte, Int16, UInt16, Int32, UInt32, Int64, UInt64,
Single, or Double value to a Complex object. The value becomes the real part of
the complex number, and its imaginary part equals 0.&lt;br /&gt;
&lt;br /&gt;
E.g Complex c1 = new Complex(12, 6);&lt;br /&gt;
Console.WriteLine(c1);&lt;br /&gt;
OutPut - (12, 6)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Q. How has exception hand changed in .Net Framework 4.0&lt;br /&gt;
&lt;br /&gt;
Ans.&lt;/b&gt; A New Namespace System.Runtime.ExceptionServices has been introduced
which provides classes for advanced exception handling. It has introduced the
following classes&lt;br /&gt;
&lt;b&gt;1. HandleProcessCorruptedStateExceptionsAttribute Class&lt;/b&gt; - Enables
managed code to handle exceptions that indicate a corrupted process state.So,If
you want to compile an application in the .NET Framework 4 and handle corrupted
state exceptions, you can apply this attribute to the method that handles the
corrupted state exception. &lt;br /&gt;
&lt;b&gt;2.FirstChanceExceptionEventArgs Class -&lt;/b&gt;Provides data for the
notification event that is raised when a managed exception first occurs, before
the common language runtime begins searching for event handlers.&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;b&gt;&lt;span style="font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: SimSun; mso-fareast-language: ZH-CN; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin;"&gt;Q.&lt;/span&gt;&lt;/b&gt;&lt;b&gt; What are the major improvements provided by the common
language runtime and the base class libraries?&lt;br /&gt;
&lt;br /&gt;
Ans.&lt;/b&gt; Brief about the Improvements -&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Diagnostics and Performance -&lt;/b&gt; Starting with the .NET Framework 4, you can
get processor usage and memory usage estimates per application domain. &lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Garbage Collection -&lt;/b&gt; This feature replaces concurrent garbage collection in
previous versions and provides better performance.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Code Contracts - &lt;/b&gt;Code contracts let you specify contractual information
that is not represented by a method's or type's signature alone. The new
System.Diagnostics.Contracts namespace contains classes that provide a
language-neutral way to express coding assumptions in the form of
preconditions, postconditions, and object invariants.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Design-Time-Only Interop Assemblies - &lt;/b&gt;You no longer have to ship primary
interop assemblies (PIAs) to deploy applications that interoperate with COM
objects. In the .NET Framework 4, compilers can embed type information from
interop assemblies, selecting only the types that an application (for example,
an add-in) actually uses.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Dynamic Language Runtime -&lt;/b&gt; The dynamic language runtime (DLR) is a new
runtime environment that adds a set of services for dynamic languages to the
CLR. The DLR makes it easier to develop dynamic languages to run on the .NET
Framework and to add dynamic features to statically typed languages. To support
the DLR, the new System.Dynamic namespace is added to the .NET Framework. &lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Covariance and Contravariance - &lt;/b&gt;Several generic interfaces and delegates
now support covariance and contravariance.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
BigInteger and Complex Numbers - &lt;/b&gt;The new System.Numerics.BigInteger
structure is an integer data type that can store fairly large number as it has
no upper and lower bound values.Complex types represents a complex number of
form a + bi. IT supports arithmetic and trigonometric operations with complex
numbers.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Tuples -&lt;/b&gt; The .NET Framework 4 provides the System..::.Tuple class for
creating tuple objects that contain structured data.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;File System Enumeration Improvements -&lt;/b&gt; You can now enumerate directories
and files by using methods that return an enumerable collection of strings of
their names.ou can also use methods that return an enumerable collection of
DirectoryInfo, FileInfo, or FileSystemInfo objects. &lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Memory-Mapped Files -&lt;/b&gt; A memory-mapped file contains the contents of a file
in virtual memory and is an application’s logical address space. So You can use
memory-mapped files to edit very large files and to create shared memory for
interprocess communication.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
64-Bit Operating Systems and Processes -&lt;/b&gt; You can identify 64-bit operating
systems and processes with the Environment.Is64BitOperatingSystem and
Environment.Is64BitProcess properties.&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/1264876288197353948-1592494974014496510?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2011/09/interview-questions-for-net-framework.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-1067009243566744812</guid><pubDate>Wed, 13 Apr 2011 09:42:00 +0000</pubDate><atom:updated>2011-04-13T05:42:57.069-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>ASP.NET</category><title>ASP.NET Page Life Cycle</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;u&gt;&lt;b&gt;Page_Init -&amp;gt;&lt;/b&gt;&lt;/u&gt;&amp;nbsp;&amp;nbsp; During this phase, the server creates an  instance of the server control. i.e. various controls are &lt;br /&gt;
intialised to default values. but viewstate doesn't exists.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;ViewState Load method -&amp;gt; &lt;/u&gt;&lt;/b&gt;Loads viewstate object.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Load postback Data -&amp;gt;&lt;/b&gt;&lt;/u&gt; Loads the data posted back incase of&lt;b&gt;&amp;nbsp;  isPostback &lt;/b&gt;is true.&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;br /&gt;
Page_Load() -&amp;gt;&amp;nbsp; &lt;/b&gt;&lt;/u&gt;During this phase, the instance of the  control is loaded onto the page object in which it is &lt;br /&gt;
defined&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Pre_Render() -&amp;gt;&lt;/b&gt;&lt;/u&gt; During this phase, the control is updated  with the changes made to it. This prepares the control for rendering.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Save() -&amp;gt;&lt;/b&gt;&lt;/u&gt; During this phase, the state information of the  control is saved. For example, if a value is set for the &lt;br /&gt;
control during the Load event, it is embedded in the HTML  tag that will be returned to the browser.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;SaveViewState()-&amp;gt;&lt;/b&gt;&lt;/u&gt; Viesstate information is saved.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Rendering()-&amp;gt;&lt;/b&gt;&lt;/u&gt; During this phase, the server creates the  corresponding HTML tag for the control.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Disposing()-&amp;gt;&lt;/b&gt;&lt;/u&gt; During this phase, all cleanup tasks, such as  closing files and database connections opened by the control are performed.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Unloading()-&amp;gt;&lt;/b&gt;&lt;/u&gt; During this phase, all cleanup tasks, such as  destroying the instances of server control are performed. &lt;br /&gt;
This is the final event in the life cycle of a server &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/1264876288197353948-1067009243566744812?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2011/04/aspnet-page-life-cycle.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-7123858985333738380</guid><pubDate>Wed, 13 Apr 2011 09:31:00 +0000</pubDate><atom:updated>2011-04-13T05:34:13.530-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Design Pattern</category><category domain='http://www.blogger.com/atom/ns#'>OOPS Concepts</category><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>Factory method and Abstract factory method live example</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;a href="http://userpages.umbc.edu/%7Etarr/dp/lectures/Factory.pdf"&gt;http://userpages.umbc.edu/~tarr/dp/lectures/Factory.pdf &lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-7123858985333738380?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2011/04/factory-method-and-abstract-factory.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-640250014137894239</guid><pubDate>Wed, 29 Sep 2010 12:48:00 +0000</pubDate><atom:updated>2010-09-29T08:48:56.506-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>ASP.NET</category><title>ASP.NET 4.0 Interview questions</title><description>&lt;span style="font-weight: bold;"&gt;Ques 1. What is new with ASP.Net 4 WebForms ?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Ans.&lt;/span&gt; Some of the Features are:&lt;br /&gt;
&lt;br /&gt;
. Ability to Set Metatags.&lt;br /&gt;
. More control over view state.&lt;br /&gt;
. Added and Updated browser definition files.&lt;br /&gt;
. ASP.Net Routing.&lt;br /&gt;
. The ability to Persist Selected rows in data Control.&lt;br /&gt;
. More control over rendered HTML in FormView and ListView Controls.&lt;br /&gt;
. Filtering Support for datasource Controls.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Ques 2.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; What is machine.config file and how do you use it in ASP.Net 4.0?&lt;br /&gt;
&lt;br /&gt;
Ans&lt;/span&gt;. Machine.Config file is found in the "CONFIG" subfolder of your .NET Framework install directory (c:\WINNT\&lt;leo_highlight id="leoHighlights_Underline_0" leohighlights_keywords="microsoft" leohighlights_underline="true" leohighlights_url_bottom="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsBottom.jsp?keywords%3Dmicrosoft%26domain%3Dwww.blogger.com" leohighlights_url_top="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsTop.jsp?keywords%3Dmicrosoft%26domain%3Dwww.blogger.com" onclick="leoHighlightsHandleClick('leoHighlights_Underline_0')" onmouseout="leoHighlightsHandleMouseOut('leoHighlights_Underline_0')" onmouseover="leoHighlightsHandleMouseOver('leoHighlights_Underline_0')" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: transparent none repeat scroll 0% 50%; border-bottom: 2px solid rgb(255, 255, 150); cursor: pointer; display: inline;"&gt;Microsoft&lt;/leo_highlight&gt;.NET\Framework\{Version Number}\CONFIG on Windows 2000 installations). It contains configuration settings for machine-wide assembly binding, built-in remoting channels, and ASP.NET.&lt;br /&gt;
&lt;br /&gt;
In .the NET Framework 4.0, the major configuration elements(that use to be in web.config) have been moved to the machine.config file, and the applications now inherit these settings. This allows the Web.config file in ASP.NET 4 applications either to be empty or to contain just the following lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Q. What is RedirectPermanent in ASP.Net 4.0?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Ans&lt;/span&gt;. In earlier Versions of .Net, Response.Redirect was used, which issues an HTTP 302 Found or temporary redirect response to the browser (meaning that asked resource is temporarily moved to other location) which inturn results in an extra HTTP round trip. ASP.NET 4.0 however, adds a new RedirectPermanent that Performs a permanent redirection from the requested URL to the specified URL. and returns 301 Moved Permanently responses.&lt;br /&gt;
e.g. RedirectPermanent("/newpath/foroldcontent.aspx");&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Ques 3.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; How will you specify what version of the framework your application is targeting?&lt;br /&gt;
&lt;br /&gt;
Ans.&lt;/span&gt; In Asp.Net 4 a new element "targetFramework" of compilation &lt;leo_highlight id="leoHighlights_Underline_1" leohighlights_keywords="tag" leohighlights_underline="true" leohighlights_url_bottom="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsBottom.jsp?keywords%3Dtag%26domain%3Dwww.blogger.com" leohighlights_url_top="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsTop.jsp?keywords%3Dtag%26domain%3Dwww.blogger.com" onclick="leoHighlightsHandleClick('leoHighlights_Underline_1')" onmouseout="leoHighlightsHandleMouseOut('leoHighlights_Underline_1')" onmouseover="leoHighlightsHandleMouseOver('leoHighlights_Underline_1')" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: transparent none repeat scroll 0% 50%; border-bottom: 2px solid rgb(255, 255, 150); cursor: pointer; display: inline;"&gt;tag&lt;/leo_highlight&gt; (in Web.config file) lets you specify the framework version in the webconfig file as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version="1.0"?&amp;gt;&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
&amp;lt;system.web&amp;gt;&lt;br /&gt;
&amp;lt;compilation targetFramework="4.0" /&amp;gt;&lt;br /&gt;
&amp;lt;/system.web&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;configuration&gt; It only lets you &lt;leo_highlight id="leoHighlights_Underline_2" leohighlights_keywords="target" leohighlights_underline="true" leohighlights_url_bottom="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsBottom.jsp?keywords%3Dtarget%26domain%3Dwww.blogger.com" leohighlights_url_top="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsTop.jsp?keywords%3Dtarget%26domain%3Dwww.blogger.com" onclick="leoHighlightsHandleClick('leoHighlights_Underline_2')" onmouseout="leoHighlightsHandleMouseOut('leoHighlights_Underline_2')" onmouseover="leoHighlightsHandleMouseOver('leoHighlights_Underline_2')" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: transparent none repeat scroll 0% 50%; border-bottom: 2px solid rgb(255, 255, 150); cursor: pointer; display: inline;"&gt;target&lt;/leo_highlight&gt; the .NET Framework 4.0 and later verisons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;&lt;/span&gt; &lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Ques 4.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; What is &lt;leo_highlight id="leoHighlights_Underline_3" leohighlights_keywords="microsoft" leohighlights_underline="true" leohighlights_url_bottom="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsBottom.jsp?keywords%3Dmicrosoft%26domain%3Dwww.blogger.com" leohighlights_url_top="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsTop.jsp?keywords%3Dmicrosoft%26domain%3Dwww.blogger.com" onclick="leoHighlightsHandleClick('leoHighlights_Underline_3')" onmouseout="leoHighlightsHandleMouseOut('leoHighlights_Underline_3')" onmouseover="leoHighlightsHandleMouseOver('leoHighlights_Underline_3')" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: transparent none repeat scroll 0% 50%; border-bottom: 2px solid rgb(255, 255, 150); cursor: pointer; display: inline;"&gt;Microsoft&lt;/leo_highlight&gt; Ajax Library.&lt;br /&gt;
&lt;br /&gt;
Ans.&lt;/span&gt; &lt;leo_highlight id="leoHighlights_Underline_4" leohighlights_keywords="microsoft" leohighlights_underline="true" leohighlights_url_bottom="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsBottom.jsp?keywords%3Dmicrosoft%26domain%3Dwww.blogger.com" leohighlights_url_top="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsTop.jsp?keywords%3Dmicrosoft%26domain%3Dwww.blogger.com" onclick="leoHighlightsHandleClick('leoHighlights_Underline_4')" onmouseout="leoHighlightsHandleMouseOut('leoHighlights_Underline_4')" onmouseover="leoHighlightsHandleMouseOver('leoHighlights_Underline_4')" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: transparent none repeat scroll 0% 50%; border-bottom: 2px solid rgb(255, 255, 150); cursor: pointer; display: inline;"&gt;Microsoft&lt;/leo_highlight&gt; Ajax Library is a client-only JavaScript library that is compatible with all modern browsers, including Internet Explorer, &lt;leo_highlight id="leoHighlights_Underline_5" leohighlights_keywords="google" leohighlights_underline="false" leohighlights_url_bottom="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsBottom.jsp?keywords%3Dgoogle%26domain%3Dwww.blogger.com" leohighlights_url_top="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsTop.jsp?keywords%3Dgoogle%26domain%3Dwww.blogger.com" onclick="leoHighlightsHandleClick('leoHighlights_Underline_5')" onmouseout="leoHighlightsHandleMouseOut('leoHighlights_Underline_5')" onmouseover="leoHighlightsHandleMouseOver('leoHighlights_Underline_5')" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: transparent none repeat scroll 0% 0%; cursor: pointer; display: inline;"&gt;Google&lt;/leo_highlight&gt; Chrome, Apple Safari, and Mozilla Firefox.Because the &lt;leo_highlight id="leoHighlights_Underline_6" leohighlights_keywords="microsoft" leohighlights_underline="false" leohighlights_url_bottom="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsBottom.jsp?keywords%3Dmicrosoft%26domain%3Dwww.blogger.com" leohighlights_url_top="http%3A//shortcuts.thebrowserhighlighter.com/leonardo/plugin/highlights/3_1/tbh_highlightsTop.jsp?keywords%3Dmicrosoft%26domain%3Dwww.blogger.com" onclick="leoHighlightsHandleClick('leoHighlights_Underline_6')" onmouseout="leoHighlightsHandleMouseOut('leoHighlights_Underline_6')" onmouseover="leoHighlightsHandleMouseOver('leoHighlights_Underline_6')" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: transparent none repeat scroll 0% 0%; cursor: pointer; display: inline;"&gt;Microsoft&lt;/leo_highlight&gt; Ajax Library is a client-only JavaScript library, you can use the library with both ASP.NET Web Forms and ASP.NET MVC applications. You can also create Ajax pages that consist only of HTML.&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Ques 5.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; What are the Changes in CheckBoxList and RadioButtonList Control ?&lt;br /&gt;
&lt;br /&gt;
Ans.&lt;/span&gt; In ASP.NET 4, the CheckBoxList and RadioButtonList controls support two new values for the RepeatLayout property, OrderedList(The content is rendered as li elements within an ol element) and UnorderedList(The content is rendered as li elements within a ul element.)&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Ques 6.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; Whats Application Warm-Up Module?&lt;br /&gt;
&lt;br /&gt;
Ans.&lt;/span&gt; We can set-up a Warm-Up module for warming up your applications before they serve their first request.Instead of writing custom code, you specify the URLs of resources to execute before the Web application accepts requests from the network. This warm-up occurs during startup of the IIS service (if you configured the IIS application pool as AlwaysRunning) and when an IIS worker process recycles. During recycle, the old IIS worker process continues to execute requests until the newly spawned worker process is fully warmed up, so that applications experience no interruptions or other issues due to unprimed caches.&lt;/configuration&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-640250014137894239?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2010/09/aspnet-40-interview-questions.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>4</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-8804672168817220482</guid><pubDate>Thu, 16 Sep 2010 11:26:00 +0000</pubDate><atom:updated>2010-09-16T07:26:16.704-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>.net 4.0</category><title>Dotnet 4.0 videos</title><description>Find the good videos link for .net 4.0 below&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.msdev.com/Directory/SeriesDescription.aspx?CourseId=111"&gt;http://www.msdev.com/Directory/SeriesDescription.aspx?CourseId=111&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-8804672168817220482?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2010/09/dotnet-40-videos.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-6705976500018155140</guid><pubDate>Mon, 16 Aug 2010 10:20:00 +0000</pubDate><atom:updated>2010-08-16T06:20:06.789-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>.NET Framework</category><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>Dotnet interview question for Senior Developers/Architects</title><description>&lt;b&gt;Ques 1: &amp;nbsp;&amp;nbsp;&amp;nbsp; What’s wrong with a line like this? DateTime.Parse(myString); &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans :&amp;nbsp; &lt;/b&gt;parameters are missing as mention below&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;public static DateTime Parse(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;string s,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IFormatProvider provider,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;DateTimeStyles styles&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ques 2:&amp;nbsp;  What are PDBs? Where must they be located for debugging to work? &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans :&lt;/b&gt; A program database (PDB) files holds debugging and project state information that allows incremental linking of debug configuration of your program.There are several different types of symbolic debugging information. The default type for Microsoft compiler is the so-called PDB file. The compiler setting for creating this file for Visual Basic/C#/JScript .NET program with /debug.&lt;br /&gt;
A PDB file is a separate file, placed by default in the Debug project subdirectory, that has the same name as the executable file with the extension .pdb. The PDB file can be useful to display the detailed stack trace with source files and line numbers.&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ques 3:&amp;nbsp;  Write a standard lock() plus “double check” to create a critical section around a variable access. &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans :&lt;/b&gt; Code given below&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— bool notLocked = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— if (notLocked)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— — lock (typeof(lockingObject))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— — {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— — — if (notLocked)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— — — {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— — — — notLocked = false;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— — — — foo = lockingObject;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— — — — notLocked = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— — — }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— — }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;— }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;or&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;class Singleton&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;public static Singleton GetInstance()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (_Instance == null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;lock(_Instance)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (_Instance == null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;_Instance = new Singleton();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return _Instance;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;private static volatile Singleton _Instance = null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected Singleton(){}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ques 4: &amp;nbsp;&amp;nbsp; What is FullTrust? Do GAC’ed assemblies have FullTrust? &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans :&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Before the .NET Framework existed, Windows had two levels of trust for downloaded code. This old model was a binary trust model. You only had two choices: Full Trust, and No Trust. The code could either do anything you could do, or it wouldn’t run at all. The permission sets in .NET include FullTrust, SkipVerification, Execution, Nothing, LocalIntranet, Internet and Everything. Full Trust Grants unrestricted permissions to system resources. Fully trusted code run by a normal, nonprivileged user cannot do administrative tasks, but can access any resources the user can access, and do anything the user can do. From a security standpoint, you can think of fully trusted code as being similar to native, unmanaged code, like a traditional ActiveX control.&lt;br /&gt;
GAC assemblies are granted FullTrust. In v1.0 and 1.1, the fact that assemblies in the GAC seem to always get a FullTrust grant is actually a side effect of the fact that the GAC lives on the local machine. If anyone were to lock down the security policy by changing the grant set of the local machine to something less than FullTrust, and if your assembly did not get extra permission from some other code group, it would no longer have FullTrust even though it lives in the GAC.&lt;br /&gt;
FullTrust is a named permission set. FullTrust means executing code has full access to all resources&lt;br /&gt;
FullTrust means all .NET security permissions are granted to the assembly. GAC assemblies have FullTrust by default, but that can be changed by the user’s security policy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-6705976500018155140?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2010/08/dotnet-interview-question-for-senior.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-3161676329426072046</guid><pubDate>Thu, 22 Jul 2010 10:13:00 +0000</pubDate><atom:updated>2010-07-22T06:13:31.367-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>SOA</category><category domain='http://www.blogger.com/atom/ns#'>WCF</category><title>SOA: Address Scalability Bottlenecks with Distributed Caching</title><description>SOA allows users to distribute applications to multiple locations, multiple departments within an organization, and multiple businesses across the Internet. Plus, it permits reuse of existing code within an organization and, more importantly, collaboration among different business units.&lt;br /&gt;
A SOA application is usually deployed in a server farm in a load-balanced environment. The goal is to allow the application to handle as much load as you throw at it. The question thus becomes: What are some of the considerations you should have in mind for improving both performance and scalability of your SOA application?&lt;br /&gt;
Although SOA, by design, is intended to provide scalability, there are many issues you must address before you can truly achieve scalability. Some of these issues involve how you code your SOA application, but the most important bottlenecks often relate to how you store and access your data. I’ll explore those issues and provide some solutions in this article.&lt;br /&gt;
&lt;h2&gt;Find Scalability Bottlenecks&lt;/h2&gt;A true SOA application should scale easily as far as the application architecture is concerned. A SOA application has two components: service components and client applications. The client application may be a Web application, another service or any other application that relies on the SOA service components to do its job.&lt;br /&gt;
One of the key ideas behind SOA is to break up the application into small chunks so these components can be run on multiple servers as separate services.&lt;br /&gt;
Ideally, these services should be stateless as much as possible. Stateless means they don’t retain any data with them across multiple calls, allowing you to run the services on multiple computers. There’s no dependence on where the data was the last time, so there’s no data being kept on any particular server across multiple service calls.&lt;br /&gt;
As a result, the architecture of SOA applications is inherently scalable. It can easily grow onto multiple servers and across datacenters. However, as with every other application, SOA applications do have to deal with the data, and that can be a problem. This data access becomes the scalability bottleneck. Bottlenecks typically involve the application data, which is stored in some database, usually a relational database. If the SOA application is using session data, the storage of that data is also another potential scalability bottleneck.&lt;br /&gt;
One SOA application relying on other SOA applications is another likely area of poor performance and scalability. Say your application calls one service to do its job, but that service calls out to other services. Those services may be on the same intranet or across the WAN in other locations. Such a data trip can be costly. You can’t scale the application effectively if you’re making those calls over and over again, and these are areas where scalability bottlenecks occur, as shown in &lt;strong&gt;Figure 1&lt;/strong&gt;.&lt;br /&gt;
&lt;img align="Middle" alt="Figure 1 SOA Architecture with Potential Scalability Bottlenecks" src="http://i.msdn.microsoft.com/ff714590.Khan_Figure1_hires%28en-us,MSDN.10%29.png" title="Figure 1 SOA Architecture with Potential Scalability Bottlenecks" /&gt;&lt;br /&gt;
Figure 1 &lt;strong&gt;SOA Architecture with Potential Scalability Bottlenecks&lt;/strong&gt;&lt;br /&gt;
&lt;h2&gt;Code for Performance&lt;/h2&gt;There are a number of programming techniques that can help improve your SOA application performance.&lt;br /&gt;
One thing you can do is design your application to use “chunky” Web method calls. Don’t make frequent calls between the SOA client application and the SOA service layer. There’s usually a great distance between those because they’re not running on the same computer or even in the same datacenter. The fewer calls you make from the client application to the service layers, the better the performance. Chunky calls do more work in one call than multiple calls to do the same work.&lt;br /&gt;
Another useful technique is to employ the asynchronous Web method calls supported by the Microsoft .NET Framework. This allows your SOA client application to continue doing other things while the Web method of the service layer is being called and is executing.&lt;br /&gt;
The cost of serialization is another aspect to factor in so you don’t serialize any unnecessary data. You should only send data that is required back and forth, allowing you to be highly selective about the type of serialization you want to perform.&lt;br /&gt;
&lt;h2&gt;Choose the Right Communication Protocol&lt;/h2&gt;For SOA applications developed in Windows Communication Foundation (WCF), there are three different protocols that let SOA clients talk to SOA services. These are HTTP, TCP and named pipes.&lt;br /&gt;
If both your client and your service are developed in WCF and are running on the same machine, named pipes offer the best performance. A named pipe uses shared memory between client and server processes.&lt;br /&gt;
TCP is good if both SOA client and server are developed in WCF, but are running on different computers in the same intranet. TCP is faster than HTTP, but a TCP connection stays open across multiple calls and therefore you can’t automatically route each WCF call to a different server. By employing the NetTcpBinding option that uses connection pools, you can expire TCP connections frequently to restart them so they get routed to a different server, thereby giving you a form of load balancing.&lt;br /&gt;
Please note that TCP can’t work reliably across the WAN because socket connections tend to break frequently. If your SOA client and service are not based on WCF or they’re hosted in different locations, then HTTP is your best option. Although HTTP is not as fast as TCP, it offers great scalability due to load balancing.&lt;br /&gt;
&lt;h2&gt;Use Caching to Improve Client Performance&lt;/h2&gt;Thoughtful use of caching can really improve SOA client performance. When a SOA client makes a Web method call to the service layer, you can cache the results at the client application’s end. Then, the next time this SOA client needs to make the same Web method call, it gets that data from the cache instead.&lt;br /&gt;
By caching data at the client end, the SOA client application reduces the number of calls it’s going to make to the service layer. This step boosts performance because it didn’t have to make an expensive SOA service call. It also reduces overall pressure on the service layer and improves scalability. &lt;strong&gt;Figure 2&lt;/strong&gt; shows a WCF client using caching.&lt;br /&gt;
Figure 2 &lt;strong&gt;WCF Client Caching&lt;/strong&gt;&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl02"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl02_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl02_code" space="preserve"&gt;using System;
using Client.EmployeeServiceReference;

using Alachisoft.NCache.Web.Caching;

namespace Client {
  class Program {
    static string _sCacheName = "mySOAClientCache";
    static Cache _sCache = NCache.InitializeCache(_sCacheName);

    static void Main(string[] args) {
      EmployeeServiceClient client = 
        new EmployeeServiceClient("WSHttpBinding_IEmployeeService");

      string employeeId = "1000";
      string key = "Employee:EmployeeId:" + employeeId;
            
      // first check the cache for this employee
      Employee emp = _sCache.Get(key);

      // if cache doesn't have it then make WCF call
      if (emp == null) {
        emp = client.Load("1000");

        // Now add it to the cache for next time
       _sCache.Insert(key, emp);
      }
    }
  }
}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;In many situations, your client is physically removed from the service layer and is running across the WAN. In that case, you have no way of knowing whether the data you have cached has been updated. Therefore, you have to identify only those data elements for caching that you feel will not change for at least a few minutes to perhaps a few hours, depending on your application. You can then specify expiration for these data elements in the cache so the cache will automatically remove them at that time. This helps ensure that cached data is always fresh and correct.&lt;br /&gt;
&lt;h2&gt;Distributed Caching for Service Scalability&lt;/h2&gt;The real scalability gains through caching are found in the SOA service layer. Scalability bottlenecks are not always removed despite many of the programming techniques mentioned already because the major scalability bottlenecks are with data storage and access. Services often live in a load-balanced server farm, allowing the service itself to scale quite nicely—except the data storage can’t scale in the same manner. Data storage thus becomes the SOA bottleneck.&lt;br /&gt;
You can scale the service layer by adding more servers to the server farm, increasing the computing capacity through these additional application servers. But all those SOA transactions still deal with some data. That data has to be stored somewhere, and that data storage can easily become the bottleneck.&lt;br /&gt;
This data storage barrier to scalability can be improved at multiple levels. SOA services deal with two types of data. One is session-state data and the other is application data that resides in the database (see &lt;strong&gt;Figure 3&lt;/strong&gt;). Both cause scalability bottlenecks.&lt;br /&gt;
&lt;img align="Middle" alt="Figure 3 How Distributed Caching Reduces Pressure on a Database" src="http://i.msdn.microsoft.com/ff714590.Khan_Figure3_hires%28en-us,MSDN.10%29.png" title="Figure 3 How Distributed Caching Reduces Pressure on a Database" /&gt;&lt;br /&gt;
Figure 3 &lt;strong&gt;How Distributed Caching Reduces Pressure on a Database&lt;/strong&gt;&lt;br /&gt;
&lt;h2&gt;Storing Session State in a Distributed Cache&lt;/h2&gt;One of the limitations of the default session-state storage is that it does not support Web farms because it is in-memory storage living inside the WCF service process. A much better alternative is to use ASP.NET compatibility mode and the ASP.NET session state in WCF services. This allows you to specify OutProc storage including StateServer, SqlServer, or a distributed cache as session state storage.&lt;br /&gt;
Enabling ASP.NET compatibility mode is a two-step process. First, you have to specify ASP.NET compatibility in your class definition, as shown in &lt;strong&gt;Figure 4&lt;/strong&gt;. Then you have to specify this in your app.config file, as shown in &lt;strong&gt;Figure 5&lt;/strong&gt;. Notice that &lt;strong&gt;Figure 4&lt;/strong&gt; also demonstrates how to specify a distributed cache as your SessionState storage in the same web.config file.&lt;br /&gt;
Figure 4 &lt;strong&gt;Specifying ASP.NET Compatibility for WCF Services in Code&lt;/strong&gt;&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl03"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl03_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl03_code" space="preserve"&gt;using System;
using System.ServiceModel;
using System.ServiceModel.Activation;

namespace MyWcfServiceLibrary {
  [ServiceContract]
  public interface IHelloWorldService {
    [OperationContract]
    string HelloWorld(string greeting);
  }

  [ServiceBehavior (InstanceContextMode = 
    InstanceContextMode.PerCall)]
  [AspNetCompatibilityRequirements (RequirementsMode = 
    AspNetCompatibilityRequirementsMode.Allowed)]

  public class HelloWorldService : IHelloWorldService {
    public string HelloWorld(string greeting) {
      return string.Format("HelloWorld: {0}", greeting);
    }
  }
}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;Figure 5 &lt;strong&gt; Specifying ASP.NET Compatibility for WCF Services in Config&lt;/strong&gt;&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl04"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl04_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl04_code" space="preserve"&gt;&lt;configuration&gt;
  &lt;system.web&gt;
    &lt;sessionstate cookieless="UseCookies"&gt;
      mode="Custom" 
      customProvider="DistCacheSessionProvider" 
      timeout="20"&amp;gt;
      &lt;providers&gt;
        &lt;add name="DistCacheSessionProvider"&gt;
          type="Vendor.DistCache.Web.SessionState.SessionStoreProvider"/&amp;gt;
      &lt;/add&gt;
    &lt;/providers&gt;
    &lt;identity impersonate="true"&gt;
  &lt;/identity&gt;

  &lt;system.servicemodel&gt;
    &lt;!-- ... --&gt;
    &lt;servicehostingenvironment&gt;
      aspNetCompatibilityEnabled="true"/&amp;gt;
  &lt;/servicehostingenvironment&gt;&lt;/system.servicemodel&gt;&lt;/sessionstate&gt;&lt;/system.web&gt;&lt;/configuration&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;StateServer and SqlServer session storage options do not scale well and, in the case of StateServer, it is also a single point of failure. A distributed cache is a much better alternative because it scales nicely and replicates sessions to multiple servers for reliability.&lt;br /&gt;
&lt;h2&gt;Caching Application Data&lt;/h2&gt;Application data is by far the heaviest data usage in a WCF service, and its storage and access is a major scalability bottleneck. To address this scalability-bottleneck problem, you can use distributed caching in your SOA service-layer implementation. A distributed cache is used to cache only a subset of the data that is in the database based on what the WCF service needs in a small window of a few hours.&lt;br /&gt;
Additionally, a distributed cache gives a SOA application a significant scalability boost because this cache can scale out as a result of the architecture it employs. It keeps things distributed across multiple servers—and still gives your SOA application one logical view so you think it’s just one cache. But the cache actually lives on multiple servers and that’s what allows the cache to really scale. If you use distributed caching in between the service layer and the database, you’ll improve performance and scalability of the service layer dramatically.&lt;br /&gt;
The basic logic to implement is that, before going to the database, check to see if the cache already has the data. If it does, take it from the cache. Otherwise, go to the database to fetch the data and put it in the cache for next time. &lt;strong&gt;Figure 6&lt;/strong&gt; shows an example.&lt;br /&gt;
Figure 6 &lt;strong&gt;WCF Service Using Caching&lt;/strong&gt;&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl05"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl05_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl05_code" space="preserve"&gt;using System.ServiceModel;
using Vendor.DistCache.Web.Caching;

namespace MyWcfServiceLibrary {
  [ServiceBehavior]
  public class EmployeeService : IEmployeeService {
    static string _sCacheName = "myServiceCache";
    static Cache _sCache = 
      DistCache.InitializeCache(_sCacheName);

    public Employee Load(string employeeId) {
      // Create a key to lookup in the cache.
      // The key for will be like "Employees:PK:1000".
      string key = "Employee:EmployeeId:" + employeeId;

      Employee employee = (Employee)_sCache[key];
      if (employee == null) {
        // item not found in the cache. 
        // Therefore, load from database.
        LoadEmployeeFromDb(employee);

        // Now, add to cache for future reference.
       _sCache.Insert(key, employee, null,
          Cache.NoAbsoluteExpiration,
          Cache.NoSlidingExpiration,
          CacheItemPriority.Default);
      }

      // Return a copy of the object since 
      // ASP.NET Cache is InProc.
      return employee;
    }
  }
}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;By caching application data, your WCF service saves a lot of expensive database trips and instead finds the frequently used transactional data in a nearby in-memory cache.&lt;br /&gt;
&lt;h2&gt;Expiring Cached Data&lt;/h2&gt;Expirations let you specify how long data should stay in the cache before the cache automatically removes it. There are two types of expirations you can specify: absolute-time expiration and sliding- or idle-time expiration.&lt;br /&gt;
If the data in your cache also exists in the database, you know that this data can be changed in the database by other users or applications that may not have access to your cache. When that happens, the data in your cache becomes stale, which you do not want. If you’re able to make a guess as to how long you think it’s safe for this data to be kept in the cache, you can specify absolute-time expiration. You can say something like “expire this item 10 minutes from now” or “expire this item at midnight today.” At that time, the cache expires this item:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl06"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl06_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl06_code" space="preserve"&gt;using Vendor.DistCache.Web.Caching;
...
// Add an item to ASP.NET Cache with absolute expiration
_sCache.Insert(key, employee, null, 
  DateTime.Now.AddMinutes(2),
  Cache.NoSlidingExpiration, 
  CacheItemPriority.Default, null);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;You can also use idle-time or sliding-time expiration to expire an item if nobody uses it for a given period. You can specify something like “expire this item if nobody reads or updates it for 10 minutes.” This is useful when your application needs the data temporarily and when your application is done using it, you want the cache to automatically expire it. ASP.NET compatibility-mode session state is a good example of idle-time expiration.&lt;br /&gt;
Notice that absolute-time expiration helps you avoid situations where the cache has an older or stale copy of the data than the master copy in the database. On the other hand, idle-time expiration serves a totally different purpose. It’s meant really to simply clean up the cache once your application no longer needs the data. Instead of having your application keep track of this clean up, you let the cache take care of it.&lt;br /&gt;
&lt;h2&gt;Managing Data Relationships in the Cache&lt;/h2&gt;Most data comes from a relational database, and even if it’s not coming from a relational database, it’s relational in nature. For example, you’re trying to cache a customer object and an order object and both objects are related. A customer can have multiple orders.&lt;br /&gt;
When you have these relationships, you need to be able to handle them in a cache. That means the cache should know about the relationship between a customer and an order. If you update or remove the customer from the cache, you may want the cache to automatically remove the order object from the cache. This helps maintain data integrity in many situations.&lt;br /&gt;
If a cache can’t keep track of these relationships, you’ll have to do it yourself—and that makes your application more cumbersome and complex. It’s a lot easier if you just tell the cache when you add the data about this relationship. The cache then knows if that customer is ever updated or removed, the order also has to be removed.&lt;br /&gt;
ASP.NET has a useful feature called CacheDependency that allows you to keep track of relationships between different cached items. Some commercial caches also have this feature. Here’s an example of how ASP.NET lets you keep track of relationships among cached items:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl07"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl07_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl07_code" space="preserve"&gt;using Vendor.DistCache.Web.Caching;
...
public void CreateKeyDependency() {
  Cache["key1"] = "Value 1";

  // Make key2 dependent on key1.
  String[] dependencyKey = new String[1];
  dependencyKey[0] = "key1";
  CacheDependency dep1 = 
    new CacheDependency(null, dependencyKey);

  _sCache.Insert("key2", "Value 2", dep2);
}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;This is multi-layer dependency, meaning A can depend on B and B can depend on C. So, if your application updates C, both A and B have to be removed from the cache.&lt;br /&gt;
&lt;h2&gt;Synchronizing the Cache with a Database&lt;/h2&gt;The need for database synchronization arises because the database is really being shared across multiple applications, and not all of those applications have access to your cache. If your WCF service application is the only one updating the database and it can also easily update the cache, you probably don’t need the database-synchronization capability.&lt;br /&gt;
But, in a real-life environment, that’s not always the case. Third-party applications update data in the database and your cache becomes inconsistent with the database. Synchronizing your cache with the database ensures that the cache is always aware of these database changes and can update itself accordingly.&lt;br /&gt;
Synchronizing with the database usually means invalidating the related cached item from the cache so the next time your application needs it, it will have to fetch it from the database because the cache doesn’t have it.&lt;br /&gt;
ASP.NET has a SqlCacheDependency feature that allows you to synchronize the cache with SQL Server 2005, SQL Server 2008 or Oracle 10g R2 and later—basically any database that supports the CLR. Some of the commercial caches also provide this capability. &lt;strong&gt;Figure 7&lt;/strong&gt; shows an example of using SQL dependency to synchronize with a relational database.&lt;br /&gt;
Figure 7 &lt;strong&gt;Synchronizing Data via SQL Dependency&lt;/strong&gt;&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl08"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl08_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl08_code" space="preserve"&gt;using Vendor.DistCache.Web.Caching;
using System.Data.SqlClient;
...

public void CreateSqlDependency(
  Customers cust, SqlConnection conn) {

  // Make cust dependent on a corresponding row in the
  // Customers table in Northwind database

  string sql = "SELECT CustomerID FROM Customers WHERE ";
  sql += "CustomerID = @ID";
  SqlCommand cmd = new SqlCommand(sql, conn);
  cmd.Parameters.Add("@ID", System.Data.SqlDbType.VarChar);
  cmd.Parameters["@ID"].Value = cust.CustomerID;

  SqlCacheDependency dep = new SqlCacheDependency(cmd);
  string key = "Customers:CustomerID:" + cust.CustomerID;
_  sCache.Insert(key, cust, dep);
}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;One capability that ASP.NET does not provide, but some commercial solutions do, is polling-based database synchronization. This is handy if your DBMS doesn’t support the CLR and you can’t benefit from SqlCacheDependency. In that case, it would be nice if your cache could poll your database at configurable intervals and detect changes in certain rows in a table. If those rows have changed, your cache invalidates their corresponding cached items.&lt;br /&gt;
&lt;h2&gt;Enterprise Service Bus for SOA Scalability&lt;/h2&gt;Enterprise Service Bus (ESB) is an industry concept where many technologies are used to build it. An ESB is an infrastructure for Web services that mediates communication among components. Put plainly, an ESB is a simple and powerful way for multiple applications to share data asynchronously. It is not meant to be used across organizations or even across a WAN, however. Usually SOA applications are by design broken up into multiple pieces, so when they need to share data with each other, ESB is a powerful tool.&lt;br /&gt;
There are many ways to build an ESB. &lt;strong&gt;Figure 8&lt;/strong&gt; shows an example of an ESB created with a distributed cache. Multiple loosely coupled applications or service components can use it to share data with each other in real time and across the network.&lt;br /&gt;
&lt;img align="Middle" alt="" src="http://i.msdn.microsoft.com/ff714590.Khan_Figure8_hires%28en-us,MSDN.10%29.png" title="Figure 8 An ESB Created with a Distributed Cache" /&gt;&lt;br /&gt;
Figure 8 &lt;strong&gt;An ESB Created with a Distributed Cache&lt;/strong&gt;&lt;br /&gt;
A distributed cache by its nature spans multiple computers. This makes it highly scalable, which meets the first criterion of an ESB. In addition, a good distributed cache replicates all its data intelligently to ensure that no data loss occurs if any cache server goes down. (I’ll discuss this later.) Finally, a good distributed cache provides intelligent event-propagation mechanisms.&lt;br /&gt;
There are two types of events that a distributed cache must provide to be fit for an ESB. First, any client application of the ESB should be able to register interest in a data element on the ESB so if anybody modifies or deletes it, the client application is notified immediately. Second, the cache should allow client applications to fire custom events into the ESB so all other applications connected to the ESB that are interested in this custom event are immediately notified, no matter where they are on the network (of course, within the intranet).&lt;br /&gt;
With the help of an ESB, a lot of data exchange that would otherwise require SOA calls from one application to another can be done very easily through the ESB. Additionally, asynchronous data sharing is something a simple WCF service is not designed to do easily. But the ESB makes this job seamless. You can easily create situations where data is even pushed to the clients of the ESB if they have shown interest in it up front.&lt;br /&gt;
&lt;h2&gt;Cache Scalability and High Availability&lt;/h2&gt;Caching topology is a term used to indicate how data is actually stored in a distributed cache. There are various caching topologies that are designed to fit different environments. I’ll discuss three here: partitioned cache, partitioned-replicated cache and replicated cache.&lt;br /&gt;
Partitioned and partitioned-replicated are two caching topologies that play major roles in the scalability scenario. In both topologies, the cache is broken up into partitions, then each partition stored in different cache servers in the cluster. Partitioned-replicated cache has a replica of each partition stored on a different cache server.&lt;br /&gt;
Partitioned and partitioned-replicated caches are the most scalable topology for transactional data caching (where writes to the cache are as frequent as reads) because, as you add more cache servers to the cluster, you’re not only increasing the transaction capacity, you’re also increasing the storage capacity of the cache because all those partitions together form the entire cache.&lt;br /&gt;
A third caching topology, replicated cache, copies the entire cache to each cache server in the cache cluster. This means the replicated cache provides high availability and is good for read-intensive usage. It is not good for frequent updates, however, because updates are done to all copies synchronously and are not as fast as with other caching topologies.&lt;br /&gt;
As shown in &lt;strong&gt;Figure 9&lt;/strong&gt;, partitioned-replicated cache topology is ideal for a combination of scalability and high availability. You don’t lose any data because of the replicas of each partition.&lt;br /&gt;
&lt;img align="Middle" alt="" src="http://i.msdn.microsoft.com/ff714590.Khan_Figure9_hires%28en-us,MSDN.10%29.png" title="Figure 9 Partitioned-Replicated Caching Topology for Scalability" /&gt;&lt;br /&gt;
Figure 9 &lt;strong&gt;Partitioned-Replicated Caching Topology for Scalability&lt;/strong&gt;&lt;br /&gt;
High availability can be further enhanced through dynamic cache clustering, which is the ability to add or remove cache servers from the cache cluster at run time without stopping the cache or the client applications. Because a distributed cache runs in a production environment, high availability is an important feature requirement.&lt;br /&gt;
&lt;h2&gt;Next Steps&lt;/h2&gt;As you’ve seen, an SOA application can’t scale effectively when the data it uses is kept in a storage that is not scalable for frequent transactions. This is where distributed caching really helps.&lt;br /&gt;
Distributed caching is a new concept but rapidly gaining acceptance among .NET developers as a best practice for any high-transaction application. The traditional database servers are also improving but without distributed caching, they can’t meet the exploding demand for scalability in today’s applications.&lt;br /&gt;
&lt;br /&gt;
Reference&amp;nbsp; URL : http://msdn.microsoft.com/en-us/magazine/ff714590.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-3161676329426072046?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2010/07/soa-address-scalability-bottlenecks.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-3191548358468138402</guid><pubDate>Tue, 20 Jul 2010 12:34:00 +0000</pubDate><atom:updated>2010-07-20T08:34:43.028-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>.NET Framework</category><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>New C# Features in the .NET Framework 4</title><description>&lt;h2&gt;Covariance and Contravariance&lt;/h2&gt;Covariance and contravariance are best introduced with an example, and the best is in the framework. In System.Collections.Generic, IEnumerable&lt;t&gt; and IEnumerator &lt;t&gt; represent, respectively, an object that’s a sequence of T’s and the enumerator (or iterator) that does the work of iterating the sequence. These interfaces have done a lot of heavy lifting for a long time, because they support the implementation of the foreach loop construct. In C# 3.0, they became even more prominent because of their central role in LINQ and LINQ to Objects—they’re the .NET interfaces to represent sequences.&lt;/t&gt;&lt;/t&gt;&lt;br /&gt;
So if you have a class hierarchy with, say, an Employee type and a Manager type that derives from it (managers are employees, after all), then what would you expect the following code to do?&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl02"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl02_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl02_code" space="preserve"&gt;IEnumerable&lt;manager&gt; ms = GetManagers();
IEnumerable&lt;employee&gt; es = ms;&lt;/employee&gt;&lt;/manager&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; It seems as though one ought to be able to treat a sequence of Managers as though it were a sequence of Employees. But in C# 3.0, the assignment will fail; the compiler will tell you there’s no conversion. After all, it has no idea what the semantics of IEnumerable&lt;t&gt; are. This could be any interface, so for any arbitrary interface IFoo&lt;t&gt;, why would an IFoo&lt;manager&gt; be more or less substitutable for an IFoo&lt;employee&gt;?&lt;/employee&gt;&lt;/manager&gt;&lt;/t&gt;&lt;/t&gt;&lt;br /&gt;
In C# 4.0, though, the assignment works because IEnumerable&lt;t&gt;, along with a few other interfaces, has changed, an alteration enabled by new support in C# for covariance of type parameters.&lt;/t&gt;&lt;br /&gt;
IEnumerable&lt;t&gt; is eligible to be more special than the arbitrary IFoo&lt;t&gt; because, though it’s not obvious at first glance, members that use the type parameter T (GetEnumerator in IEnumerable&lt;t&gt; and the Current property in IEnumerator&lt;t&gt;) actually use T only in the position of a return value. So you only get a Manager out of the sequence, and you never put one in.&lt;/t&gt;&lt;/t&gt;&lt;/t&gt;&lt;/t&gt;&lt;br /&gt;
In contrast, think of List&lt;t&gt;. Making a List&lt;manager&gt; substitutable for a List&lt;employee&gt; would be a disaster, because of the following:&lt;/employee&gt;&lt;/manager&gt;&lt;/t&gt;&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl03"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl03_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl03_code" space="preserve"&gt;List&lt;manager&gt; ms = GetManagers();
List&lt;employee&gt; es = ms; // Suppose this were possible
es.Add(new EmployeeWhoIsNotAManager()); // Uh oh&lt;/employee&gt;&lt;/manager&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; As this shows, once you think you’re looking at a List&lt;employee&gt;, you can insert any employee. But the list in question is actually a List&lt;manager&gt;, so inserting a non-Manager must fail. You’ve lost type safety if you allow this. List&lt;t&gt; cannot be covariant in T.&lt;/t&gt;&lt;/manager&gt;&lt;/employee&gt;&lt;br /&gt;
The new language feature in C# 4.0, then, is the ability to define types, such as the new IEnumerable&lt;t&gt;, that admit conversions among themselves when the type parameters in question bear some relationship to one another. This is what the .NET Framework developers who wrote IEnumerable&lt;t&gt; used, and this is what their code looks like (simplified, of course):&lt;/t&gt;&lt;/t&gt;&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl04"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl04_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl04_code" space="preserve"&gt;public interface IEnumerable&lt;out t=""&gt; { /* ... */ }&lt;/out&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;Notice the out keyword modifying the definition of the type parameter, T. When the compiler sees this, it will mark T as covariant and check that, in the definition of the interface, all uses of T are up to snuff (in other words, that they’re used in out positions only—that’s why this keyword was picked).&lt;br /&gt;
Why is this called covariance? Well, it’s easiest to see when you start to draw arrows. To be concrete, let’s use the Manager and Employee types. Because there’s an inheritance relationship between these classes, there’s an implicit reference conversion from Manager to Employee:&lt;br /&gt;
&lt;strong&gt;Manager → Employee&lt;/strong&gt;&lt;br /&gt;
And now, because of the annotation of T in IEnumerable&lt;out t=""&gt;, there’s also an implicit reference conversion from IEnumerable&lt;manager&gt; to IEnumerable&lt;employee&gt;. That’s what the annotation provides for:&lt;/employee&gt;&lt;/manager&gt;&lt;/out&gt;&lt;br /&gt;
&lt;strong&gt;IEnumerable&lt;manager&gt; → IEnumerable&lt;employee&gt;&lt;/employee&gt;&lt;/manager&gt;&lt;/strong&gt;&lt;br /&gt;
This is called covariance, because the arrows in each of the two examples point in the same direction. We started with two types, Manager and Employee. We made new types out of them, IEnumerable&lt;manager&gt; and IEnumerable&lt;employee&gt;. The new types convert the same way as the old ones.&lt;/employee&gt;&lt;/manager&gt;&lt;br /&gt;
Contravariance is when this happens backward. You might anticipate that this could happen when the type parameter, T, is used only as input, and you’d be right. For example, the System namespace contains an interface called IComparable&lt;t&gt;, which has a single method called CompareTo:&lt;/t&gt;&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl05"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl05_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl05_code" space="preserve"&gt;public interface IComparable&lt;in t=""&gt; { 
  bool CompareTo(T other); 
}&lt;/in&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; If you have an IComparable&lt;employee&gt;, you should be able to treat it as though it were an IComparable&lt;manager&gt;, because the only thing you can do is put Employees in to the interface. Because a manager is an employee, putting a manager in should work, and it does. The in keyword modifies T in this case, and this scenario functions correctly:&lt;/manager&gt;&lt;/employee&gt;&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl06"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl06_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl06_code" space="preserve"&gt;IComparable&lt;employee&gt; ec = GetEmployeeComparer();
IComparable&lt;manager&gt; mc = ec;&lt;/manager&gt;&lt;/employee&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;This is called contravariance because the arrow got reversed this time:&lt;br /&gt;
&lt;strong&gt;Manager → Employee&lt;br /&gt;
IComparable&lt;manager&gt; ← IComparable&lt;employee&gt;&lt;/employee&gt;&lt;/manager&gt;&lt;/strong&gt;&lt;br /&gt;
So the language feature here is pretty simple to summarize: You can add the keyword in or out whenever you define a type parameter, and doing so gives you free extra conversions. There are some limitations, though.&lt;br /&gt;
First, this works with generic interfaces and delegates only. You can’t declare a generic type parameter on a class or struct in this manner. An easy way to rationalize this is that delegates are very much like interfaces that have just one method, and in any case, classes would often be ineligible for this treatment because of fields. You can think of any field on the generic class as being both an input and an output, depending on whether you write to it or read from it. If those fields involve type parameters, the parameters can be neither covariant nor contravariant.&lt;br /&gt;
Second, whenever you have an interface or delegate with a covariant or contravariant type parameter, you’re granted new conversions on that type only when the type arguments, in the usage of the interface (not its definition), are reference types. For instance, because int is a value type, the IEnumerator&lt;int&gt; doesn’t convert to IEnumerator &lt;object&gt;, even though it looks like it should:&lt;/object&gt;&lt;/int&gt;&lt;br /&gt;
&lt;strong&gt;IEnumerator &lt;int&gt;&amp;nbsp;&lt;/int&gt;&lt;/strong&gt;&lt;img alt="image: right arrow with slash" src="http://i.msdn.microsoft.com/ff796223.Burrows_special_character%28en-us,MSDN.10%29.png" title="" /&gt;&amp;nbsp;&amp;nbsp;&lt;strong&gt;IEnumerator &lt;object&gt;&lt;/object&gt;&lt;/strong&gt;&lt;br /&gt;
The reason for this behavior is that the conversion must preserve the type representation. If the int-to-object conversion were allowed, calling the Current property on the result would be impossible, because the value type int has a different representation on the stack than an object reference does. All reference types have the same representation on the stack, however, so only type arguments that are reference types yield these extra conversions.&lt;br /&gt;
Very likely, most C# developers will happily use this new language feature—they’ll get more conversions of framework types and fewer compiler errors when using some types from the .NET Framework (IEnumerable&lt;t&gt;, IComparable&lt;t&gt;, Func&lt;t&gt;, Action&lt;t&gt;, among others). And, in fact, anyone designing a library with generic interfaces and delegates is free to use the new in and out type parameters when appropriate to make life easier for their users.&lt;/t&gt;&lt;/t&gt;&lt;/t&gt;&lt;/t&gt;&lt;br /&gt;
By the way, this feature does require support from the runtime—but the support has always been there. It lay dormant for several releases, however, because no language made use of it. Also, previous versions of C# allowed some limited conversions that were contravariant. Specifically, they let you make delegates out of methods that had compatible return types. In addition, array types have always been covariant. These existing features are distinct from the new ones in C# 4.0, which actually let you define your own types that are covariant and contravariant in some of their type parameters.&lt;br /&gt;
&lt;h2&gt;Dynamic Dispatch&lt;/h2&gt;On to the interop features in C# 4.0, starting with what is perhaps the biggest change.&lt;br /&gt;
C# now supports dynamic late-binding. The language has always been strongly typed, and it continues to be so in version 4.0. Microsoft believes this makes C# easy to use, fast and suitable for all the work .NET programmers are putting it to. But there are times when you need to communicate with systems not based on .NET.&lt;br /&gt;
Traditionally, there were at least two approaches to this. The first was simply to import the foreign model directly into .NET as a proxy. COM Interop provides one example. Since the original release of the .NET Framework, it has used this strategy with a tool called TLBIMP,&amp;nbsp; which creates new .NET proxy types you can use directly from C#.&lt;br /&gt;
LINQ-to-SQL, shipped with C# 3.0, contains a tool called SQLMETAL, which imports an existing database into C# proxy classes for use with queries. You’ll also find a tool that imports Windows Management Instrumentation (WMI) classes to C#. Many technologies allow you to write C# (often with attributes) and then perform interop using your handwritten code as basis for external actions, such as LINQ-to-SQL, Windows Communication Foundation (WCF) and serialization.&lt;br /&gt;
The second approach abandons the C# type system entirely—you embed strings and data in your code. This is what you do whenever you write code that, say, invokes a method on a JScript object or when you embed a SQL query in your ADO.NET application. You’re even doing this when you defer binding to run time using reflection, even though the interop in that case is with .NET itself.&lt;br /&gt;
The dynamic keyword in C# is a response to dealing with the hassles of these other approaches. Let’s start with a simple example—reflection. Normally, using it requires a lot of boilerplate infrastructure code, such as:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl07"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl07_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl07_code" space="preserve"&gt;object o = GetObject();
Type t = o.GetType();
object result = t.InvokeMember("MyMethod", 
  BindingFlags.InvokeMethod, null, 
  o, new object[] { });
int i = Convert.ToInt32(result);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;With the dynamic keyword, instead of calling a method MyMethod on some object using reflection in this manner, you can now tell the compiler to please treat o as dynamic and delay all analysis until run time. Code that does that looks like this:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl08"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl08_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl08_code" space="preserve"&gt;dynamic o = GetObject();
int i = o.MyMethod();&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;It works, and it accomplishes the same thing with code that’s much less convoluted.&lt;br /&gt;
The value of this shortened, simplified C# syntax is perhaps more clear if you look at the ScriptObject class that supports operations on a JScript object. The class has an InvokeMember method that has more and different parameters, except in Silverlight, which actually has an Invoke method (notice the difference in the name) with fewer parameters. Neither of these are the same as what you’d need to invoke a method on an IronPython or IronRuby object or on any number of non-C# objects you might come into contact with.&lt;br /&gt;
In addition to objects that come from dynamic languages, you’ll find a variety of data models that are inherently dynamic and have different APIs supporting them, such as HTML DOMs, the System.Xml DOM and the XLinq model for XML. COM objects are often dynamic and can benefit from the delay to run time of some compiler analysis.&lt;br /&gt;
Essentially, C# 4.0 offers a simplified, consistent view of dynamic operations. To take advantage of it, all you need to do is specify that a given value is dynamic, ensuring that analysis of all operations on the value will be delayed until run time.&lt;br /&gt;
In C# 4.0, dynamic is a built-in type, and a special pseudo-keyword signifies it. Note, however, that dynamic is different from var. Variables declared with var actually do have a strong type, but the programmer has left it up to the compiler to figure it out. When the programmer uses dynamic, the compiler doesn’t know what type is being used—the programmer leaves figuring it out up to the runtime.&lt;br /&gt;
&lt;h2&gt;Dynamic and the DLR&lt;/h2&gt;The infrastructure that supports these dynamic operations at run time is called the Dynamic Language Runtime (DLR). This new .NET Framework 4 library runs on the CLR, like any other managed library. It’s responsible for brokering each dynamic operation between the language that initiated it and the object it occurs on. If a dynamic operation isn’t handled by the object it occurs on, a runtime component of the C# compiler handles the bind. A simplified and incomplete architecture diagram looks something like &lt;strong&gt;Figure 1&lt;/strong&gt;.&lt;br /&gt;
&lt;img alt="image: The DLR Runs on Top of the CLR" src="http://i.msdn.microsoft.com/ff796223.Burrows_Figure1_hires%28en-us,MSDN.10%29.png" title="" /&gt;&lt;br /&gt;
Figure 1 &lt;strong&gt;The DLR Runs on Top of the CLR&lt;/strong&gt;&lt;br /&gt;
The interesting thing about a dynamic operation, such as a dynamic method call, is that the receiver object has an opportunity to inject itself into the binding at run time and can, as a result, completely determine the semantics of any given dynamic operation. For instance, take a look at the following code:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl09"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl09_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl09_code" space="preserve"&gt;dynamic d = new MyDynamicObject();
d.Bar("Baz", 3, d);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; If MyDynamicObject was defined as shown here, then you can imagine what happens:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl10"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl10_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl10_code" space="preserve"&gt;class MyDynamicObject : DynamicObject {
  public override bool TryInvokeMember(
    InvokeMemberBinder binder, 
    object[] args, out object result) {

    Console.WriteLine("Method: {0}", binder.Name);
    foreach (var arg in args) {
      Console.WriteLine("Argument: {0}", arg);
    }

    result = args[0];
    return true;
  }
}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; In fact, the code prints:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl11"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl11_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl11_code" space="preserve"&gt;Method: Bar
Argument: Baz
Argument: 3
Argument: MyDynamicObject&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; By declaring d to be of type dynamic, the code that consumes the MyDynamicObject instance effectively opts out of compile-time checking for the operations d participates in. Use of dynamic means “I don’t know what type this is going to be, so I don’t know what methods or properties there are right now. Compiler, please let them all through and then figure it out when you really have an object at run time.” So the call to Bar compiles even though the compiler doesn’t know what it means. Then at run time, the object itself is asked what to do with this call to Bar. That’s what TryInvokeMember knows how to handle.&lt;br /&gt;
Now, suppose that instead of a MyDynamicObject, you used a Python object:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl12"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl12_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl12_code" space="preserve"&gt;dynamic d = GetPythonObject();
d.bar("Baz", 3, d);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;If the object is the file listed here, then the code also works, and the output is much the same:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl13"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl13_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl13_code" space="preserve"&gt;def bar(*args):
  print "Method:", bar.__name__
  for x in args:
    print "Argument:", x&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; Under the covers, for each use of a dynamic value, the compiler generates a bunch of code that initializes and uses a DLR CallSite. That CallSite contains all the information needed to bind at run time, including such things as the method name, extra data, such as whether the operation takes place in a checked context, and information about the arguments and their types.&lt;br /&gt;
This code, if you had to maintain it, would be every bit as ugly as the reflection code shown earlier or the ScriptObject code or strings that contain XML queries. That’s the point of the dynamic feature in C#—you don’t have to write code like that!&lt;br /&gt;
When using the dynamic keyword, your code can look pretty much the way you want: like a simple method invocation, a call to an indexer, an operator, such as +, a cast or even compounds, like += or ++. You can even use dynamic values in statements—for example, if(d) and foreach(var x in d). Short-circuiting is also supported, with code such as d &amp;amp;&amp;amp; ShortCircuited or d ?? ShortCircuited.&lt;br /&gt;
The value of having the DLR provide a common infrastructure for these sorts of operations is that you’re no longer having to deal&amp;nbsp; with a different API for each dynamic model you’d like to code against—there’s just a single API. And you don’t even have to use it. The C# compiler can use it for you, and that should give you more time to actually write the code you want—the less infrastructure code you have to maintain means more productivity for you.&lt;br /&gt;
The C# language provides no shortcuts for defining dynamic objects. Dynamic in C# is all about &lt;em&gt; consuming and using&lt;/em&gt; dynamic objects. Consider the following:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl14"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl14_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl14_code" space="preserve"&gt;dynamic list = GetDynamicList();
dynamic index1 = GetIndex1();
dynamic index2 = GetIndex2();
string s = list[++index1, index2 + 10].Foo();&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; This code compiles, and it contains a lot of dynamic operations. First, there’s the dynamic pre-increment on index1, then the dynamic add with index2. Then a dynamic indexer get is called on list. The product of those operations calls the member Foo. Finally, the total result of the expression is converted to a string and stored in s. That’s five dynamic operations in one line, each dispatched at run time.&lt;br /&gt;
The compile-time type of each dynamic operation is itself dynamic, and so the “dynamicness” kind of flows from computation to computation. Even if you hadn’t included dynamic expressions multiple times, there still would be a number of dynamic operations. There are still five in this one line:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl15"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl15_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl15_code" space="preserve"&gt;string s = nonDynamicList[++index1, index2 + 10].Foo();&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; Because the results of the two indexing expressions are dynamic, the index itself is as well. And because the result of the index is dynamic, so is the call to Foo. Then you’re confronted with converting a dynamic value to a string. That happens dynamically, of course, because the object could be a dynamic one that wants to perform some special computation in the face of a conversion request.&lt;br /&gt;
Notice in the previous examples that C# allows implicit conversions from any dynamic expression to any type. The conversion to string at the end is implicit and did not require an explicit cast operation. Similarly, any type can be converted to dynamic implicitly.&lt;br /&gt;
In this respect, dynamic is a lot like object, and the similarities don’t stop there. When the compiler emits your assembly and needs to emit a dynamic variable, it does so by using the type object and then marking it specially. In some sense, dynamic is kind of an alias for object, but it adds the extra behavior of dynamically resolving operations when you use it.&lt;br /&gt;
You can see this if you try to convert between generic types that differ only in dynamic and object; such conversions will always work, because at runtime, an instance of List&lt;dynamic&gt; actually is an instance of List&lt;object&gt;:&lt;/object&gt;&lt;/dynamic&gt;&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl16"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl16_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl16_code" space="preserve"&gt;List&lt;dynamic&gt; ld = new List&lt;object&gt;();&lt;/object&gt;&lt;/dynamic&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; You can also see the similarity between dynamic and object if you try to override a method that’s declared with an object parameter:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl17"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl17_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl17_code" space="preserve"&gt;class C {
  public override bool Equals(dynamic obj) { 
    /* ... */ 
  }
}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; Although it resolves to a decorated object in your assembly, I do like to think of dynamic as a real type, because it serves as a reminder that you can do most things with it that you can do with any other type. You can use it as a type argument or, say, as a return value. For instance, this function definition will let you use the result of the function call dynamically without having to put its return value in a dynamic variable:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl18"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl18_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl18_code" space="preserve"&gt;public dynamic GetDynamicThing() { 
  /* ... */ }&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; There are a lot more details about the way dynamic is treated and dispatched, but you don’t need to know them to use the feature. The essential idea is that you can write code that looks like C#, and if any part of the code you write is dynamic, the compiler will leave it alone until run time.&lt;br /&gt;
I want to cover one final topic concerning dynamic: failure. Because the compiler can’t check whether the dynamic thing you’re using really has the method called Foo, it can’t give you an error. Of course, that doesn’t mean that your call to Foo will work at run time. It may work, but there are a lot of objects that don’t have a method called Foo. When your expression fails to bind at run time, the binder makes its best attempt to give you an exception that’s more or less exactly what the compiler would’ve told you if you hadn’t used dynamic to begin with.&lt;br /&gt;
Consider the following code:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl19"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl19_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl19_code" space="preserve"&gt;try 
{
  dynamic d = "this is a string";
  d.Foo();
}
catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException e)
{
  Console.WriteLine(e.Message);
}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; Here I have a string, and strings clearly do not have a method called Foo. When the line that calls Foo executes, the binding will fail and you’ll get a RuntimeBinderException. This is what the previous program prints:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl20"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl20_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl20_code" space="preserve"&gt;'string' does not contain a definition for 'Foo'&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; Which is exactly the error message you, as a C# programmer, expect.&lt;br /&gt;
&lt;h2&gt;Named Arguments and Optional Parameters&lt;/h2&gt;In another addition to C#, methods now support optional parameters with default values so that when you call such a method you can omit those parameters. You can see this in action in this Car class:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl21"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl21_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl21_code" space="preserve"&gt;class Car {
  public void Accelerate(
    double speed, int? gear = null, 
    bool inReverse = false) { 

    /* ... */ 
  }
}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; You can call the method this way:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl22"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl22_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl22_code" space="preserve"&gt;Car myCar = new Car();
myCar.Accelerate(55);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; This has exactly the same effect as:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl23"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl23_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl23_code" space="preserve"&gt;myCar.Accelerate(55, null, false);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; It’s the same because the compiler will insert all the default values that you omit.&lt;br /&gt;
C# 4.0 will also let you call methods by specifying some arguments by name. In this way, you can pass an argument to an optional parameter without having to also pass arguments for all the parameters that come before it.&lt;br /&gt;
Say you want to call Accelerate to go in reverse, but you don’t want to specify the gear parameter. Well, you can do this:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl24"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl24_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl24_code" space="preserve"&gt;myCar.Accelerate(55, inReverse: true);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; This is a new C# 4.0 syntax, and it’s the same as if you had written:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl25"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl25_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl25_code" space="preserve"&gt;myCar.Accelerate(55, null, true);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; In fact, whether or not parameters in the method you’re calling are optional, you can use names when passing arguments. For instance, these two calls are permissible and identical to one another:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl26"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl26_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl26_code" space="preserve"&gt;Console.WriteLine(format: "{0:f}", arg0: 6.02214179e23);
Console.WriteLine(arg0: 6.02214179e23, format: "{0:f}");&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;If you’re calling a method that takes a long list of parameters, you can even use names as a sort of in-code documentation to help you remember which parameter is which. &lt;br /&gt;
On the surface, optional arguments and named parameters don’t look like interop features. You can use them without ever even thinking about interop. However, the motivation for these features comes from the Office APIs. Consider, for example, Word programming and something as simple as the SaveAs method on the Document interface. This method has 16 parameters, all of which are optional. With previous versions of C#, if you want to call this method you have to write code that looks like this:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl27"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl27_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl27_code" space="preserve"&gt;Document d = new Document();
object filename = "Foo.docx";
object missing = Type.Missing;
d.SaveAs(ref filename, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; Now, you can write this:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl28"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl28_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl28_code" space="preserve"&gt;Document d = new Document();
d.SaveAs(FileName: "Foo.docx");&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; I would say that’s an improvement for anyone who works with APIs like this. And improving the lives of programmers who need to write Office programs was definitely a motivating factor for adding named arguments and optional parameters to the language.&lt;br /&gt;
Now, when writing a .NET library and considering adding methods that have optional parameters, you’re faced with a choice. You can either add optional parameters or you can do what C# programmers have done for years: introduce overloads. In the Car.Accelerate example, the latter decision might lead you to produce a type that looks like this:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl29"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl29_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl29_code" space="preserve"&gt;class Car {
  public void Accelerate(uint speed) { 
    Accelerate(speed, null, false); 
  }
  public void Accelerate(uint speed, int? gear) { 
    Accelerate(speed, gear, false); 
  }
  public void Accelerate(uint speed, int? gear, 
    bool inReverse) { 
    /* ... */ 
  }
}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; Selecting the model that suits the library you’re writing is up to you. Because C# hasn’t had optional parameters until now, the .NET Framework (including the .NET Framework 4) tends to use overloads. If you decide to mix and match overloads with optional parameters, the C# overload resolution has clear tie-breaking rules to determine which overload to call under any given circumstances.&lt;br /&gt;
&lt;h2&gt;Indexed Properties&lt;/h2&gt;Some smaller language features in C# 4.0 are supported only when writing code against a COM interop API. The Word interop in the previous illustration is one example.&lt;br /&gt;
C# code has always had the notion of an indexer that you can add to a class to effectively overload the [] operator on instances of that class. This sense of indexer is also called a default indexer, since it isn’t given a name and calling it requires no name. Some COM APIs also have indexers that aren’t default, which is to say that you can’t effectively call them simply by using []—you must specify a name. You can, alternatively, think of an indexed property as a property that takes some extra arguments.&lt;br /&gt;
C# 4.0 supports indexed properties on COM interop types. You can’t define types in C# that have indexed properties, but you can use them provided you’re doing so on a COM type. For an example of what C# code that does this looks like, consider the Range property on an Excel worksheet:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl30"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl30_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl30_code" space="preserve"&gt;using Microsoft.Office.Interop.Excel;

class Program {
  static void Main(string[] args) {
    Application excel = new Application();
    excel.Visible = true;

    Worksheet ws = 
      excel.Workbooks.Add().Worksheets["Sheet1"];
    // Range is an indexed property
    ws.Range["A1", "C3"].Value = 123; 
    System.Console.ReadLine();
    excel.Quit();
  }
}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; In this example, Range[“A1”, “C3”] isn’t a property called Range that returns a thing that can be indexed. It’s one call to a Range accessor that passes A1 and C3 with it. And although Value might not look like an indexed property, it, too, is one! All of its arguments are optional, and because it’s an indexed property, you omit them by not specifying them at all. Before the language supported indexed properties, you would have written the call like this:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl31"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl31_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl31_code" space="preserve"&gt;ws.get_Range("A1", "C3").Value2 = 123;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; Here, Value2 is a property that was added simply because the indexed property Value wouldn’t work prior to C# 4.0.&lt;br /&gt;
&lt;h2&gt;Omitting the Ref Keyword at COM Call Sites&lt;/h2&gt;Some COM APIs were written with many parameters passed by reference, even when the implementation doesn’t write back to them. In the Office suite, Word stands out as an example—its COM APIs all do this.&lt;br /&gt;
When you’re confronted with such a library and you need to pass arguments by reference, you can no longer pass any expression that’s not a local variable or field, and that’s a big headache. In the Word SaveAs example, you can see this in action—you had to declare a local called filename and a local called missing just to call the SaveAs method, since those parameters needed to be passed by reference.&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl32"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl32_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl32_code" space="preserve"&gt;Document d = new Document();
object filename = "Foo.docx";
object missing = Type.Missing;
d.SaveAs(ref filename, ref missing, // ...&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; You may have noticed in the new C# code that followed, I no longer declared a local for filename:&lt;br /&gt;
&lt;span id="ctl00_MTContentSelector1_mainContentContainer_ctl33"&gt; &lt;div class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl33_"&gt;          &lt;div class="CodeSnippetTitleBar"&gt;         &lt;div class="CodeDisplayLanguage"&gt;                      &lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="background-color: #dddddd;"&gt;     &lt;pre class="libCScode" id="ctl00_MTContentSelector1_mainContentContainer_ctl33_code" space="preserve"&gt;d.SaveAs(FileName: "Foo.docx");&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; This is possible because of the new omit ref feature for COM interop. Now, when calling a COM interop method, you can pass any argument by value instead of by reference. If you do, the compiler will create a temporary local on your behalf and pass that local by reference for you if required. Of course, you won’t be able to see the effect of the method call if the method mutates the argument—if you want that, pass the argument by ref.&lt;br /&gt;
This should make code that uses APIs like this much cleaner.&lt;br /&gt;
&lt;h2&gt;Embedding COM Interop Types&lt;/h2&gt;This is more of a C# compiler feature than a C# language feature, but now you can use a COM interop assembly without that assembly having to be present at run time. The goal is to reduce the burden of deploying COM interop assemblies with your application.&lt;br /&gt;
When COM interop was introduced in the original version of the .NET Framework, the notion of a Primary Interop Assembly (PIA) was created. This was an attempt to solve the problem of sharing COM objects among components. If you had different interop assemblies that defined an Excel Worksheet, we wouldn’t be able to share these Worksheets between components, because they would be different .NET types. The PIA fixed this by existing only once—all clients used it, and the .NET types always matched.&lt;br /&gt;
Though a fine idea on paper, in practice deploying a PIA turns out to be a headache, because there’s only one, and multiple applications could try to install or uninstall it. Matters are complicated because PIAs are often large, Office doesn’t deploy them with default Office installations, and users can circumvent this single assembly system easily just by using TLBIMP to create their own interop assembly.&lt;br /&gt;
So now, in an effort to fix this situation, two things have happened:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;The runtime has been given the smarts to treat two structurally identical COM interop types that share the same identifying characteristics (name, GUID and so on) as though they were actually the same .NET type.&lt;/li&gt;
&lt;li&gt;The C# compiler takes advantage of this by simply reproducing the interop types in your own assembly when you compile, removing the need for the interop assembly to exist at run time.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
Reference link : http://msdn.microsoft.com/en-us/magazine/ff796223.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-3191548358468138402?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2010/07/new-c-features-in-net-framework-4.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-7878414829398084253</guid><pubDate>Fri, 30 Oct 2009 17:23:00 +0000</pubDate><atom:updated>2009-10-30T13:23:48.165-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>.NET Framework</category><title>Object Relational Modeling Tool Comparison Dot Net</title><description>&amp;nbsp;Object Relational Modeling Tool(ORM) Comparison Dot Net&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.blogger.com/post-create.g?blogID=1264876288197353948"&gt;http://www.blogger.com/post-create.g?blogID=1264876288197353948&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-7878414829398084253?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/object-relational-modeling-tool.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-8620613331597552460</guid><pubDate>Thu, 22 Oct 2009 17:57:00 +0000</pubDate><atom:updated>2009-10-22T13:57:28.633-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>ADO.NET</category><title>An ADO.NET Data Services Tutorial</title><description>&lt;span class="bodycopy"&gt;&lt;span&gt;An ADO.NET Data Services Tutorial&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="bodycopy"&gt;&lt;span&gt;&lt;a href="http://www.codeguru.com/csharp/.net/net_wcf/article.php/c16231__1/"&gt;http://www.codeguru.com/csharp/.net/net_wcf/article.php/c16231__1/&lt;/a&gt; &lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-8620613331597552460?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/adonet-data-services-tutorial.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-1351677763736007549</guid><pubDate>Thu, 22 Oct 2009 17:55:00 +0000</pubDate><atom:updated>2009-10-22T13:55:59.468-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>.NET Framework</category><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>New Features in Visual Studio 2010 and the .NET Framework 4.0</title><description>New Features in Visual Studio 2010 and the .NET Framework 4.0&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.codeguru.com/vb/vbnet30/article.php/c15645/"&gt;http://www.codeguru.com/vb/vbnet30/article.php/c15645/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-1351677763736007549?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/new-features-in-visual-studio-2010-and.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-5650115849977990163</guid><pubDate>Wed, 14 Oct 2009 16:21:00 +0000</pubDate><atom:updated>2009-10-14T12:21:35.100-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>WCF</category><title>WCF versioning</title><description>MSDN has a set of articles regarding WCF versioning that are good to cast your eyes over.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/library/ms731060.aspx" target="_blank"&gt;Service Versioning&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/library/ms731138.aspx" target="_blank"&gt;Data Contract Versioning&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/library/ms733832.aspx" target="_blank"&gt;Best Practices: Data Contract Versioning&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/library/aa347850.aspx" target="_blank"&gt;Collection Types in Data Contracts&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-5650115849977990163?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/wcf-versioning.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-4034468031971473996</guid><pubDate>Mon, 12 Oct 2009 19:22:00 +0000</pubDate><atom:updated>2009-10-12T15:22:07.524-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>WCF</category><title>WCF Interview Questions and Answers</title><description>&lt;b&gt;Ques 1: What are end points, contract, address and bindings?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans:&lt;/b&gt; All communication with a Windows Communication Foundation (WCF) service occurs through the endpoints of the service. Endpoints provide clients access to the functionality offered by a WCF service. &lt;br /&gt;
Each endpoint consists of four properties:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt; An address that indicates where the endpoint can be found. &lt;/li&gt;
&lt;li&gt; A binding that specifies how a client can communicate with the endpoint. &lt;/li&gt;
&lt;li&gt; A contract that identifies the operations available. &lt;/li&gt;
&lt;li&gt; A set of behaviors that specify local implementation details of the endpoint. &lt;/li&gt;
&lt;/ul&gt;The foundation of WCF is ABC (address binding contract).The Address relates to the logical address to which your service is exposed, that is the HTTP URL for a web service&lt;br /&gt;
The Binding is the Microsoft Channel stack that shields the complexities of setting up the communication channel etc&lt;br /&gt;
The Contract is what the service conforms to so that the consumer knows how to interact with the service; this is done via an Interface&lt;br /&gt;
&lt;b&gt;Ques 2:   What are bindings?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;The binding specifies how to communicate with the endpoint. This includes:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt; The transport protocol to use (for example, TCP or HTTP). &lt;/li&gt;
&lt;li&gt; The encoding to use for the messages (for example, text or binary). &lt;/li&gt;
&lt;li&gt;&amp;nbsp;The necessary security requirements (for example, SSL or SOAP message security). &lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Ques 3:   What are different bindings are supported in WCF?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt; Predefined binding in WCF&lt;br /&gt;
&lt;br /&gt;
&lt;table&gt;&lt;thead&gt;
&lt;tr&gt;&lt;td&gt;&lt;b&gt;Binding&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;&lt;b&gt;Interoperability&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;&lt;b&gt;Security&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;&lt;b&gt;Sessions&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;&lt;b&gt;Transactions&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt;BasicHttpBinding&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Basic Profile 1.1&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;None&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;No&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;No&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;wsHttpBinding&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;WS&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;Message&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Optional&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;wsDualHttpBinding&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;WS&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;Message&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;wsFederationHttpBinding&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Federation&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;Message&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;netTcpBinding&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;.NET&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;Transport&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Optional&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;netNamedPipeBinding&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;.NET&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;Transport&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;netMsmqBinding&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;.NET&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;Transport&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;netPeerTcpBinding&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Peer&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;Transport&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;&lt;/td&gt; &lt;td&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;msmqIntegrationBinding&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;MSMQ&lt;br /&gt;
&lt;/td&gt;&lt;td&gt;Transport&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;Yes&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;b&gt;Ques 4:   What is one way operation?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;The default behavior of a service operation is the request-reply pattern. In a request-reply pattern, the client waits for the reply message, even if the service operation is represented in code as a void method. With a one-way operation, only one message is transmitted. The receiver does not send a reply message, nor does the sender expect one.&lt;br /&gt;
WCF has a simple and easy way to define operations that should be made as OneWay.&lt;br /&gt;
You do it by setting&lt;b&gt; IsOneWay = true&lt;/b&gt; in the OperationContract attribute.&lt;br /&gt;
&lt;b&gt;E.g.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;[ServiceContract]&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public interface IMyServiceOneWay&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;[OperationContract(IsOneWay = true)]&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;void DoOneWay(bool throwException);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
The contract contains one operation – DoOneWay which will be invoked in a “OneWay” pattern&lt;br /&gt;
General things you should keep in mind about OneWay operations -&lt;br /&gt;
1. O/W operations must return void.&lt;br /&gt;
2. O/W operations can still yield exceptions. Invoking an operation on the client channel might still throw an exception if it couldn’t transmit the call over to the service.&lt;br /&gt;
3. O/W operations can still block. If the service is pumped with messages and a queue had started.&lt;br /&gt;
&lt;b&gt;Ques 5:   Can you explain duplex contracts in WCF?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans :&lt;/b&gt; A duplex service contract is a message exchange pattern in which both endpoints can send messages to the other independently. A duplex service, therefore, can send messages back to the client endpoint, providing event-like behavior. Duplex communication occurs when a client connects to a service and provides the service with a channel on which the service can send messages back to the client. Note that the event-like behavior of duplex services only works within a session. &lt;br /&gt;
To create a duplex contract you create a pair of interfaces. The first is the service contract interface that describes the operations that a client can invoke. That service contract must specify a callback contract in the &lt;b&gt;System.ServiceModel.ServiceContractAttribute.CallbackContract &lt;/b&gt;property. The callback contract is the interface that defines the operations that the service can call on the client endpoint. A duplex contract does not require a session, although the system-provided duplex bindings make use of them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-4034468031971473996?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/wcf-interview-questions-and-answers.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-4935353903247374605</guid><pubDate>Fri, 09 Oct 2009 19:51:00 +0000</pubDate><atom:updated>2009-10-12T14:25:44.456-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>C# Interview Questions and Answers - Part 3</title><description>&lt;div style="text-align: center;"&gt;&lt;table height="46" style="width: 531px;"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/09/c-interview-questions-and-answers.html"&gt;Part 1 &lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/10/c-interview-questions-and-answers-part.html"&gt;Part 2 &lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/10/c-interview-questions-and-answers-part_09.html"&gt;Part 3 &lt;/a&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;b&gt;Ques 21: When should we use structure and when class? &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans:&lt;/b&gt; Structs are always lightweight objects. By that it means they are not created on the CLR heap. They are created on the stack. Its always easy performance wise to create struct variables and to destroy them.&lt;br /&gt;
Classes ar3 meant for heavy duty work. Objects in classes are always created on the CLR heap. This means extra overhead of creating the object and maintaining it. All objects are subject to garbage collection whereas struct objects are not.&lt;br /&gt;
Use a struct when you want something that behaves like a value type, such as an (i,r) complex number, an (x,y,z) coord or an (A,R,G,B) colour. Otherwise use a class.&lt;br /&gt;
&lt;b&gt;Ques 22: What is the difference between Finalize and Dispose (Garbage collection)?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;Class instances often encapsulate control over resources that are not managed by the runtime, such as window handles (HWND), database connections, and so on. Therefore, you should provide both an explicit and an implicit way to free those resources. Provide implicit control by implementing the protected Finalize Method on an object (destructor syntax in C# and the Managed Extensions for C++). The garbage collector calls this method at some point after there are no longer any valid references to the object.&lt;br /&gt;
In some cases, you might want to provide programmers using an object with the ability to explicitly release these external resources before the garbage collector frees the object. If an external resource is scarce or expensive, better performance can be achieved if the programmer explicitly releases resources when they are no longer being used. To provide explicit control, implement the Dispose method provided by the IDisposable Interface. The consumer of the object should call this method when it is done using the object. Dispose can be called even if other references to the object are alive.&lt;br /&gt;
Note that even when you provide explicit control by way of Dispose, you should provide implicit cleanup using the Finalize method. Finalize provides a backup to prevent resources from permanently leaking if the programmer fails to call Dispose.&lt;br /&gt;
&lt;b&gt;Ques 23:  How’s method overriding different from overloading? &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans:&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;br /&gt;
&lt;b&gt;Ques 24:  What does the keyword virtual mean in the method definition? &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;The method can be over-ridden. &lt;br /&gt;
&lt;b&gt;Ques 25:  Can you declare the override method static while the original method is non-static? &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans:&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;br /&gt;
&lt;b&gt;Ques 26:  Can you override private virtual methods? &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &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;br /&gt;
&lt;b&gt;Ques 27:  Can you allow class to be inherited, but prevent the method from being over-ridden? &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans:&lt;/b&gt; Yes, just leave the class public and make the method sealed.&lt;br /&gt;
&lt;b&gt;Ques 28:  Can we declare private methods inside an Interface? Why can’t you specify the accessibility modifier for methods inside the interface? &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;No, 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, its public by default.&lt;br /&gt;
&lt;b&gt;Ques 29:  How do you initiate a string without escaping each backslash? &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans:&lt;/b&gt; Put @ sign in front of the double-quoted string.&lt;br /&gt;
e.g. @“C:\Documents and Settings\Administrator\My Documents”; is equivalent to “C:\\Documents and Settings\\Administrator\\My Documents”.&lt;br /&gt;
&lt;b&gt;Ques 30: Describe the accessibility modifier protected internal. &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans:&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;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-4935353903247374605?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/c-interview-questions-and-answers-part_09.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-1329203567839105469</guid><pubDate>Fri, 09 Oct 2009 15:04:00 +0000</pubDate><atom:updated>2009-10-09T11:23:44.234-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>ASP.NET</category><title>ASP.NET Interview Questions and Answers - Part 3</title><description>&lt;div&gt;&lt;table height="46" style="width: 531px;"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/09/ques-how-viewstate-is-implemented-in.html"&gt;Part 1 &lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/10/aspnet-interview-questions-and-answers.html"&gt;Part 2 &lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/10/aspnet-interview-questions-and-answers_09.html"&gt;Part 3 &lt;/a&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;b&gt;Ques 21: Explain Cookies in .Net?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;Cookie are one of several ways to store data about web site visitors during the time when web server and browser are not connected. Common use of cookies is to remember users between visits. Practically, cookie is a small text file sent by web server and saved by web browser on client machine.&lt;br /&gt;
&lt;br /&gt;
C# Code&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;// Add this on the beginning of your .cs code file&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;using System;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;// Use this line when you want to save a cookie&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Response.Cookies["MyCookieName"].Value = "MyCookieValue";&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;// How long will cookie exist on client hard disk&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Response.Cookies["MyCookieName"].Expires = DateTime.Now.AddDays(1);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;// To add multiple key/value pairs in single cookie&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Response.Cookies["VisitorData"]["FirstName"] = "Richard";&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Response.Cookies["VisitorData"]["LastVisit"] = DateTime.Now.ToString();&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;HttpCookie Class&lt;/b&gt;: HttpCookie class is located in System.Web namespace. You can use HttpCookie class to create and manipulate cookies instead of using of Response and Request objects.&lt;br /&gt;
&lt;br /&gt;
HttpCookie class has these properties:&lt;br /&gt;
&amp;nbsp;&lt;b&gt;Domai&lt;/b&gt;n - Gets or sets domain associated with a cookie. It is often used to limit cookie use to web site sub domain.&lt;br /&gt;
&amp;nbsp;&lt;b&gt;Expires &lt;/b&gt;- Gets or sets time when cookie expires. After that time cookie is deleted by the browser. The maximum life time for cookie is 365 days. You can increase expiration time every time when visitor visits your web site, but if visitor don't comes for more than 365 days, the cookie will be deleted.&lt;br /&gt;
&lt;b&gt;HasKeys &lt;/b&gt;- Returns true if cookie has key pairs or false if not. Cookies are not   limited to only simple data as strings, but could stores key/values pairs as well.&lt;br /&gt;
&lt;b&gt;HttpOnly &lt;/b&gt;- Gets or sets a true/false value if cookie is accesible by client side javascript. If value is true, cookie will be accessible only by server side ASP.NET code.&lt;br /&gt;
&lt;b&gt;Item &lt;/b&gt;- Not necessary, it exists only because it is used in old classic ASP.&lt;br /&gt;
&lt;b&gt;Name &lt;/b&gt;- A name of a cookie.&lt;br /&gt;
&lt;b&gt;Path &lt;/b&gt;- Similar like Domain property, path is used to limit a cookie scope to  specific URL. For example, to limit using of a cookie to sub folder www.yourdomain.com/forum you need to set Path property to "/forum".&lt;br /&gt;
&lt;b&gt;Secure &lt;/b&gt;- Would cookies will transmit through HTTPS protocol by using SSL (secure socket layer) connection.&lt;br /&gt;
&lt;b&gt;Value &lt;/b&gt;- Gets or sets a cookie's value.&lt;br /&gt;
&lt;b&gt;Values &lt;/b&gt;- Used to get or set key/value pairs in individual cookie.&lt;br /&gt;
&lt;br /&gt;
You can use HttpCookie class to create a cookie or set cookie's properties, like in this example code:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;HttpCookie MyGreatCookie = new HttpCookie("MyCookieName");&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;MyGreatCookie.Value = "Some cookie value";&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;MyGreatCookie.Expires = DateTime.Now.AddDays(100);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Response.Cookies.Add(MyGreatCookie);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ques 22:&amp;nbsp; How to read a cookie in ASP.NET&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;To read a cookie value, use this:&lt;br /&gt;
C# Code&lt;br /&gt;
&lt;b&gt;string MyCookieValue;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;// We need to perform this check first, to avoid null exception&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;// if cookie not exists&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;if(Request.Cookies["MyCookieName"] != null)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;MyCookieValue = Request.Cookies["MyCookieName"].Value;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ques 23: How to delete cookie in ASP.NET&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;To delete existing cookie we actually just set its expiration time to some time in the past. You can do it with code like this:&lt;br /&gt;
C# Code&lt;br /&gt;
&lt;b&gt;// First check if cookie exists&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;if (Request.Cookies["MyCookieName"] != null)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;// Set its expiration time somewhere in the past&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Response.Cookies["MyCookieName"].Expires = DateTime.Now.AddDays(-1);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
HttpCookie class is located in System.Web namespace. You can use HttpCookie class to create and manipulate cookies instead of using of Response and Request objects.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ques 24: Web browser limits for cookies?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans:&lt;/b&gt; Cookie size is limited to 4096 bytes. It is not much, so cookies are used to store small amounts of data, often just user id.&lt;br /&gt;
- Also, number of cookies is limited to 20 per website. If you make new cookie when you already have 20 cookies, browser will delete oldest one.&lt;br /&gt;
- Your web site visitor can change browser settings to not accept cookies. In that case you are not able to save and retrieve data on this way! Because of this, it is good to check browser settings before saving a cookie.&lt;br /&gt;
- If your visitor blocked cookies in web browser privacy settings, you need to decide do you still want to save that data on some other way (maybe with sessions) or to not save it at all. Anyway, your application must continue to work normally with any browser privacy settings. It is better to not store any sensitive or critical data to cookies. If using of cookies is necessary, you should inform your users with some message like: "Cookies must be enabled to use this application".&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ques 25: How to find does web browser accepts cookies?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;There are two possible cases when your client will not accept cookies:&lt;br /&gt;
- Web browser does not support cookies&lt;br /&gt;
- Web browser supports cookies, but user disabled that option through a browser's privacy settings.&lt;br /&gt;
C# Code&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;if (Request.Browser.Cookies)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;// Cookies supported&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;else&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;// Web browser not supports cookies&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ques 26:&amp;nbsp; How to check if client web browser not saved a cookie because of its privacy settings&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans:&lt;/b&gt;Code above will tell you does web browser supports cookie technology, but your visitor could disable cookies in web browser's privacy settings. In that case, Request.Browser.Cookies will still return true but your cookies will not be saved. Only way to check client's privacy settings is to try to save a cookie on the first page, and then redirect to second page that will try to read that cookie. You can eventually use the same page to save and read a cookie when perform a testing, but you must use Response.Redirect method after saving and before reading cookies.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ques 27:  Best practices with cookies in ASP.NET&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;Cookies are just plain text, so usually are not used to store sensitive informations like passwords without prior encryption. If you want to enable "Remember me" option on web site it is recommended to encrypt a password before it is stored in a cookie. Cookies are often used for data like: when visitor last time loged in, what site color she likes, to keep referer id if we offer affiliate program etc.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ques 28: &lt;/b&gt; Security issues about cookies in ASP.NET&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;Because of security reasons, your web application can read only cookies related to your web domain. You can't read cookies related to other web sites. Web browser stores cookies from different sites separately.Cookie is just a plain text file on client's hard disk so it could be changed on different ways outside of your application. Because of that, you need to treat cookie value as potentially dangerous input like any other input from the visitor, including prevention of cross site scripting attacks.&lt;br /&gt;
&lt;b&gt;Ques 29:. What is cookie less session? How it works?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;By default, ASP.NET will store the session state in the same process that processes the request, just as ASP does. If cookies are not available, a session can be tracked by adding a session identifier to the URL. This can be enabled by setting the following: &lt;br /&gt;
&lt;b&gt;Ques 30:&lt;/b&gt;&lt;sessionstate cookieless="true"&gt;&lt;b&gt; What is the difference between Web User Control and Web Custom  Control?&lt;/b&gt;&lt;br /&gt;
&lt;/sessionstate&gt;&lt;b&gt;Ans: &lt;/b&gt;&lt;sessionstate cookieless="true"&gt;Web custom controls are compiled components that run on the server and that encapsulate user-interface and other related functionality into reusable packages. They can include all the design-time features of standard ASP.NET server controls, including full support for Visual Studio design features such as the Properties window, the visual designer, and the Toolbox. &lt;br /&gt;
&lt;b&gt;There are several ways that you can create Web custom controls:&lt;/b&gt;&lt;br /&gt;
- You can compile a control that combines the functionality of two or more    existing controls. For example, if you need a control that encapsulates a button and a text box, you can create it by compiling the existing controls together.&lt;br /&gt;
- If an existing server control almost meets your requirements but lacks some   required features, you can customize the control by deriving from it and overriding its properties, methods, and events.&lt;br /&gt;
- If none of the existing Web server controls (or their combinations) meet your requirements, you can create a custom control by deriving from one of the base control classes. These classes provide all the basic functionality of Web server controls, so you can focus on programming the features you need.&lt;br /&gt;
- If none of the existing ASP.NET server controls meet the specific requirements of your applications, you can create either a Web user control or a Web custom control that encapsulates the functionality you need. &lt;br /&gt;
&lt;b&gt;The main difference between the two controls lies in ease of creation vs. ease of use at design time.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Web user controls&lt;/b&gt; are easy to make, but they can be less convenient to use in advanced scenarios. You develop Web user controls almost exactly the same way that you develop Web Forms pages. Like Web Forms, user controls can be created in the visual designer, they can be written with code separated from the HTML, and they can handle execution events. However, because Web user controls are compiled dynamically at run time they cannot be added to the Toolbox, and they are represented by a simple placeholder glyph when added to a page. This makes Web user controls harder to use if you are accustomed to full Visual Studio .NET design-time support, including the Properties window and Design view previews. Also, the only way to share the user control between applications is to put a separate copy in each application, which takes more maintenance if you make changes to the control.&lt;br /&gt;
&lt;b&gt;Web custom controls&lt;/b&gt; are compiled code, which makes them easier to use but more difficult to create; Web custom controls must be authored in code. Once you have created the control, however, you can add it to the Toolbox and display it in a visual designer with full Properties window support and all the other design-time features of ASP.NET server controls. In addition, you can install a single copy of the Web custom control in the global assembly cache and share it between applications, which makes maintenance easier.&lt;br /&gt;
&lt;br /&gt;
&lt;/sessionstate&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-1329203567839105469?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/aspnet-interview-questions-and-answers_09.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-276925090382064726</guid><pubDate>Thu, 08 Oct 2009 18:06:00 +0000</pubDate><atom:updated>2009-10-08T14:06:25.986-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>WCF</category><title>WCF Bindings In Depth</title><description>An excellent article on WCF Bindings &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/magazine/cc163394.aspx"&gt;WCF Bindings In Depth&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-276925090382064726?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/wcf-bindings-in-depth.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-7708630599222891331</guid><pubDate>Thu, 08 Oct 2009 18:03:00 +0000</pubDate><atom:updated>2009-10-08T14:03:25.303-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>WCF</category><title>WCF Addressing In Depth</title><description>Good article explains WCF Addressing In Depth&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/magazine/cc163412.aspx"&gt;&lt;br /&gt;
WCF Addressing In Depth&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-7708630599222891331?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/wcf-addressing-in-depth.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-5396053292069913682</guid><pubDate>Thu, 08 Oct 2009 16:05:00 +0000</pubDate><atom:updated>2009-10-09T15:52:21.023-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>C#</category><title>C# Interview Questions and Answers - Part 2</title><description>&lt;div style="text-align: center;"&gt;&lt;table height="46" style="width: 531px;"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/09/c-interview-questions-and-answers.html"&gt;Part 1 &lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/10/c-interview-questions-and-answers-part.html"&gt;Part 2 &lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/10/c-interview-questions-and-answers-part_09.html"&gt;Part 3 &lt;/a&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
Ques 11: Why do we need to call CG.SupressFinalize?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;Requests that the system not call the finalizer method for the specified object.&lt;br /&gt;
&lt;br /&gt;
[C#]&lt;br /&gt;
&lt;b&gt;public static void SuppressFinalize(object obj);&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
The method removes obj from the set of objects that require finalization. The obj parameter is required to be the caller of this method. Objects that implement the IDisposable interface can call this method from the IDisposable.Dispose method to prevent the garbage collector from calling Object.Finalize on an object that does not require it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ques 12: What is the difference between CONST and READONLY?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans:&amp;nbsp; &lt;/b&gt;Both are meant for constant values. A const field can only be initialized at the declaration of the field. A readonly field can be initialized either at the declaration or in a constructor. Therefore, readonly fields can have different values depending on the constructor used. &lt;br /&gt;
&lt;b&gt;readonly int b;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public X()&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;b=1;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public X(string s)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;b=5;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public X(string s, int i)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;b=i;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
Also, while a const field is a compile-time constant, the readonly field can be used for runtime constants, as in the following example:&lt;br /&gt;
&lt;b&gt;public static readonly uint l1 = (uint) DateTime.Now.Ticks;&lt;/b&gt;&lt;br /&gt;
(this can't be possible with const)&lt;br /&gt;
&lt;b&gt;Ques 13: What is the difference between ref &amp;amp; out parameters?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;An argument passed to a ref parameter must first be initialized. Compare this to an out parameter, whose argument does not have to be explicitly initialized before being passed to an out parameter.&lt;br /&gt;
&lt;b&gt;Ques 14: What is Asynchronous call and how it can be implemented using delegates?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;A synchronous call will wait for a method to complete before program flow is resumed. With an asynchronous call the program flow continues whilst the method executes.&lt;br /&gt;
&lt;b&gt;//create object&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;SomeFunction objFunc = new SomeFunction();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;//create delegate&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;SomeDelegate objDel = new SomeDelegate(objFunc.FunctionA);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;//invoke the method asynchronously (use interface IAsyncResult)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;IAsyncResult asynchCall = SomeDelegate.Invoke();&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ques 15: &lt;/b&gt;What is Jagged Arrays?&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;A jagged array is an array whose elements are arrays. The elements of a jagged array can be of different dimensions and sizes. A jagged array is sometimes called an "array-of-arrays."&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ques 16: &lt;/b&gt;What are indexers?&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;Indexers are similar to properties, except that the get and set accessors of indexers take parameters, while property accessors do not.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ques 17: &lt;/b&gt;What are Sealed Classes in C#?&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;The sealed modifier is used to prevent derivation from a class. A compile-time error occurs if a sealed class is specified as the base class of another class. (A sealed class cannot also be an abstract class)&lt;br /&gt;
&lt;b&gt;Ques 18: &lt;/b&gt;What is Polymorphism? How does C# achieve polymorphism?&lt;br /&gt;
&lt;b&gt;Ans: &lt;/b&gt;Polymorphism means same operation may behave differently on different classes.&lt;br /&gt;
&lt;b&gt;Example of Compile Time Polymorphism: Method Overloading&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Example of Run Time Polymorphism: Method Overriding&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Example of Compile Time Polymorphism&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Method Overloading&lt;/b&gt;&lt;br /&gt;
- Method with same name but with different arguments is called method overloading.&lt;br /&gt;
- Method Overloading forms compile-time polymorphism.&lt;br /&gt;
- Example of Method Overloading:&lt;br /&gt;
&lt;b&gt;class A1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;void hello()&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{ &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Console.WriteLine(“Hello”); &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;void hello(string s)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{ &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Console.WriteLine(“Hello {0}”,s); &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Example of Run Time Polymorphism&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Method Overriding&lt;/b&gt;&lt;br /&gt;
- Method overriding occurs when child class declares a method that has the same type arguments as a method declared by one of its superclass.&lt;br /&gt;
- Method overriding forms Run-time polymorphism.&lt;br /&gt;
- Note: By default functions are not virtual in C# and so you need to write “virtual” explicitly. While by default in Java each function are virtual.&lt;br /&gt;
-	Example of Method Overriding:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;public class parent&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public virtual void hello()&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{ &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Console.WriteLine(“Hello from Parent”); &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;public class child : parent&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public override void hello()&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{ &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Console.WriteLine(“Hello from Child”); &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;static void main()&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;parent objParent = new child();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;objParent.hello();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;//Output&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;nbsp; &lt;/b&gt;&lt;b&gt;Hello from Child&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;public &lt;/b&gt;&lt;b&gt;class Token&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public string Display()&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;//Implementation goes here&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;return "base";&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;class IdentifierToken:Token&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public new string Display() //What is the use of new keyword&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;//Implementation goes here&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;return "derive";&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;static void Method(Token t)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Console.Write(t.Display());&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public static void Main()&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;IdentifierToken Variable=new IdentifierToken();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Method (Variable);&amp;nbsp; //Which Class Method is called here&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Console.ReadLine();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
For the above code What is the "new" keyword and Which Class Method is called here&lt;br /&gt;
It will call base class Display method&lt;br /&gt;
&lt;b&gt;Output : Base&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;class Token&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public virtual string Display()&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;//Implementation goes here&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;return "base";&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;class IdentifierToken:Token&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public override string Display() &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;//Implementation goes here&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;return "derive";&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;static void Method(Token t)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Console.Write(t.Display());&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;public static void Main()&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;{&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;IdentifierToken Variable=new IdentifierToken();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Method(Variable); //Which Class Method is called here&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Console.ReadLine();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Output : Derive&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ques 19: In which Scenario you will go for Interface or Abstract Class?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans :&lt;/b&gt; &lt;b&gt;Interfaces,&lt;/b&gt; like classes, define a set of properties, methods, and events. But unlike classes, interfaces do not provide implementation. They are implemented by classes, and defined as separate entities from classes. Even though class inheritance allows your classes to inherit implementation from a base class, it also forces you to make most of your design decisions when the class is first published.&lt;br /&gt;
&lt;b&gt;Abstract classes &lt;/b&gt;are useful when creating components because they allow you specify an invariant level of functionality in some methods, but leave the implementation of other methods until a specific implementation of that class is needed. They also version well, because if additional functionality is needed in derived classes, it can be added to the base class without breaking code.&lt;br /&gt;
&lt;br /&gt;
&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;    &lt;m:smallfrac m:val="off"&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val="0"&gt;    &lt;m:rmargin m:val="0"&gt;    &lt;m:defjc m:val="centerGroup"&gt;    &lt;m:wrapindent m:val="1440"&gt;    &lt;m:intlim m:val="subSup"&gt;    &lt;m:narylim m:val="undOvr"&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:1;
	mso-generic-font-family:roman;
	mso-font-format:other;
	mso-font-pitch:variable;
	mso-font-signature:0 0 0 0 0 0;}
@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-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	mso-fareast-font-family:"Times New Roman";}
p.Answer, li.Answer, div.Answer
	{mso-style-name:Answer;
	mso-style-unhide:no;
	mso-style-link:"Answer Char";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Verdana","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
span.AnswerChar
	{mso-style-name:"Answer Char";
	mso-style-unhide:no;
	mso-style-locked:yes;
	mso-style-link:Answer;
	mso-ansi-font-size:11.0pt;
	mso-bidi-font-size:11.0pt;
	font-family:"Verdana","sans-serif";
	mso-ascii-font-family:Verdana;
	mso-hansi-font-family:Verdana;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	font-size:10.0pt;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&gt;
&lt;/style&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; margin-left: 0.5in; width: 80%;"&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td colspan="3" style="padding: 0in;"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interfaces vs.   Abstract Classes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border: 1pt inset gray; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Feature&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: gray gray gray -moz-use-text-color; border-style: inset inset inset none; border-width: 1pt 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Interface&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: gray gray gray -moz-use-text-color; border-style: inset inset inset none; border-width: 1pt 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Abstract   class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color gray gray; border-style: none inset inset; border-width: medium 1pt 1pt; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Multiple   inheritance&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;A   class may implement several interfaces.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;A   class may extend only one abstract class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color gray gray; border-style: none inset inset; border-width: medium 1pt 1pt; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Default   implementation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;An   interface cannot provide any code at all, much less default code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;An   abstract class can provide complete code, default code, and/or just stubs   that have to be overridden.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color gray gray; border-style: none inset inset; border-width: medium 1pt 1pt; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Constants&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Static   final constants only, can use them without qualification in classes that   implement the interface. On the other paw, these unqualified names pollute   the namespace. You can use them and it is not obvious where they are coming   from since the qualification is optional.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Both   instance and static constants are possible. Both static and instance   intialiser code are also possible to compute the constants.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color gray gray; border-style: none inset inset; border-width: medium 1pt 1pt; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Third   party convenience&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;An   interface implementation may be added to any existing third party class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;A   third party class must be rewritten to extend only from the abstract class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color gray gray; border-style: none inset inset; border-width: medium 1pt 1pt; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;is-a   vs -able or can-do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Interfaces   are often used to describe the peripheral abilities of a class, not its   central identity, e.g. an Automobile class might implement the Recyclable   interface, which could apply to many otherwise totally unrelated objects.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;An   abstract class defines the core identity of its descendants. If you defined a   Dog abstract class then Damamation descendants are Dogs, they are not merely   dogable. Implemented interfaces enumerate the general things a class can do,   not the things a class is.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color gray gray; border-style: none inset inset; border-width: medium 1pt 1pt; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Plug-in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;You   can write a new replacement module for an interface that contains not one   stick of code in common with the existing implementations. When you implement   the interface, you start from scratch without any default implementation. You   have to obtain your tools from other classes; nothing comes with the   interface other than a few constants. This gives you freedom to implement a   radically different internal design.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;You   must use the abstract class as-is for the code base, with all its attendant   baggage, good or bad. The abstract class author has imposed structure on you.   Depending on the cleverness of the author of the abstract class, this may be   good or bad. Another issue that's important is what I call   "heterogeneous vs. homogeneous." If implementors/subclasses are   homogeneous, tend towards an abstract base class. If they are heterogeneous,   use an interface. (Now all I have to do is come up with a good definition of   hetero/homogeneous in this context.) If the various objects are all   of-a-kind, and share a common state and behavior, then tend towards a common   base class. If all they share is a set of method signatures, then tend   towards an interface.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color gray gray; border-style: none inset inset; border-width: medium 1pt 1pt; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Homogeneity&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;If   all the various implementations share is the method signatures, then an   interface works best.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;If   the various implementations are all of a kind and share a common status and   behavior, usually an abstract class works best.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color gray gray; border-style: none inset inset; border-width: medium 1pt 1pt; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Maintenance&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;If   your client code talks only in terms of an interface, you can easily change   the concrete implementation behind it, using a factory method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Just   like an interface, if your client code talks only in terms of an abstract   class, you can easily change the concrete implementation behind it, using a   factory method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color gray gray; border-style: none inset inset; border-width: medium 1pt 1pt; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Speed&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Slow,   requires extra indirection to find the corresponding method in the actual   class. Modern JVMs are discovering ways to reduce this speed penalty.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Fast&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color gray gray; border-style: none inset inset; border-width: medium 1pt 1pt; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Terseness&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;The   constant declarations in an interface are all presumed public static final,   so you may leave that part out. You can't call any methods to compute the   initial values of your constants. You need not declare individual methods of   an interface abstract. They are all presumed so.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;You   can put shared code into an abstract class, where you cannot into an   interface. If interfaces want to share code, you will have to write other   bubblegum to arrange that. You may use methods to compute the initial values   of your constants and variables, both instance and static. You must declare   all the individual methods of an abstract class abstract.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color gray gray; border-style: none inset inset; border-width: medium 1pt 1pt; padding: 0in; width: 106pt;" width="141"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Adding   functionality&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 307pt;" width="409"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;If   you add a new method to an interface, you must track down all implementations   of that interface in the universe and provide them with a concrete   implementation of that method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color gray gray -moz-use-text-color; border-style: none inset inset none; border-width: medium 1pt 1pt medium; padding: 0in; width: 322pt;" width="429"&gt;&lt;div class="Answer" style="text-align: justify;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;If   you add a new method to an abstract class, you have the option of providing a   default implementation of it. Then all existing code will continue to work   without change.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;    &lt;m:smallfrac m:val="off"&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val="0"&gt;    &lt;m:rmargin m:val="0"&gt;    &lt;m:defjc m:val="centerGroup"&gt;    &lt;m:wrapindent m:val="1440"&gt;    &lt;m:intlim m:val="subSup"&gt;    &lt;m:narylim m:val="undOvr"&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:1;
	mso-generic-font-family:roman;
	mso-font-format:other;
	mso-font-pitch:variable;
	mso-font-signature:0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	mso-fareast-font-family:"Times New Roman";}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	font-size:10.0pt;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&gt;
&lt;/style&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div class="MsoNormal" style="margin-left: 0.25in; text-align: justify; text-indent: -0.25in;"&gt;&lt;b&gt;Ques 20:&lt;/b&gt;&lt;b&gt; How can you write a class to restrict that only one object of this &amp;nbsp;class can be created (Singleton class)?&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;b&gt;Ans : &lt;/b&gt;Use the singleton design pattern.&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;public sealed class Singleton&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static readonly Singleton Instance=new Singleton();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static Singleton()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Singleton()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static Singleton Instance&lt;br /&gt;
&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-size: 10pt;"&gt;&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; get&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;&amp;nbsp;&amp;nbsp; return Instance;&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; }&lt;br /&gt;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-5396053292069913682?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/c-interview-questions-and-answers-part.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-3657724685594486327</guid><pubDate>Wed, 07 Oct 2009 18:33:00 +0000</pubDate><atom:updated>2009-10-09T11:21:20.737-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>ASP.NET</category><title>ASP.NET Interview Questions and Answers - Part 2</title><description>&lt;div style="text-align: center;"&gt;&lt;table height="46" style="width: 531px;"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/09/ques-how-viewstate-is-implemented-in.html"&gt;Part 1 &lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/10/aspnet-interview-questions-and-answers.html"&gt;Part 2 &lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://dotnet2008interviewquestions.blogspot.com/2009/10/aspnet-interview-questions-and-answers_09.html"&gt;Part 3 &lt;/a&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;table&gt;&lt;b&gt;Ques 11: Can we have multiple number of Master pages in an ASP.NET 2.0 web application?&lt;/b&gt; &lt;b&gt;Ans:&lt;/b&gt; Yes. &lt;b&gt;Ques 12: Can we have multiple SiteMapPath controls in an ASP.NET 2.0 web application?&lt;/b&gt; &lt;b&gt;Ans:&lt;/b&gt; Yes. &lt;b&gt;Ques 13: Describe the Hotspot class?&lt;/b&gt; &lt;b&gt;Ans" &lt;/b&gt;It implements the basic functionality common to all hot spot shapes. Its Namespace: &lt;b&gt;System.Web.UI.WebControls&lt;/b&gt; You cannot directly create instances of the abstract HotSpot class. Instead, this class is inherited by the CircleHotSpot, RectangleHotSpot, and PolygonHotSpot classes to provide the common basic functionality for a hot spot. You must derive from the HotSpot class to create a custom hot spot class that represents a unique shape that you define. However, you can define most shapes using the CircleHotSpot, RectangleHotSpot, and PolygonHotSpot classes. Its used in an ImageMap control.   &lt;b&gt;Ques 14: What is ImageMap Control?&lt;/b&gt; &lt;b&gt;Ans: &lt;/b&gt;It is a control that displays an image on a page. When a hot spot region that is defined within the ImageMap control is clicked, the control either generates a postback to the server or navigates to a specified URL.  Inline code example...  
&lt;pre class="csharpcode"&gt;&amp;lt;asp:ImageMap
AccessKey="string"
AlternateText="string"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
Inset|Outset"
BorderWidth="size"
CssClass="string"
DescriptionUrl="uri"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
ForeColor="color name|#dddddd"
GenerateEmptyAlternateText="True|False"
Height="size"
HotSpotMode="NotSet|Navigate|PostBack|Inactive"
ID="string"
ImageAlign="NotSet|Left|Right|Baseline|Top|Middle|Bottom|
AbsBottom|AbsMiddle|TextTop"
ImageUrl="uri"
OnClick="Click event handler"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
runat="server"
SkinID="string"
Style="string"
TabIndex="integer"
Target="string"
ToolTip="string"
Visible="True|False"
Width="size"
&amp;gt;
&amp;lt;asp:CircleHotSpot
AccessKey="string"
AlternateText="string"
HotSpotMode="NotSet|Navigate|PostBack|Inactive"
NavigateUrl="uri"
PostBackValue="string"
Radius="integer"
TabIndex="integer"
Target="string|_blank|_parent|_search|_self|_top"
X="integer"
Y="integer" /&amp;gt;
&amp;lt;asp:PolygonHotSpot
AccessKey="string"
AlternateText="string"
Coordinates="string"
HotSpotMode="NotSet|Navigate|PostBack|Inactive"
NavigateUrl="uri"
PostBackValue="string"
TabIndex="integer"
Target="string|_blank|_parent|_search|_self|_top"
/&amp;gt;
&amp;lt;asp:RectangleHotSpot
AccessKey="string"
AlternateText="string"
Bottom="integer"
HotSpotMode="NotSet|Navigate|PostBack|Inactive"
Left="integer"
NavigateUrl="uri"
PostBackValue="string"
Right="integer"
TabIndex="integer"
Target="string|_blank|_parent|_search|_self|_top"
Top="integer" /&amp;gt;
&amp;lt;/asp:ImageMap&amp;gt;&lt;/pre&gt;&lt;span style="font-size: 8pt; line-height: 100%;"&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Ques 15: What is Dynamic Compilation?&lt;/b&gt; &lt;b&gt;Ans:&lt;/b&gt; When an asp.net page is compiled for the first time, a copy of the compiled assembly is saved in the Temporary ASP.NET Files folder. This compiled page is of the type system.web.ui.page and includes all contents of the page (including html &amp;amp; scripts). When it is compiled a second time, a precompiled version is accessed from this location, thus speeding up the process. In case the source is changed, the assembly in the Temporary ASP.NET Files folder gets deleted, and thus re-compilation occurs. This process is called Dynamic Compilation. Compilation may be enabled or disabled at page level by setting the CompilationMode attribute in the Page Directive of the page.&lt;b&gt;&amp;nbsp;&lt;/b&gt; &lt;b&gt;Ques 16:&lt;/b&gt;&lt;b&gt; How to set Dynamic Compilation for an entire website? &lt;/b&gt;&lt;b&gt;Ans:&lt;/b&gt;. In web.config, in pages element, add the attribute &lt;b&gt;CompilationMode="Auto".&lt;/b&gt; &lt;b&gt;Ques 17:&lt;/b&gt;&lt;b&gt; Why do we sometimes need to disable compilation?&lt;/b&gt; &lt;b&gt;Ans:&lt;/b&gt; In case of big sites with many pages, and we dont want to load an assembly into the memory for every page. We set &lt;b&gt;CompilationMode="Never".&lt;/b&gt; The pages are interpreted at runtime. &lt;b&gt;Ques 18:&lt;/b&gt;&lt;b&gt; What is the FindControl method? &lt;/b&gt;&lt;b&gt;Ans:&lt;/b&gt; A method that searches for a control, with a specific ID inside a container and get a reference to it. Its just like the&amp;nbsp; getElementById in javascript. &lt;b&gt;Ques 19:&lt;/b&gt;&lt;b&gt; What is a partial class? Whats the advantage of using it? &lt;/b&gt;&lt;b&gt;Ans:&lt;/b&gt; In ASP.NET 2.0, a class may be written at several places, and at the time of compilation, all these classes (having the same name) get compiled as one single class. Hence these classes are called Partial Classes. Advantage, for example, Any change in Code-Behind page gets reflected in the Presentation Page(inline code) and vice versa, because of the partial class mechanism. Compare this with the older ASP.NET 1.1, whenever a change was made to Code Behind, change got reflected in Presentation page but the reverse threw an error. So for any change in the presentation page, like addition of a new control, we need to specifically add a reference of that control in the Code-Behind page. The concept of partial classes in ASP.NET 2 eliminates this problem.  &lt;b&gt;Ques 20 :&lt;/b&gt; &lt;b&gt;What is the difference between Server.Transfer and Response.Redirect?    &amp;nbsp;Why would I choose one over the other?&lt;/b&gt; &lt;b&gt;Ans: &lt;/b&gt;Server.Transfer transfers    page processing from&amp;nbsp;one page&amp;nbsp;directly to the next page without    making a round-trip back to the client's browser.&amp;nbsp; This provides a faster    response with a little less overhead on the server.&amp;nbsp; Server.Transfer does    not update the clients&amp;nbsp;url history&amp;nbsp;list or current url.&amp;nbsp;    Response.Redirect is used to redirect the user's browser&amp;nbsp;to another page    or site.&amp;nbsp; This performas a trip back to the client where the client's    browser is redirected to the new page.&amp;nbsp; The user's browser history list    is updated to reflect the new address.&amp;nbsp;&lt;b&gt; &lt;/b&gt; 
&lt;/table&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-3657724685594486327?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/aspnet-interview-questions-and-answers.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-2044666408464985453</guid><pubDate>Wed, 07 Oct 2009 15:48:00 +0000</pubDate><atom:updated>2009-10-07T11:48:47.432-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Design Pattern</category><title>Design Pattern Quiz</title><description>Hi,&lt;br /&gt;
&lt;br /&gt;
Do you want to see where you stand youself in Design patterns?&lt;br /&gt;
&lt;br /&gt;
Then, don't wait, just browse and test yourself at: &lt;a href="http://www.vincehuston.org/dp/patterns_quiz.html "&gt;http://www.vincehuston.org/dp/patterns_quiz.html &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-2044666408464985453?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/design-pattern-quiz.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-6742675974316591762</guid><pubDate>Tue, 06 Oct 2009 20:42:00 +0000</pubDate><atom:updated>2009-10-06T16:42:01.566-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>UML</category><title>UML Class Diagrams</title><description>&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;    &lt;m:smallfrac m:val="off"&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val="0"&gt;    &lt;m:rmargin m:val="0"&gt;    &lt;m:defjc m:val="centerGroup"&gt;    &lt;m:wrapindent m:val="1440"&gt;    &lt;m:intlim m:val="subSup"&gt;    &lt;m:narylim m:val="undOvr"&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:1;
	mso-generic-font-family:roman;
	mso-font-format:other;
	mso-font-pitch:variable;
	mso-font-signature:0 0 0 0 0 0;}
@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-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	mso-fareast-font-family:"Times New Roman";}
h2
	{mso-style-noshow:yes;
	mso-style-priority:9;
	mso-style-qformat:yes;
	mso-style-link:"Heading 2 Char";
	mso-style-next:Normal;
	margin-top:10.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan lines-together;
	page-break-after:avoid;
	mso-outline-level:2;
	font-size:13.0pt;
	font-family:"Cambria","serif";
	mso-ascii-font-family:Cambria;
	mso-ascii-theme-font:major-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:major-fareast;
	mso-hansi-font-family:Cambria;
	mso-hansi-theme-font:major-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:major-bidi;
	color:#4F81BD;
	mso-themecolor:accent1;}
span.Heading2Char
	{mso-style-name:"Heading 2 Char";
	mso-style-noshow:yes;
	mso-style-priority:9;
	mso-style-unhide:no;
	mso-style-locked:yes;
	mso-style-link:"Heading 2";
	mso-ansi-font-size:13.0pt;
	mso-bidi-font-size:13.0pt;
	font-family:"Cambria","serif";
	mso-ascii-font-family:Cambria;
	mso-ascii-theme-font:major-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:major-fareast;
	mso-hansi-font-family:Cambria;
	mso-hansi-theme-font:major-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:major-bidi;
	color:#4F81BD;
	mso-themecolor:accent1;
	font-weight:bold;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
	{mso-style-type:export-only;
	margin-bottom:10.0pt;
	line-height:115%;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&gt;
&lt;/style&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;Class diagrams identify the class structure of a system, including the properties and methods of each class. Also depicted are the various relationships that can exist between classes, such as an inheritance relationship.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h2&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Notation&lt;/span&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 6.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;The elements on a Class diagram are classes and the relationships between them &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;Class&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&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; Classes are the building blocks in object-oriented programming. A Class is depicted using a rectangle divided into three sections. The top section is the name of the Class. The middle section defines the properties of the Class. The bottom section lists the methods of the class.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_fboL-XjapQc/SsuoYm_AWOI/AAAAAAAAEaE/o_ePdBJz7Tc/s1600-h/Class.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_fboL-XjapQc/SsuoYm_AWOI/AAAAAAAAEaE/o_ePdBJz7Tc/s320/Class.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt; text-align: left;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;Example&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_fboL-XjapQc/Ssuon-KpxnI/AAAAAAAAEaM/9KU02e_42pg/s1600-h/Class1.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_fboL-XjapQc/Ssuon-KpxnI/AAAAAAAAEaM/9KU02e_42pg/s320/Class1.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;    &lt;m:smallfrac m:val="off"&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val="0"&gt;    &lt;m:rmargin m:val="0"&gt;    &lt;m:defjc m:val="centerGroup"&gt;    &lt;m:wrapindent m:val="1440"&gt;    &lt;m:intlim m:val="subSup"&gt;    &lt;m:narylim m:val="undOvr"&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:1;
	mso-generic-font-family:roman;
	mso-font-format:other;
	mso-font-pitch:variable;
	mso-font-signature:0 0 0 0 0 0;}
@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-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	mso-fareast-font-family:"Times New Roman";}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
	{mso-style-type:export-only;
	margin-bottom:10.0pt;
	line-height:115%;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&gt;
&lt;/style&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;Association&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; An Association is a generic relationship between two classes, and is modeled by a line connecting the two classes. This line can be qualified with the type of relationship, and can also feature multiplicity rules (eg. one-to-one, one-to-many, many-to-many) for the relationship.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_editdata.mso" rel="Edit-Time-Data"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;    &lt;m:smallfrac m:val="off"&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val="0"&gt;    &lt;m:rmargin m:val="0"&gt;    &lt;m:defjc m:val="centerGroup"&gt;    &lt;m:wrapindent m:val="1440"&gt;    &lt;m:intlim m:val="subSup"&gt;    &lt;m:narylim m:val="undOvr"&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:1;
	mso-generic-font-family:roman;
	mso-font-format:other;
	mso-font-pitch:variable;
	mso-font-signature:0 0 0 0 0 0;}
@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-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	mso-fareast-font-family:"Times New Roman";}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
	{mso-style-type:export-only;
	margin-bottom:10.0pt;
	line-height:115%;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&gt;
&lt;/style&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;a href="http://2.bp.blogspot.com/_fboL-XjapQc/SsupyvRaIwI/AAAAAAAAEaU/P_YCtGZaX5U/s1600-h/Class2.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_fboL-XjapQc/SsupyvRaIwI/AAAAAAAAEaU/P_YCtGZaX5U/s320/Class2.JPG" /&gt;&lt;/a&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;b&gt;Example&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;a href="http://1.bp.blogspot.com/_fboL-XjapQc/Ssup6V3KJ4I/AAAAAAAAEac/C7gXoeuwVO0/s1600-h/Class3.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_fboL-XjapQc/Ssup6V3KJ4I/AAAAAAAAEac/C7gXoeuwVO0/s320/Class3.JPG" /&gt;&lt;/a&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;/span&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;Aggregation&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggregations indicate a whole-part relationship, and are known as "has-a" relationships. An Aggregation relationship is indicated by a line with a hollow diamond.&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_fboL-XjapQc/SsuqYTE_14I/AAAAAAAAEak/IrIZdCMS-P4/s1600-h/Class4.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_fboL-XjapQc/SsuqYTE_14I/AAAAAAAAEak/IrIZdCMS-P4/s320/Class4.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;/span&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;b&gt;Example&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_fboL-XjapQc/Ssuqd_tLKoI/AAAAAAAAEas/XPOFx1yfLm0/s1600-h/Class5.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_fboL-XjapQc/Ssuqd_tLKoI/AAAAAAAAEas/XPOFx1yfLm0/s320/Class5.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;/span&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;A school holds both zero or more teachers and students, but the school, students and teacher can exist on their own as well. This is a weakly-coupled relationship and is called an &lt;i&gt;aggregation&lt;/i&gt;.&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;Composition&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If a class cannot exist by itself, and instead must be a member of another class, then that class has a Composition relationship with the containing class. A Composition relationship is indicated by a line with a filled diamond. &lt;/span&gt;There is a special whole/part relationship where one thing contains one or more things. This is a more stronger relationship where one needs the other in order to exist.&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&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;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_fboL-XjapQc/Ssuqj94O7jI/AAAAAAAAEa0/BoYPqtvQv_k/s1600-h/Class6.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_fboL-XjapQc/Ssuqj94O7jI/AAAAAAAAEa0/BoYPqtvQv_k/s320/Class6.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&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; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;b&gt;Example&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_fboL-XjapQc/Ssuqm8_CIOI/AAAAAAAAEa8/3LmOO1QsKpE/s1600-h/Class7.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_fboL-XjapQc/Ssuqm8_CIOI/AAAAAAAAEa8/3LmOO1QsKpE/s320/Class7.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;/span&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;In the first diagram, both the human and heart need each other in order to exist. In the second diagram, a car cannot exist without wheels, an engine and doors, yet the doors, engine and wheels that make up the car can exist by themselves.&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;Dependency&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When a class uses another class, perhaps as a member variable or a parameter, and so "depends" on that class, a Dependency relationship is formed. A Dependency relationship is indicated by a dotted arrow.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;/span&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_fboL-XjapQc/SsuqsHHKWKI/AAAAAAAAEbE/1wrs6OfHvqE/s1600-h/Class8.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_fboL-XjapQc/SsuqsHHKWKI/AAAAAAAAEbE/1wrs6OfHvqE/s320/Class8.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_fboL-XjapQc/Ssuqw9AZcQI/AAAAAAAAEbM/j_lE_D4kuMA/s1600-h/Class9.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_fboL-XjapQc/Ssuqw9AZcQI/AAAAAAAAEbM/j_lE_D4kuMA/s320/Class9.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;/span&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;Generalization&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A Generalization relationship is the equivalent of an &lt;i&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;inheritance&lt;/span&gt;&lt;/i&gt; relationship in object-oriented terms (an "is-a" relationship). A Generalization relationship is indicated by an arrow with a hollow arrowhead pointing to the base, or "parent", class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;A generalization is used when two classes are similar, but have some differences&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;/span&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_fboL-XjapQc/Ssuq2tjZfMI/AAAAAAAAEbU/xagzxQ7evW8/s1600-h/Class10.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_fboL-XjapQc/Ssuq2tjZfMI/AAAAAAAAEbU/xagzxQ7evW8/s320/Class10.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&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;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; &lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_fboL-XjapQc/Ssuq6xBBtDI/AAAAAAAAEbc/3pqLiRtIX2c/s1600-h/Class11.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_fboL-XjapQc/Ssuq6xBBtDI/AAAAAAAAEbc/3pqLiRtIX2c/s320/Class11.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;In this example the classes Corporate Customer and Personal Customer have some similarities such as name and address, but each class has some of its own attributes and operations.&amp;nbsp; The class Customer is a general form of both the Corporate Customer and Personal Customer classes.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 9pt;"&gt;&lt;span style="color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-6742675974316591762?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/uml-class-diagrams.html</link><author>noreply@blogger.com (amitmittal77)</author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_fboL-XjapQc/SsuoYm_AWOI/AAAAAAAAEaE/o_ePdBJz7Tc/s72-c/Class.JPG' height='72' width='72'/><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-2197040365686563233</guid><pubDate>Thu, 01 Oct 2009 18:15:00 +0000</pubDate><atom:updated>2009-10-01T14:15:16.942-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Web service</category><category domain='http://www.blogger.com/atom/ns#'>WCF</category><title>The Difference Between RPC and Document Style WSDL</title><description>Nice articles to understand difference between RPC and document style in web services.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="The Difference Between RPC and Document Style WSDL"&gt;The Difference Between RPC and Document Style WSDL&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/"&gt;Which style of WSDL should I use?&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.ibm.com/developerworks/webservices/library/ws-docstyle.html"&gt;&lt;br /&gt;
Reap the benefits of document style Web services&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-2197040365686563233?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/10/difference-between-rpc-and-document.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-979652862997525019</guid><pubDate>Wed, 30 Sep 2009 20:55:00 +0000</pubDate><atom:updated>2009-09-30T16:55:01.964-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>WCF</category><title>Difference between WCF and web service</title><description>The best difference / comparison between WCF Service and Asp.Net Web service you can find on the following URL:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/aa738737.aspx"&gt;http://msdn.microsoft.com/en-us/library/aa738737.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Its really very nice article.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-979652862997525019?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/09/difference-between-wcf-and-web-service.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-3633418542144701408</guid><pubDate>Fri, 25 Sep 2009 19:21:00 +0000</pubDate><atom:updated>2009-09-25T15:21:15.048-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>WCF</category><title>WCF Contracts</title><description>&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;    &lt;m:smallfrac m:val="off"&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val="0"&gt;    &lt;m:rmargin m:val="0"&gt;    &lt;m:defjc m:val="centerGroup"&gt;    &lt;m:wrapindent m:val="1440"&gt;    &lt;m:intlim m:val="subSup"&gt;    &lt;m:narylim m:val="undOvr"&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Camittal%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_plchdr.htm" rel="plchdr"&gt;&lt;/link&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;
	mso-font-charset:2;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:roman;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1107304683 0 0 159 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
	{font-family:Segoe-Bold;
	panose-1:0 0 0 0 0 0 0 0 0 0;
	mso-font-charset:0;
	mso-generic-font-family:auto;
	mso-font-format:other;
	mso-font-pitch:auto;
	mso-font-signature:3 0 0 0 1 0;}
@font-face
	{font-family:Segoe-Semibold;
	panose-1:0 0 0 0 0 0 0 0 0 0;
	mso-font-charset:0;
	mso-generic-font-family:auto;
	mso-font-format:other;
	mso-font-pitch:auto;
	mso-font-signature:3 0 0 0 1 0;}
@font-face
	{font-family:BerkeleyOldITC-Book;
	panose-1:0 0 0 0 0 0 0 0 0 0;
	mso-font-charset:0;
	mso-generic-font-family:auto;
	mso-font-format:other;
	mso-font-pitch:auto;
	mso-font-signature:3 0 0 0 1 0;}
@font-face
	{font-family:ZapfDingbats;
	panose-1:0 0 0 0 0 0 0 0 0 0;
	mso-font-charset:0;
	mso-generic-font-family:auto;
	mso-font-format:other;
	mso-font-pitch:auto;
	mso-font-signature:3 0 0 0 1 0;}
@font-face
	{font-family:Segoe-SemiboldItalic;
	panose-1:0 0 0 0 0 0 0 0 0 0;
	mso-font-charset:0;
	mso-generic-font-family:auto;
	mso-font-format:other;
	mso-font-pitch:auto;
	mso-font-signature:3 0 0 0 1 0;}
@font-face
	{font-family:BerkeleyOldITC-BookItalic;
	panose-1:0 0 0 0 0 0 0 0 0 0;
	mso-font-charset:0;
	mso-generic-font-family:auto;
	mso-font-format:other;
	mso-font-pitch:auto;
	mso-font-signature:3 0 0 0 1 0;}
@font-face
	{font-family:BerkeleyOldITC-Bold;
	panose-1:0 0 0 0 0 0 0 0 0 0;
	mso-font-charset:0;
	mso-generic-font-family:auto;
	mso-font-format:other;
	mso-font-pitch:auto;
	mso-font-signature:3 0 0 0 1 0;}
@font-face
	{font-family:LucidaSans-TypewriterBold;
	panose-1:0 0 0 0 0 0 0 0 0 0;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-format:other;
	mso-font-pitch:auto;
	mso-font-signature:3 0 0 0 1 0;}
@font-face
	{font-family:LucidaSans-Typewriter;
	panose-1:0 0 0 0 0 0 0 0 0 0;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-format:other;
	mso-font-pitch:auto;
	mso-font-signature:3 0 0 0 1 0;}
@font-face
	{font-family:"Segoe UI";
	panose-1:2 11 5 2 4 2 4 2 2 3;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-536861953 -1073733541 9 0 479 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-priority:1;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin-top:0in;
	margin-right:0in;
	margin-bottom:10.0pt;
	margin-left:0in;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:10.0pt;
	margin-left:.5in;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
	{mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-type:export-only;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
	{mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-type:export-only;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
	{mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-type:export-only;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:10.0pt;
	margin-left:.5in;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
p.Publishwithline, li.Publishwithline, div.Publishwithline
	{mso-style-name:"Publish with line";
	mso-style-noshow:yes;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:16.0pt;
	mso-bidi-font-size:19.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:major-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:major-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:major-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:major-bidi;
	color:#17365D;
	mso-themecolor:text2;
	mso-themeshade:191;
	font-weight:bold;}
p.PublishStatus, li.PublishStatus, div.PublishStatus
	{mso-style-name:"Publish Status";
	mso-style-noshow:yes;
	mso-style-unhide:no;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:2.0pt;
	margin-left:0in;
	mso-pagination:widow-orphan;
	background:#FDEB9F;
	border:none;
	mso-border-alt:solid #FDBD5E .5pt;
	padding:0in;
	mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt;
	font-size:9.0pt;
	mso-bidi-font-size:13.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
p.Account, li.Account, div.Account
	{mso-style-name:Account;
	mso-style-noshow:yes;
	mso-style-unhide:no;
	mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	tab-stops:.05in 63.35pt;
	font-size:9.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Segoe UI","sans-serif";
	mso-fareast-font-family:"Segoe UI";
	color:#4F81BD;}
p.PadderBetweenTitleandProperties, li.PadderBetweenTitleandProperties, div.PadderBetweenTitleandProperties
	{mso-style-name:"Padder Between Title and Properties";
	mso-style-noshow:yes;
	mso-style-unhide:no;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:1.0pt;
	margin-left:0in;
	mso-pagination:widow-orphan;
	font-size:1.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
p.PadderBetweenControlandBody, li.PadderBetweenControlandBody, div.PadderBetweenControlandBody
	{mso-style-name:"Padder Between Control and Body";
	mso-style-noshow:yes;
	mso-style-unhide:no;
	mso-style-next:Normal;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:6.0pt;
	margin-left:0in;
	mso-pagination:widow-orphan;
	font-size:1.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
p.underline, li.underline, div.underline
	{mso-style-name:underline;
	mso-style-noshow:yes;
	mso-style-unhide:no;
	mso-style-parent:"";
	margin-top:2.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	border:none;
	mso-border-bottom-alt:solid #4F81BD 1.0pt;
	mso-border-bottom-themecolor:accent1;
	padding:0in;
	mso-padding-alt:0in 0in 2.0pt 0in;
	font-size:1.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	mso-bidi-font-size:10.0pt;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
	{mso-style-type:export-only;
	margin-bottom:10.0pt;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:326246569;
	mso-list-type:hybrid;
	mso-list-template-ids:1179554514 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
	{mso-level-number-format:bullet;
	mso-level-text:;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l1
	{mso-list-id:824246368;
	mso-list-type:hybrid;
	mso-list-template-ids:114187198 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
	{mso-level-number-format:bullet;
	mso-level-text:;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--&gt;
&lt;/style&gt;&lt;w:sdt dropdown="t" id="20023188" prefixmappings="xmlns:ns0 = 'http://www.microsoft.com/Office/Word/BlogTool'" storeitemid="X_8F08F75A-DF6E-48AF-B149-418F1CD3FC08" xpath="/ns0:BlogPostInfo/ns0:Account"&gt;&lt;/w:sdt&gt;&lt;span style="font-size: 1pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;w:sdt contentlocked="t" id="89512093" sdtgroup="t"&gt;   &lt;/w:sdt&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Segoe-Bold; font-size: 16pt;"&gt;Contracts&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Segoe-Bold; font-size: 16pt;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Segoe-Bold; font-size: 26pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 9pt;"&gt;Service contract &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Defines which operations the service makes available to be invoked as&lt;o:p&gt;&lt;/o:p&gt; request messages are sent to the service from the client&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 9pt;"&gt;Data contract &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Defines the structure of data included in the payloads of the messages&lt;o:p&gt;&lt;/o:p&gt; flowing in and out of the service&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 9pt;"&gt;Message contract &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Enables you to control the headers that appear in the messages and&lt;o:p&gt;&lt;/o:p&gt; how the messages are structured&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Bold; font-size: 12pt;"&gt;WCF and Web Services Standards&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The three core types of WCF contracts map directly to a corresponding Web services standard in the following way:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Service contracts map to WSDL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Data contracts map to XSD&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Message contracts map to SOAP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;The &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 12pt;"&gt;ServiceContractAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;ServiceContractAttribute&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, defined in the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;System.ServiceModel &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;namespace, can be applied to&lt;o:p&gt;&lt;/o:p&gt; either .NET interfaces or .NET classes. It is used to declare the type as a Service contract. This attribute is not inherited,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Bold; font-size: 8pt;"&gt;NOTE :&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 9pt;"&gt;Always apply the &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 9pt;"&gt;ServiceContractAttribute &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 9pt;"&gt;to an interface&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;Named Parameter Options for the &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;ServiceContractAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: BerkeleyOldITC-Bold; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Name &lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Specifies a different name for the contract instead of the default, which is simply the interface or class type name. This contract name is what will appear in the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;portType &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;name when consumers access the WSDL.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Namespace&lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&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;  &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Specifies a target namespace in the WSDL for the service. The default&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;namespace is &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;http://tempuri.org&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;CallbackContract &lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Associates another Service contract as a Callback contract. This sets up the infrastructure for a duplex MEP and thereby allows the service to initiate sending messages to the client.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;ProtectionLevel&lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Enables the Service contract to specify constraints on how messages to all operations in the contract are protected on the wire, that is, whether they are signed and encrypted. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;ConfigurationName &lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Specifies the name attribute of the service element in a configuration file. The default is the name of the service implementation class, that is, the service type.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;SessionMode &lt;/b&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; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Specifies whether sessions should be enabled by the endpoint exposing this Service contract. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;The &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 12pt;"&gt;OperationContractAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;OperationContractAttribute&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, also defined in the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;System.ServiceModel &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;namespace, can be&lt;o:p&gt;&lt;/o:p&gt; applied only to methods. It is used to declare the method as belonging to a Service contract.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;Named Parameter Options for the &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;OperationContractAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: BerkeleyOldITC-Bold; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Name &lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Specifies a different name for the operation instead of using the default, which is the method name.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Action &amp;nbsp; &lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&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; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Controls the action header for messages to this operation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;ReplyAction &lt;/b&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;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Controls the action header for response messages from this operation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;IsOneWay&lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&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;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Indicates whether the operation is one-way and has no reply. When operations are one-way, ReplyAction is not supported. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;ProtectionLevel&lt;/b&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;  &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Enables the Service contract to specify constraints on how messages to all operations in the contract are protected on the wire, that is, whether they are signed and encrypted.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;ProtectionLevel&lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;property of the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;ServiceContractAttribute&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;IsInitiating&lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&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;  &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Indicates whether invoking the operation initiates a new session between the caller and the service. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;IsTerminating&lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&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;  &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Indicates whether invoking the operation terminates an existing session between the caller and the service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;The &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 12pt;"&gt;MessageParameterAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;MessageParameterAttribute&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, also defined in the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;System.ServiceModel &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;namespace, controls&lt;o:p&gt;&lt;/o:p&gt; how the names of any operation parameters and return values appear in the service description,&lt;o:p&gt;&lt;/o:p&gt; that is, how they are emitted as part of the WSDL for the service. This attribute has only&lt;o:p&gt;&lt;/o:p&gt; one property, the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Name &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;property.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;Fault Contracts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;Faults vs. Exceptions &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The first thing to realize is that faults and exceptions are not the same&lt;o:p&gt;&lt;/o:p&gt; thing. Exceptions, as referred to here, are a .NET mechanism used to communicate problems&lt;o:p&gt;&lt;/o:p&gt; encountered as a program executes. Alternatively, faults, refer to the SOAP fault mechanism for transferring error or fault conditions from a service to a consumer. The SOAP specification includes a definition for SOAP faults, providing structure for the contents of the message body when errors occur. This makes it possible for all the different SOAP stacks to issue faults in a standard way.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;WCF &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;FaultException &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;Class &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;WCF provides a &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;FaultException &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;class (there are actually two versions&lt;o:p&gt;&lt;/o:p&gt; of it) that is the standard mechanism for translating between the two worlds of .NET exceptions and of SOAP faults. That is, when your service implementation throws a &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Fault-&lt;o:p&gt;&lt;/o:p&gt;Exception&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, the WCF plumbing thereafter takes care of serializing that back to the consumer as&lt;o:p&gt;&lt;/o:p&gt; a SOAP fault. This class comes in two forms:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;i&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 9pt;"&gt;FaultException&lt;/span&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 9pt;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Used to send untyped fault data back to the consumer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 9pt;"&gt;FaultException&lt;tdetail&gt; &lt;/tdetail&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;A generic version used to send typed fault data back to the client,&lt;o:p&gt;&lt;/o:p&gt; where &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;TDetail &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;represents the type parameter for the detailed fault information to be&lt;o:p&gt;&lt;/o:p&gt; serialized back to the consumer as part of the SOAP fault message. If you have some class&lt;o:p&gt;&lt;/o:p&gt; of objects that you use to bundle up your fault details, you can specify it as the type&lt;o:p&gt;&lt;/o:p&gt; parameter for this generic exception class. Clients catching the exception can access the&lt;o:p&gt;&lt;/o:p&gt; detailed fault information by getting it from the exception object’s &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Detail &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;property.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;FaultContractAttribute &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;FaultContractAttribute&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, also defined in &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;System.ServiceModel&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;,&lt;o:p&gt;&lt;/o:p&gt; enables a service developer to declare which faults a given service operation might issue if&lt;o:p&gt;&lt;/o:p&gt; things go wrong. Following are the key pieces of information pertinent to working with the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;FaultContractAttribute&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;&lt;b&gt;:&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The attribute can be applied to operations only.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The attribute is not inherited.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The attribute can be applied multiple times; for instance, if your service operation might&lt;o:p&gt;&lt;/o:p&gt; return different types of faults, you would have a &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;FaultContractAttribute &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;declaration for&lt;o:p&gt;&lt;/o:p&gt; each type of fault.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The attribute’s constructor takes a &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Type &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;object used to reference the .NET type of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt; Detail &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;object, that is, the type of fault information details you want to bundle with your&lt;o:p&gt;&lt;/o:p&gt; faults.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 14pt;"&gt;Message Exchange Patterns&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;MEPs describe the protocol of message exchanges a consumer must engage in to converse&lt;o:p&gt;&lt;/o:p&gt; properly with the service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="margin-bottom: 0.0001pt; text-indent: -0.25in;"&gt;&lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 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-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Request/Response – Default.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; text-indent: -0.25in;"&gt;&lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 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-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;OneWay&amp;nbsp; - setting the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;IsOneWay &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;property on the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;OperationContractAttribute &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;to &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;true&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt; text-indent: -0.25in;"&gt;&lt;span style="font-family: Symbol;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 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-family: ZapfDingbats; font-size: 8pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Duplex&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 14pt;"&gt;Data Contracts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Data contracts are the contractual agreement about the format and structure of the payload&lt;o:p&gt;&lt;/o:p&gt; data (that is, the SOAP body) in the messages exchanged between a service and its consumer.&lt;o:p&gt;&lt;/o:p&gt; the WCF Data contract language defines the structure of data in your WCF service messages&lt;o:p&gt;&lt;/o:p&gt; Data contracts are declared by applying the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;DataContractAttribute &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;to a .NET type, and you will&lt;o:p&gt;&lt;/o:p&gt; need to decorate that type’s members that you want to include in the Data contract with the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt; DataMemberAttribute&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;Named Parameter Options for the &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;DataContractAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: BerkeleyOldITC-Bold; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Name &lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&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; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Determines the type name as it is generated in the resulting schema. The default is the .NET type name as it is declared.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Namespace &lt;/b&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;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Sets the target namespace for the schema. This defaults to &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;http://schemas.datacontract.org/2004/07/&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;[CLR namespace], where [&lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;CLR namespace&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;] is the namespace in which the complex type is defined.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;The &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 12pt;"&gt;DataMemberAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;DataMemberAttribute, &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;also part of the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;System.Runtime.Serialization &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;namespace, is applied&lt;o:p&gt;&lt;/o:p&gt; only to members and is used to declare that the member should be included in the serialization&lt;o:p&gt;&lt;/o:p&gt; of the data structure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;Named Parameter Options for the &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;DataMemberAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: BerkeleyOldITC-Bold; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Name &lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&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;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Controls the schema element name generated for the member (that is, the field or property) the attribute adorns. The default behavior is to use the field or property name as defined in the .NET type.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;IsRequired &lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&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; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Controls the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;minOccurs &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;attribute for the schema element. The default value is &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;false&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;, that is, the element is optional, which translates into &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;minOccurs = 0&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Order &lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Controls the order of each element in the schema. By default, if this property is not set explicitly, the data members appear alphabetically, followed by elements for which this property is set explicitly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;EmitDefaultValue &lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Controls whether default values will be included in the serialization. This property is &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;true &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;by default, so that all data members are serialized. If this property is set to &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;false&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;, any member that is set to its default value for its type (for instance, &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;null &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;for reference types) will not be serialized.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;The &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 12pt;"&gt;EnumMemberAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;it is used to declare that a given element of an &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;enum &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;that has been declared with a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt; DataContractAttribute &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;should be considered as part of the Data contract. The only property (or&lt;o:p&gt;&lt;/o:p&gt; named parameter) is the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Value &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;property, which can be used to provide an enumerated value to &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;be serialized. The default is its actual value within the enumeration.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;Opt-In vs. Opt-Out&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;DataContractSerializer&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, the new default WCF serializer, operates in an opt-in mode that is&lt;o:p&gt;&lt;/o:p&gt; the opposite of its predecessor, the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;XmlSerializer&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;. That is, with the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;DataContractSerializer&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;,&lt;o:p&gt;&lt;/o:p&gt; members that are to be part of the Data contract must be explicitly marked as such, whereas&lt;o:p&gt;&lt;/o:p&gt; with the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;XmlSerializer&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, members are assumed to be in the Data contract unless explicitly &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;marked as opting out.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 12pt;"&gt;CollectionDataContractAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;You can use this attribute to annotate your own custom collections, and the resulting collection will&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;always be exposed to its WCF consumers as a &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;List &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;collection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;Known Types&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;WCF also supplies you with the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;KnownTypeAttribute&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, which enables you to designate acceptable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;derived classes for a given Data contract.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;LucidaSans-TypewriterBold&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9pt;"&gt;// C#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9pt;"&gt;[DataContract()]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9pt;"&gt;[KnownType(typeof(LoanApprovalTask))]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9pt;"&gt;class Task&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9pt;"&gt;{ // Etc...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9pt;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9pt;"&gt;[DataContract()]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9pt;"&gt;class LoanApprovalTask : Task&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9pt;"&gt;{ // Etc...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9pt;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;When working with polymorphic types in your Service contract, the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;KnownTypeAttribute &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;required because polymorphism is outside the paradigm of service orientation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;MessageContractAttribute &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;MessageContractAttribute &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;can be applied to classes and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;structures to define your own message structure. It has several properties&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;Named Parameter Options for the &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;MessageContractAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: BerkeleyOldITC-Bold; font-size: 9.5pt;"&gt;Named Parameter &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;IsWrapped&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;  &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;If &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;true&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;, the message body includes a wrapper element named by using the Message contract type or the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;WrapperName &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;if specified. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;false&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;, the message body is unwrapped, and body elements appear directly beneath it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;ProtectionLevel&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;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Enables the Service contract to specify constraints on how messages to all operations in the contract are protected on the wire, that is, whether they are signed and encrypted. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;WrapperName&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;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Supplies a custom name for the body wrapper element.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;WrapperNamespace &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Supplies a namespace for the body wrapper element.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;MessageHeaderAttribute &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;MessageHeaderAttribute &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;can be applied to members of a&lt;o:p&gt;&lt;/o:p&gt; Message contract to declare which elements belong among the message headers. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 9pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;Named Parameter Options for the &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;MessageHeaderAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: BerkeleyOldITC-Bold; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Name &lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Controls the name of the serialized header element.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Namespace &lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&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;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Supplies a namespace for the header element and its children unless otherwise overridden at the type level.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;ProtectionLevel &lt;/b&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; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Enables the Service contract to specify constraints on how messages to all operations in the contract are protected on the wire, that is, whether they are signed and encrypted.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Actor &lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;A URI value indicating which actor is the intended target of the header. By default, the receiving service is assumed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;MustUnderstand&lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Indicates whether the recipient of the header (designated through the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;Actor &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;property) is required to process this header. If this property is set to &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;true &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;and the actor doesn’t understand the header, the actor should issue a fault.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Relay&lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&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;&amp;nbsp;  &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Indicates whether this header should be forwarded to the next recipient of the message in the event the message is not being processed by the actor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;MessageBodyMemberAttribute &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;MessageBodyMemberAttribute &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;can be applied to&lt;o:p&gt;&lt;/o:p&gt; members of your Message contracts to declare which elements belong within the message&lt;o:p&gt;&lt;/o:p&gt; body. Recall that if &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;IsWrapped &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;is set to &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;false &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;on the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;MessageContractAttribute&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, these elements will&lt;o:p&gt;&lt;/o:p&gt; be direct children of the SOAP body element. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;IsWrapped &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;is set to &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;true&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, they will be wrapped&lt;o:p&gt;&lt;/o:p&gt; within a child element, an element named using either the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;WrapperName &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;property if it is set&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;explicitly or the Message contract name. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;Named Parameter Options for the &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 10pt;"&gt;MessageBodyMemberAttribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: BerkeleyOldITC-Bold; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Name &lt;/b&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Controls the name of the serialized body element.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Namespace&lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&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; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Supplies a namespace for the body element and its children unless otherwise overridden at the type level.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;ProtectionLevel &lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Enables the Service contract to specify constraints on how messages to all operations in the contract are protected on the wire, that is, whether they are signed and encrypted. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 9.5pt;"&gt;&lt;b&gt;Order &lt;/b&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 9.5pt;"&gt;Controls the order of each element in the schema. By default, if this property is not set explicitly, the data members appear alphabetically, followed by elements for which this property is set explicitly. The same rules are used to apply ordering as are used with Data contracts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 10pt;"&gt;Supplying Custom Headers &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;You might sometimes need to send along private elements in&lt;o:p&gt;&lt;/o:p&gt; your SOAP messages, and defining Message contracts supports this. Two common reasons for&lt;o:p&gt;&lt;/o:p&gt; doing this are that:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;You have your own security mechanism in place, so you need to pass along your own&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;authentication token in a private SOAP header.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Consumers of your service might have to include some sort of license key (or developer’s&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;key) to access the service at run time. In such cases, a SOAP header is a reasonable place&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;for such a field.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;Serialization : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;WCF provides two serializers&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;DataContractSerializer&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, new with WCF&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;XmlSerializer &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;that has been part of .NET from the outset&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;The Format Attributes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;WCF provides two attributes, namely &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;XmlSerializerFormatAttribute &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;DataContractFormat-&lt;o:p&gt;&lt;/o:p&gt;Attribute&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, that you can use to declare that WCF uses a specific serializer, namely the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Xml-&lt;o:p&gt;&lt;/o:p&gt; Serializer &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;and the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;DataContractSerializer&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, respectively. Both of these attributes have a &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Style&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt; property that enables you to control which style of SOAP is to be used, &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Rpc &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;(remote procedure&lt;o:p&gt;&lt;/o:p&gt; call) or &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Document&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;XmlSerializerFormatAttribute &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;has another property, called &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Use&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;,&lt;o:p&gt;&lt;/o:p&gt; that enables you to control whether the serializer uses the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Literal &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;or &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Encoded &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;approach to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;constructing SOAP messages.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Ex. &lt;/span&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7pt;"&gt;[ServiceContract()]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;LucidaSans-TypewriterBold&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7pt;"&gt;[DataContractFormat(Style=OperationFormatStyle.Rpc)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7pt;"&gt;interface ISomeRpcService2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7pt;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7pt;"&gt;[OperationContract()]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7pt;"&gt;string SomeOp2( string name);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; text-indent: -1.5in;"&gt;&lt;span style="font-family: &amp;quot;LucidaSans-Typewriter&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7pt;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="margin-bottom: 0.0001pt; text-indent: -0.25in;"&gt;&lt;span style="font-family: Symbol; font-size: 10pt;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 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-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;For both the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;DataContractFormatAttribute &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;and the &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;XmlSerializerFormatAttribute&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;, the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;default style is &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;Document&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt; text-indent: -0.25in;"&gt;&lt;span style="font-family: Symbol;"&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 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-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;DataContractSerializer &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;is the default serializer WCF use&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;The &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 12pt;"&gt;DataContractSerializer &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-family: Segoe-Semibold; font-size: 12pt;"&gt;vs. the &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Segoe-SemiboldItalic; font-size: 12pt;"&gt;XmlSerializer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: BerkeleyOldITC-BookItalic; font-size: 10pt;"&gt;DataContractSerializer &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;has the following benefits:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;Its opt-in approach provides nice control over Data contracts for developers. Your Data&lt;o:p&gt;&lt;/o:p&gt;contract classes can be equipped with other elements and validation logic that need not&lt;o:p&gt;&lt;/o:p&gt; be opted in.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt;"&gt;��&lt;/span&gt;&lt;span style="font-family: ZapfDingbats; font-size: 8pt;"&gt; &lt;/span&gt;&lt;span style="font-family: BerkeleyOldITC-Book; font-size: 10pt;"&gt;It is very fast. It is targeted at a very small, simple subset of the XML InfoSet and is focused on speed instead of on being comprehensive.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-3633418542144701408?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/09/wcf-contracts.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-1264876288197353948.post-6395786322735156646</guid><pubDate>Wed, 23 Sep 2009 21:05:00 +0000</pubDate><atom:updated>2009-09-23T17:05:48.655-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>ASP.NET</category><title>ASP.NET Objective type questions and Answers</title><description>&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(230, 230, 230) none repeat scroll 0% 0%; text-align: center;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;b&gt;ASP.NET&lt;span style="font-size: 12pt;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial; font-size: 8pt;"&gt;&lt;b&gt;Note:&lt;/b&gt; All the questions have a single correct answer unless specifically mentioned in the question&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;What is the default value for the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Method&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; attribute in a ASP.NET server-side &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Form&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;GET&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;POST&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;SOAP&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;SMTP&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Which property allows ASP.NET controls to maintain their values when a page is posted to itself.&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;EnableViewState&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;MaintainValue&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;SaveValue&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;AutoPostBack&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;In a ASP.NET page, which is the best way to find if the contents of a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; has changed after the form containing the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; has been posted back to the server&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;By comparing the old value with the new value&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;By checking the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;NewValue&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;By handling the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control's &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;TextChanged&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; event&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;By checking the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;HasChanged&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Which statement among the ones below is correct&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Params&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; and &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Forms&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; collection of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;HTTPRequest&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; class are exactly same and the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Forms&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; collection has been provided only for backward compatibility&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;HTTPRequest&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; class does include the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Params&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; collection&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;HTTPRequest&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; class does include the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Forms&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; collection&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The difference between the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Params&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; and &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Forms&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; collection of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;HTTPRequest&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; class is that the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Params&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; collection also represents &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;QueryStrings&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;, &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;ServerVariables&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;, and &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Cookies&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Which statement among the ones below is correct&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;If you use the server-side version of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;&amp;lt;form&amp;gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; tag, you cannot post the form to a different page.&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You can modify the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Action &lt;/span&gt;&lt;span style="font-family: Arial;"&gt;attribute of the server-side version of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;&amp;lt;form&amp;gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; tag to post the form to a different page&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You have to set the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Method&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; and &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Action &lt;/span&gt;&lt;span style="font-family: Arial;"&gt;attributes of the server-side version of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;&amp;lt;form&amp;gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; tag to post the form to a different page&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You can use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;SetAction()&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; method of the server-side version of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;&amp;lt;form&amp;gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; tag to post the form to a different page&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;If a form is posted to a different page, the you can retrieve the values of the form elements by&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Using the properties of the ASP.Net controls&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Using the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;GetElementByID()&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; method&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Using &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Request.Params&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The values cannot be retrieved&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You are performing Form validations with Validation controls. You need to group all the errors at the top of the page and also show error messages besides each element. The messages besides each element need to be detailed and hence different from the messages at top of the page&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You can use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;ValidationSummary&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; Control to summarize the messages set in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;ErrorMessage&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the Validation controls. The messages set in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Text&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the Validation controls can be displayed besides each element.&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The error messages set in the Summary&lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Text&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of each Validation control having &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;isSummary=true&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; will be automatically grouped at the top of the page and the messages set in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Text&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property can be displayed besides each element.&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The error messages in the Validation control can only be displayed in a popup&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The Validation controls cannot be used in the given scenario&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;How do view states work&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Using Cookies&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Using a hidden form field&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Using Session variables&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Using Application variables&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You need to dynamically add a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control to a page and display it at specific location&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Place a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Label&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control at the required location in the page and add the control by manipulating the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Text&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Label&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Place a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;PlaceHolder&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control at the required location in the page. Use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Add&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; method of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Controls&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; collection of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;PlaceHolder&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control to dynamically add the required control&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Build the HTML for the entire page in a String and insert the HTML code for required control in required place&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You cannot add a control to a page dynamically&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You require to create an ASP.NET page with the functionality to allow a user to upload a file to the server&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You need to use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;System.Web.Upload&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; namespace&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You need to use a COM component to save the file on the server&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You need to use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;SaveAs&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; method of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;HttpPostedFile&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; class&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The ASP.Net application automatically loops through all the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;&amp;lt;input type="File"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; and saves the uploaded files to a virtual folder called "uploads" &lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You need to programmatically add a user control without using the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Register&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; directive in your code&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Use AddUserControl&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Use cannot programmatically add a user control&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Use UserControl.Add&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Use LoadControl&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You need to develop a business component myComp.dll in .Net and use it in your ASP.NET page&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You require to register the component using regsvr32.exe&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You require to register the component using TlbExp.exe&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You require to copy the component to the /bin directory in your applications root directory&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You require to copy the component to the /bin directory in your applications root directory and register the component using regsvr32.exe&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Is it possible for multiple aspx pages to use the same code-behind file, if required&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Yes&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;No&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;How is a ASP.NET presentation page associated with its code-behind&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The presentation page includes the code-behind file using #include&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The presentation page includes the code-behind file using &amp;lt;@ Page include="codebehind file name"&amp;gt;&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The presentation page inherits from the code-behind&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The ASP.NET presentation page and the code-behind page have the same name and hence are automatically associated with each other&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Which namespace would you use if you need to create an ASP.NET application with Microsoft SQL Server 2000 as the database. &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;System.Data.SQLServer&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;System.Data.SQLClient&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;System.Data.OleDb&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;System.Data.Microsoft&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Which namespace would you use if you need to create an ASP.NET application with Oracle as the database. &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;System.Data.SQLServer&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;System.Data.SQLClient&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;System.Data.OleDb&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;System.Data.NonMS&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Which statement among the following is correct while opening a connection using the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;SQLConnection&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; class&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You cannot specify a connection string&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You need to specify a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Provider&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; parameter for the connection string&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You need to use a System DSN&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You cannot use a DSN&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;What method of the Command object would you use if you need to retrieve a single value (for example an aggregate value) from a database&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ExecuteScalar()&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ExecuteReader()&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ExecuteSingle()&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;ExecuteNonQuery()&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Which are the two things you need to take care of in your ASP.Net application to take advantage of connection pooling (select two)&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You need to set the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Pooling&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Connection&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; object to &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;True&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You need to use the same exact connection string whenever you open a database connection&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You need to call the ReleaseToPool() method after the connection is closed&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You need to explicitly close the connection with the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Close()&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; method&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You have created a ASP.Net page Transaction by using &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;&amp;lt;% Transaction = "Required" %&amp;gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;If a transaction already exists, the page will execute within the context of the transaction. However it will not create a new transaction&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;If a transaction already exists, the page will execute within the context of the transaction. If a transaction does not exist, it will create a new one&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Creates a new transaction for each request&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You cannot created a ASP.Net page Transaction by using &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;&amp;lt;% Transaction = "Required" %&amp;gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You need to retrieve only schema information about the columns contained in a database table without retrieving data. Which of the following is the best way to retrieve it&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;GetSchemaTable()&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; method of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataReader&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; in conjunction with &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;CommandBehaviour.SchemaOnly&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;SchemaOnly&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Command&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; class&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;GetSchemaOnly()&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; method of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataReader&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You cannot retrieve only schema information without retrieving data&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Consider the following example&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;&amp;lt;Script Runat="Server"&amp;gt;&lt;br /&gt;
Dim intNextNum As Integer&lt;br /&gt;
Sub Page_Load&lt;br /&gt;
lblMessage1.DataBind()&lt;br /&gt;
lblMessage2.DataBind()&lt;br /&gt;
DataBind()&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Function GetNext() As String&lt;br /&gt;
intNextNum += 1&lt;br /&gt;
Return intNextNum&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/Script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;DataBindTest2.aspx&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;form Runat="Server"&amp;gt;&lt;br /&gt;
&amp;lt;asp:Label ID="lblMessage1" Text='&amp;lt;%# GetNext() %&amp;gt;' Runat="Server" /&amp;gt;&lt;br /&gt;
&amp;lt;asp:Label ID="lblMessage2" Text='&amp;lt;%# GetNext() %&amp;gt;' Runat="Server" /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;br /&gt;
What will be the values assigned to the two &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Label&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; controls &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;lblMessage1 &lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&amp;amp; &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;lblMessage2 respectively&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;2 &amp;amp; 3&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;3 &amp;amp; 3&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;3 &amp;amp; 4&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;4 &amp;amp; 4&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You need to customize the display format of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;DataList&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Set the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DisplayFormat&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataList&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control to &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Custom&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Set the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;CustomFormat&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataList&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control to &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;True&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;ItemTemplate&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; will allow you to format the appearance of each &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataList&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; item&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The display format of the DataList control is predefined and cannot be customized&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You have a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;DataList&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control containing a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;LinkButton&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;. What would you do to raise the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;DeleteCommand&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; event in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;DataList&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; by clicking on the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;LinkButton&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;.&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Set &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;CommandName="delete"&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;LinkButton&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Set the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;OnDelete&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataList &lt;/span&gt;&lt;span style="font-family: Arial;"&gt;to the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;ID&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;LinkButton&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;A DataList control cannot raise an event in response to events raised by its child controls&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;A DataList control cannot contain child controls&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;The &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Products&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; table has a column named &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;ProductName&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; and a primary key column named &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;ProductID&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;. When a user selects an item in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;DataList&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;, you want to retrieve the value of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;ProductID&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; column associated with it.&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;In the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataList&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control set &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;PrimaryKeyField="ProductID"&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;In the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataList&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control set &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataKeyField="ProductID"&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;In the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataList&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control set &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;KeyField="ProductID"&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;In the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataList&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control set &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;ID="ProductID"&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You need to enable paging for a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;DataGrid&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; control&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You can use a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataReader&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You can use a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataTable&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You can use either the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataReader&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; or &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataTable&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;A &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataGrid&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; does not support paging&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Can you use a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;DataView&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; to filter rows in a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;DataTable&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Yes, by setting the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Filter&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataView&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Yes, by setting the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;RowFilter&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataView&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Yes, by using the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;SetFilter()&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; method of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataView&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;No, a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataView&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; cannot be used to filter rows in a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataTable&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Which statement is an accurate description of the code below (&lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;dtsDataset&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; is a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;DataSet&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Cache("myCachedDataSet") = dstDataset&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Adds a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataSet&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; to the application's cache in the server's memory, automatically preserving it between page requests.&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Adds a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataSet&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; to the cache in the client's memory, automatically preserving it between page requests.&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Cache&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; object cannot be used to cache a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataSet&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;, it can only cache a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataTable&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The code block is syntactically incorrect and should actually be &lt;br /&gt;
&lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Set Cache("myCachedDataSet") = dstDataset&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;How can you load an XML file directly into a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;DataSet&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;By setting the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;XML &lt;/span&gt;&lt;span style="font-family: Arial;"&gt;property of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataSet&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; class&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;By using the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;GetXML()&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; method of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataSet&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; class&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;By using the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;ReadXml()&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; method of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataSet&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; class&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You cannot load an XML file directly into a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;DataSet&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Your site has been restructured and the paths of few pages have changed. Which method would you use to redirect users requesting for a pages using the old URL&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Create an &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;ISAPI&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; filter to do the above task&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Create an entry in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;&amp;lt;badlinks&amp;gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; section of the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Application.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Handle the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Application_BeginRequest&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; event and use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;RewritePath()&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; method&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Which statement about the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file is the most accurate &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file can be only placed in the root of a Web Site to override settings in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Machine.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file for all applications in a particular Web Site&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file can only be placed in the root of a particular virtual directory&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file can be placed in the root of the Web Site and the root of a virtual directory. The settings from the file in the virtual directory overrides the settings from the file in the Web Site&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file can be placed in the root of the Web Site and the root of a virtual directory and in any subdirectory of an application. The settings from a file at a particular level override the settings from the ones above it.&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;The settings in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file are case-sensitive&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;True&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;False&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;The settings in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file can be configured to apply to&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;An application&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;An application or a particular directory&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;An application or a particular directory or even an individual file&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file always applies to all pages in the current directory and its subdirectories&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;Is there a way to prevent configuration settings in a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file from being overridden by a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Web.Config &lt;/span&gt;&lt;span style="font-family: Arial;"&gt;file located below it&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Yes, you can use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;allowOverride&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; attribute in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;&amp;lt;location&amp;gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; tag to prevent configuration settings in a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file from being overridden by a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file located below it&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Yes, you can use the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;&amp;lt;PreventOverride&amp;gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; tag to prevent configuration settings in a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file from being overridden by a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file located below it&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;If a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file exist at a particular level then all settings in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config &lt;/span&gt;&lt;span style="font-family: Arial;"&gt;file located above it are always ignored&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;You cannot have more than one &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.Config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file in an ASP.NET application&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;If you have an ASP.NET application with cookieless sessions enabled, which statement among the&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You cannot use relative URL's with cookieless sessions&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You cannot use absolute URL's with cookieless sessions&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Cookieless sessions have no relation with URL's&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You cannot have cookieless sessions with an ASP.NET application&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You are part of a team that is using Visual Studio .NET to develop a Web application. You have placed a number of configuration settings for the application in the server's &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Machine.config &lt;/span&gt;&lt;span style="font-family: Arial;"&gt;file. You learn in a meeting that one of your co-workers has created a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Web.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file to store these settings, though in comparing notes you realize that you and your co-worker have used different settings. &lt;br /&gt;
&lt;br /&gt;
Which of the following describes what will happen when you execute the application&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The application will run correctly and will use the settings in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file, ignoring the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Machine.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; settings &lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The application will run correctly and will use the settings in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Machine.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file, ignoring the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; settings&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The application will not run correctly until you either remove the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file or delete the settings from the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Machine.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file &lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The application will run correctly, using only the settings that are identical in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; and &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Machine.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; files &lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;The application will not run correctly until you modify either the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Web.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file or the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Machine.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file so that the application settings are identical&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You are preparing to deploy an ASP.NET Web application. You are currently creating the deployment project. You have started the Web setup project, which is named &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;AccountManagerDeploy&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;, and added the application output to the project, and now you need to set the directory on the Web server to which the application will be installed. Which of the following procedures should you use to do so (Choose two. Each correct answer presents part of the solution.)&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Set the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;VirtualDirectory&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Properties window&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;. &lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Select the Web Application Folder in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;File System Editor&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;. &lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Select the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;AccountManagerDeploy&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; project in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Solution Explorer&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;. &lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Set the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Folder&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; property in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Properties window&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;. &lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Select the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Primary output&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; from &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;AccountManagerDeploy&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; icon in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style;"&gt;Solution Explorer&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;.&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You are part of a team that is using Visual Studio .NET to develop a Web application. You are looking through the files in the application, and you see the following files: &lt;br /&gt;
&lt;br /&gt;
createmembership.aspx &lt;br /&gt;
createmembership.aspx.vb &lt;br /&gt;
&lt;br /&gt;
Which two of the following statements most accurately describe these two files (Select two.)&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The createmembership.aspx.vb file is a Web form, which displays a user interface to the user &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The createmembership.aspx file is a code file, which contains code that interacts with the user interface in the Web form &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The createmembership.aspx file is an uncompiled file that will become createmembership.aspx.vb when it is compiled &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The createmembership.aspx.vb file is a code file, which contains code that interacts with the user interface in the Web form &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The createmembership.aspx file is a Web form, which displays a user interface to the user &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The createmembership.aspx.vb file is the compiled version of createmembership.aspx&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style="font-size: 10pt;"&gt;You are using Visual Studio .NET to develop a Web application. You are beginning to debug your application, and you would like to store debug messages in the Windows event log as you proceed with testing. Which of the following will allow you to do so&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;TextWriterTraceListener &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;DefaultTraceListener &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;EventLogTraceListener &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;TraceSwitch&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You are using Visual Studio .NET to develop a Web application for a large video rental store. The titles, as well as other information about the store's videotapes, laser disks, DVDs, and audio books, are stored in a SQL Server 2000 database. &lt;br /&gt;
&lt;br /&gt;
The store wants to allow visitors to its Web site to browse the list of titles sorted in various ways, such as by medium (VHS, DVD, etc.), genre, director, and so on. You have created a number of stored procedures to facilitate the different ways of presenting the data. &lt;br /&gt;
&lt;br /&gt;
Given an existing &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;DataSet&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; named &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;dsVids&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; and a &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Connection &lt;/span&gt;&lt;span style="font-family: Arial;"&gt;named &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;conn&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;, which of the following code examples illustrates the correct way to call the stored procedure named &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;ListDVDTitles&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; that returns the list of DVD titles&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Dim daDVDList as New SqlDataAdapter()&lt;br /&gt;
daDVDList.SelectCommand = New SqlCommand()&lt;br /&gt;
daDVDList.SelectCommand.Connection = conn&lt;br /&gt;
daDVDList.SelectCommand.CommandText = "ListDVDTitles"&lt;br /&gt;
daDVDList.SelectCommand.CommandType = CommandType.StoredProcedure&lt;br /&gt;
daDVDList.Fill(dsVids, "Titles") &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Dim daDVDList as New SqlDataAdapter()&lt;br /&gt;
daDVDList.SelectCommand = New StoredProcedure()&lt;br /&gt;
daDVDList.SelectCommand.Connection = conn&lt;br /&gt;
daDVDList.SelectCommand.CommandText = "ListDVDTitles"&lt;br /&gt;
daDVDList.SelectCommand.CommandType = CommandType.SQLCommand&lt;br /&gt;
daDVDList.Fill(dsVids, "Titles") &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Dim daDVDList as New SqlDataAdapter()&lt;br /&gt;
daDVDList.SelectCommand = New SqlCommand()&lt;br /&gt;
daDVDList.SelectCommand.Connection = "ListDVDTitles"&lt;br /&gt;
daDVDList.SelectCommand.CommandType = CommandType.StoredProcedure&lt;br /&gt;
daDVDList.Fill(dsVids, "Titles") &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Dim daDVDList as New SqlDataAdapter()&lt;br /&gt;
daDVDList.SelectCommand = New SqlCommand()&lt;br /&gt;
daDVDList.SelectCommand.CommandText = "ListDVDTitles"&lt;br /&gt;
daDVDList.SelectCommand.CommandType = CommandType.StoredProcedure&lt;br /&gt;
daDVDList.Fill(dsVids, "Titles")&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You are using Visual Studio .NET to create an ASP.NET application that will serve as a Web service. You are preparing to debug the Web service, and you need to enable debugging in the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Web.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file. &lt;br /&gt;
&lt;br /&gt;
Which of the following represents the proper format for enabling debugging in your Web service through the &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;Web.config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;compilation defaultLanguage="VB"&amp;gt;&lt;br /&gt;
&amp;lt;debug="true"&amp;gt; &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;compilation defaultLanguage="VB"&amp;gt;&lt;br /&gt;
&amp;lt;Debug="on"&amp;gt; &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;compilation defaultLanguage="VB"&lt;br /&gt;
Debug="true"&amp;gt; &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;compilation defaultLanguage="VB"&lt;br /&gt;
debug="true"&amp;gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;compilation defaultLanguage="VB"&amp;gt;&lt;br /&gt;
&amp;lt;Debug="true"&amp;gt; &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;compilation defaultLanguage="VB"&amp;gt;&lt;br /&gt;
&amp;lt;debug="on"&amp;gt; &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;compilation defaultLanguage="VB"&lt;br /&gt;
debug="on"&amp;gt; &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;compilation defaultLanguage="VB"&lt;br /&gt;
Debug="on"&amp;gt;&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial;"&gt;You are creating a Web service that will include a Web method. You want the method to return its data to the caller as it is created and put into a serial stream, rather than waiting for all of the data to be prepared before returning it. Which of the following &lt;/span&gt;&lt;span style="color: #333333; font-family: Bookman Old Style; font-size: 10pt;"&gt;WebMethod&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; attributes should you set to enable this&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;WebMethod(EnableSession:=True)&amp;gt; &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(243, 243, 243) none repeat scroll 0% 0%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;WebMethod(BufferResponse:=False)&amp;gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;lt;WebMethod(EnableSession:=False)&amp;gt; &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&amp;lt;WebMethod(BufferResponse:=True)&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;input id="gwProxy" type="hidden" /&gt;&lt;input id="jsProxy" onclick="jsCall();" type="hidden" /&gt;&lt;div id="refHTML"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1264876288197353948-6395786322735156646?l=dotnet2008interviewquestions.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnet2008interviewquestions.blogspot.com/2009/09/aspnet-objective-type-questions-and.html</link><author>noreply@blogger.com (amitmittal77)</author><thr:total>3</thr:total></item></channel></rss>