<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>.Net</title>
        <link>http://geekswithblogs.net/technetbytes/category/6502.aspx</link>
        <description>.Net</description>
        <language>ur-PK</language>
        <copyright>Saqib Ullah</copyright>
        <managingEditor>saqibullah@msn.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>How to use .Net Netmodule in C++</title>
            <link>http://geekswithblogs.net/technetbytes/archive/2008/11/11/126970.aspx</link>
            <description>&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;In my &lt;a href="http://geekswithblogs.net/technetbytes/archive/2008/11/06/126836.aspx"&gt;last blog&lt;/a&gt; we saw how to create netmodule any code in .net. Today we well see that how we can use it in an application. So for the implementation of the netmodule in my code I would like to show you a little Managed C++ application that easily consumed it.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #eaeaea; MARGIN: auto auto auto 5.4pt; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="1"&gt;
    &lt;tbody&gt;
        &lt;tr style="HEIGHT: 7.15pt"&gt;
            &lt;td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 6in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 7.15pt; BACKGROUND-COLOR: transparent" valign="top" width="576"&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;&lt;font face="Courier New"&gt;// HelloWorld.h&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;#using&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &amp;lt;mscorlib.dll&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;#using&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; "CSharpHelloWorld.netmodule"&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt; &lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;using&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;namespace&lt;/span&gt; &lt;span style="COLOR: black"&gt;System&lt;/span&gt;;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt; &lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: green"&gt;&lt;font face="Courier New"&gt;// This code wraps the C# class using Managed C++&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;__gc&lt;/span&gt; &lt;span style="COLOR: blue"&gt;class&lt;/span&gt; &lt;span style="COLOR: black"&gt;HelloWorldC&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;:&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;      &lt;span style="COLOR: black"&gt;CSharpHelloWorld&lt;/span&gt; &lt;span style="COLOR: blue"&gt;__gc&lt;/span&gt; *&lt;span style="COLOR: black"&gt;t&lt;/span&gt;; &lt;span style="COLOR: green"&gt;// Provide .NET interop and garbage collecting to the pointer.&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt; &lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;      &lt;span style="COLOR: black"&gt;HelloWorldC&lt;/span&gt;() {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;            &lt;span style="COLOR: black"&gt;t&lt;/span&gt; = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; &lt;span style="COLOR: black"&gt;CSharpHelloWorld&lt;/span&gt;(); &lt;span style="COLOR: green"&gt;// Assign the reference a new instance of the constructor.&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;      }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt; &lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;      &lt;span style="COLOR: blue"&gt;void&lt;/span&gt; &lt;span style="COLOR: black"&gt;callCSharpHelloWorld&lt;/span&gt;() {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;            &lt;span style="COLOR: black"&gt;t&lt;/span&gt;-&amp;gt;&lt;span style="COLOR: black"&gt;displayHelloWorld&lt;/span&gt;(); &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;      }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;};&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;Note:- &lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt;            &lt;span style="FONT-SIZE: 8.5pt"&gt;You get the CSharpHelloWorld class code from my &lt;a href="http://geekswithblogs.net/technetbytes/archive/2008/11/06/126836.aspx"&gt;last blog&lt;/a&gt; post. Where you also find the command how to create netmodule. For successfully run the above code you need to place the &lt;/span&gt;&lt;/font&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;CSharpHelloWorld.netmodule and CSharpHelloWorld.dll in the same folder of Managed C++ application output folder because netmodule always required its respective .dll file for running.&lt;/font&gt; &lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=126970"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=126970" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/technetbytes/aggbug/126970.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Saqib Ullah</dc:creator>
            <guid>http://geekswithblogs.net/technetbytes/archive/2008/11/11/126970.aspx</guid>
            <pubDate>Wed, 12 Nov 2008 06:38:53 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/technetbytes/comments/126970.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/technetbytes/archive/2008/11/11/126970.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/technetbytes/comments/commentRss/126970.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/technetbytes/services/trackbacks/126970.aspx</trackback:ping>
        </item>
        <item>
            <title>Difference between Netmodule and Assembly file</title>
            <link>http://geekswithblogs.net/technetbytes/archive/2008/11/06/126836.aspx</link>
            <description>&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;Hello geeks after a long time, I write some thing that basically tell what the actually difference between .net assembly and Netmodule file. I illustrate this blog by using the following piece of code block. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #eaeaea; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="1"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 6.15in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent" valign="top" width="590"&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;using&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: #010001"&gt;System&lt;/span&gt;;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt; &lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;class&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;CSharpHelloWorld&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Verdana"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Verdana"&gt;      &lt;span style="COLOR: blue"&gt;public&lt;/span&gt; &lt;span style="COLOR: #010001"&gt;CSharpHelloWorld&lt;/span&gt;() {}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt; &lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Verdana"&gt;      &lt;span style="COLOR: gray"&gt;///&lt;/span&gt;&lt;span style="COLOR: gray"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Verdana"&gt;      &lt;span style="COLOR: gray"&gt;///&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Verdana"&gt;      &lt;span style="COLOR: gray"&gt;///&lt;/span&gt;&lt;span style="COLOR: gray"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Verdana"&gt;      &lt;span style="COLOR: blue"&gt;public&lt;/span&gt; &lt;span style="COLOR: blue"&gt;void&lt;/span&gt; &lt;span style="COLOR: #010001"&gt;displayHelloWorld&lt;/span&gt;() &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Verdana"&gt;      {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Verdana"&gt;            &lt;span style="COLOR: #2b91af"&gt;Console&lt;/span&gt;.&lt;span style="COLOR: #010001"&gt;WriteLine&lt;/span&gt;(&lt;span style="COLOR: #a31515"&gt;"Hello World, from C#!"&lt;/span&gt;);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Verdana"&gt;      }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Verdana"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;.Net Assembly File&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;Basically .Net assembly is a compile library that contains code in CIL (Common Intermediate Language) form, which is generated form actual source code and assembly manifest that is a metadata for assembly. It’s practically possible that assembly consist of more than one files e.g. resource file, .netmodule file.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;img alt="" src="/images/geekswithblogs_net/technetbytes/assembly.PNG" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana" size="1"&gt;&lt;em&gt;Figure 1: [&lt;span style="COLOR: #2b91af"&gt;CSharpHelloWorld.dll&lt;/span&gt;] Contain assembly manifest and metadata &lt;/em&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;Netmodule File&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;Netmodule is a unit of compilation. Basically code file is a single module. This is the feature of the specific compiler to compile the source code into assembly or a netmodule. Netmodule only contain type metadata and compiled code (netmodule does not required assembly manifest information). But there is a limitation with netmodule files; it has to be required assembly linking for execution [you can use /addmodule switch of compiler to link the netmodule into assembly].&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt; &lt;img alt="" src="/images/geekswithblogs_net/technetbytes/netmodule.PNG" /&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt;&lt;font face="Verdana" size="1"&gt;&lt;em&gt;Figure 2: [&lt;span style="COLOR: #2b91af"&gt;CSharpHelloWorld.netmodule&lt;/span&gt;] Contain only metadata information.&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;em&gt;&lt;font face="Verdana" size="1"&gt;&lt;/font&gt;&lt;/em&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;Note:- &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;            Type the following command on Visual Studio Command prompt to generate netmodule file&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana"&gt;            &lt;strong&gt;csc.exe /t:module HelloWorld.cs                                &lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;strong&gt;&lt;font face="Verdana"&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8.5pt"&gt;&lt;font face="Verdana" color="#ff0000"&gt;&lt;font color="#000000"&gt;            This blog contain only initial level of information.&lt;/font&gt; *&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=126836"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=126836" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/technetbytes/aggbug/126836.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Saqib Ullah</dc:creator>
            <guid>http://geekswithblogs.net/technetbytes/archive/2008/11/06/126836.aspx</guid>
            <pubDate>Fri, 07 Nov 2008 06:56:08 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/technetbytes/comments/126836.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/technetbytes/archive/2008/11/06/126836.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/technetbytes/comments/commentRss/126836.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/technetbytes/services/trackbacks/126836.aspx</trackback:ping>
        </item>
        <item>
            <title>Allow your framework to load custom assemblies</title>
            <link>http://geekswithblogs.net/technetbytes/archive/2008/07/28/124095.aspx</link>
            <description>&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;Hello geeks after a long gap I come back with a very arousing blog. When ever you see .Net Framework or any Microsoft patterns &amp;amp; practices library configure, they allow the developer to load the external components through some configurations in Web.config or App.Config file and that will be later called by the framework at runtime. Ok let take an example of Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.ILogFormatter Interface that require to format a LogEntry in a way suitable for wire transmission and when you open your configuration file you will find the following key.&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;    &amp;lt;formatters&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;      &amp;lt;add template="" type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null"&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;           name="Text Formatter" /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;    &amp;lt;/formatters&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;What that mean, when Enterprise library going to write log it will automatically use the above specify TextFormatter for text logging. Microsoft Enterprise library has the provision for the developer to create custom formatter by implementing ILogFormatter Interface. &lt;br /&gt;
&lt;/span&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;Now you have an idea what I am going to implement. Let suppose I have a Theme Configuration management framework for my Windows application and my framework disclose some interfaces for custom implement like &lt;span style="COLOR: #339966"&gt;IGUIControl&lt;/span&gt;.&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;
&lt;/p&gt;&lt;table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #f3f3f3; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="1"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 6.15in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent" valign="top" width="590"&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;namespace&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; ThemeFramework&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;{&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;   &lt;span style="COLOR: blue"&gt;public&lt;/span&gt; &lt;span style="COLOR: blue"&gt;interface&lt;/span&gt; &lt;span style="COLOR: teal"&gt;IGUIControl&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;   {&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;      void Render();&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;      void Draw(); &lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;   }&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;}&lt;/span&gt;&lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;

&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;If you want to develop a control for my framework you need to implement the IGUIControl interface for creating GUI controls, so it’s also the responsibility of the developer to Implement IGUIControl and configure it so Theme framework get that assembly. Here I only explain the static factory function of my framework that load all define assemblies from configuration file. Generic knowledge is prerequisite.&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;
&lt;/p&gt;&lt;table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #f3f3f3; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="1"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 6.15in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent" valign="top" width="590"&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;static&lt;/span&gt; T[] LoadInstances&amp;lt;T&amp;gt;() &lt;span style="COLOR: blue"&gt;where&lt;/span&gt; T : &lt;span style="COLOR: blue"&gt;class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;       {&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;           &lt;span style="COLOR: green"&gt;//You can use any other way read from configuration file.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;           &lt;span style="COLOR: green"&gt;//It utilize the .net 2.0 feature. The main target is to get all assemblies names.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;           &lt;span style="COLOR: teal"&gt;Settings&lt;/span&gt;.Default.Reload();&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;           &lt;span style="COLOR: teal"&gt;StringCollection&lt;/span&gt; TypeColl = &lt;span style="COLOR: teal"&gt;Settings&lt;/span&gt;.Default.Types;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;           &lt;span style="COLOR: teal"&gt;List&lt;/span&gt;&amp;lt;T&amp;gt; components = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; &lt;span style="COLOR: teal"&gt;List&lt;/span&gt;&amp;lt;T&amp;gt;();&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;           &lt;span style="COLOR: blue"&gt;foreach&lt;/span&gt; (&lt;span style="COLOR: blue"&gt;string&lt;/span&gt; TypeInfo &lt;span style="COLOR: blue"&gt;in&lt;/span&gt; TypeColl)&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;           {&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;               &lt;span style="COLOR: blue"&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;               {&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   &lt;span style="COLOR: blue"&gt;string&lt;/span&gt;[] typeInfo = TypeInfo.Split(&lt;span style="COLOR: maroon"&gt;','&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   &lt;span style="COLOR: blue"&gt;string&lt;/span&gt; assemblyName = typeInfo[1];&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   &lt;span style="COLOR: blue"&gt;string&lt;/span&gt; typeName = typeInfo[0];&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   &lt;span style="COLOR: blue"&gt;if&lt;/span&gt; (&lt;span style="COLOR: blue"&gt;string&lt;/span&gt;.IsNullOrEmpty(assemblyName) || &lt;span style="COLOR: blue"&gt;string&lt;/span&gt;.IsNullOrEmpty(typeName))&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   {&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                       &lt;span style="COLOR: blue"&gt;continue&lt;/span&gt;; &lt;span style="COLOR: green"&gt;// invalid type info&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   }&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   assemblyName = assemblyName.Trim();&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   typeName = typeName.Trim();&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   &lt;span style="COLOR: blue"&gt;string&lt;/span&gt; exeDir = &lt;span style="COLOR: teal"&gt;Path&lt;/span&gt;.GetDirectoryName(&lt;span style="COLOR: teal"&gt;Application&lt;/span&gt;.ExecutablePath);&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   &lt;span style="COLOR: blue"&gt;if&lt;/span&gt; (!&lt;span style="COLOR: teal"&gt;File&lt;/span&gt;.Exists(&lt;span style="COLOR: teal"&gt;Path&lt;/span&gt;.Combine(exeDir, assemblyName + &lt;span style="COLOR: maroon"&gt;".dll"&lt;/span&gt;)))&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   {&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                       &lt;span style="COLOR: blue"&gt;continue&lt;/span&gt;; &lt;span style="COLOR: green"&gt;// invalid type information&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   }&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   &lt;span style="COLOR: teal"&gt;Assembly&lt;/span&gt; assem = &lt;span style="COLOR: teal"&gt;Assembly&lt;/span&gt;.Load(typeInfo[1].Trim());&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   &lt;span style="COLOR: green"&gt;// Dynamic instance creation&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   T instance = assem.CreateInstance(typeInfo[0].Trim()) &lt;span style="COLOR: blue"&gt;as&lt;/span&gt; T;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   &lt;span style="COLOR: blue"&gt;if&lt;/span&gt; (instance != &lt;span style="COLOR: blue"&gt;null&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   {&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                       components.Add(instance);&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;                   }&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;               }&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;               &lt;span style="COLOR: blue"&gt;catch&lt;/span&gt;(&lt;span style="COLOR: teal"&gt;Exception&lt;/span&gt; ex)                   &lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;               { } &lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;           }&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;           &lt;span style="COLOR: blue"&gt;return&lt;/span&gt; components.ToArray();&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;       }&lt;/span&gt;&lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;

&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;In preceding code I use Settings.setting class for loading assembly’s names, you can use any other provider to get all custom assemblies names from configuration files. After that I try to find the give assembly in the application execution folder and load it into generic List&amp;lt;T&amp;gt; array. &lt;/span&gt; &lt;/div&gt;
&lt;p&gt;
&lt;/p&gt;&lt;table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #f3f3f3; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="1"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 6.15in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent" valign="top" width="590"&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #339966"&gt;IGUIControl&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;[] dogs = &lt;span style="COLOR: teal"&gt;FrameworkTest&lt;/span&gt;. LoadInstances&amp;lt;&lt;span style="COLOR: #339966"&gt;IGUIControl&lt;/span&gt;&amp;gt;();&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;         &lt;span style="COLOR: blue"&gt;foreach&lt;/span&gt; (&lt;span style="COLOR: #339966"&gt;IGUIControl&lt;/span&gt; control &lt;span style="COLOR: blue"&gt;in&lt;/span&gt; loadControls)&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;         {&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;             Control.Draw();&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;         }&lt;/span&gt;&lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;

&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font size="3"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;Above code snippet load all assemblies that implement &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #339966"&gt;IGUIControl &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: black"&gt;and call it&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #339966"&gt; Draw() &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: black"&gt;method to draw the entry control&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: black"&gt;.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124095"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124095" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/technetbytes/aggbug/124095.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Saqib Ullah</dc:creator>
            <guid>http://geekswithblogs.net/technetbytes/archive/2008/07/28/124095.aspx</guid>
            <pubDate>Tue, 29 Jul 2008 07:42:15 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/technetbytes/comments/124095.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/technetbytes/archive/2008/07/28/124095.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/technetbytes/comments/commentRss/124095.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/technetbytes/services/trackbacks/124095.aspx</trackback:ping>
        </item>
        <item>
            <title>Custom Visual Studio Visualizer</title>
            <link>http://geekswithblogs.net/technetbytes/archive/2008/06/11/122792.aspx</link>
            <description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Code debugging is one of the most important parts of any development life cycle because it gives you the technique to find the problem and how to resolve it. When we talk about the visual debugging Visual Studio has tremendous potential in the term visual debugging features in the form of DataTips. DataTips tool provide a handy way to view information about your variables in visual studio during debugging only. In old versions of Visual Studio DataTips were limited in the amount of the information they could display. Now in Visual Studio particularly after VS2005 DataTips have been enhanced to give more detail information about the simple and complex variables. By the help of DataTips tool programmer easily visualize different variable data types in their Visualizers. &lt;br /&gt;
&lt;br /&gt;
Visualizer is a new component in Visual Studio debugger user interface that give us a completely new way to view the structure of object or variable in a meaningful way. The first question that comes in your mind is what is actually Visualizer is all about and simple answer of this question is “&lt;strong style=""&gt;it’s a dialog box or other interface to display appropriate types in a meaningful way.&lt;/strong&gt;” Default Visual Studio debugger comes with four standards visulaizers and these are following&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: 0.5in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: 0.5in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;HTML&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: 0.5in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;XML visualizer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: 0.5in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Dataset &lt;span style="color: black;"&gt;visualizer &lt;/span&gt;(Dataset, DataTable and DataView objects.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;When a debugger variable show a magnifying glass icon on the variable so it’s mean it has an appropriate visualizer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;img width="569" height="178" alt="" src="/images/geekswithblogs_net/technetbytes/blogs.PNG" /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/v:path&gt;&lt;o:lock aspectratio="t" v:ext="edit"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" style="width: 426.75pt; height: 133.5pt;" type="#_x0000_t75"&gt;&lt;v:imagedata o:title="blogs" src="file:///C:\DOCUME~1\sullah\LOCALS~1\Temp\msohtml1\01\clip_image001.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;In the preceding figure Visual Studio debugger show a DataTable Visualizer when you click the magnifying glass icon debugger show datatable visualizer. &lt;br /&gt;
&lt;br /&gt;
In the following image I want to show image loading in the picture box in debug mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;img width="520" height="126" alt="" src="/images/geekswithblogs_net/technetbytes/blogswithvisual.PNG" /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;In the above image Visual Studio debugger not able to load image visualizer because there is no visualizer is available.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Ok this is an over view of very high level story and now I am going to write custom Image visualizer. Please follow the following steps.&lt;br style="" /&gt;
&lt;br style="" /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style=""&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Create a Class Library project in Visual C#.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style=""&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Name it “VisualDebugger”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style=""&gt;3.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Add following Assemblies References.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style=""&gt;a.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Microsoft.VisualStudio.DebuggerVisualizers.dll&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style=""&gt;b.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;System.Drawing.dll&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style=""&gt;c.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;System.Windows.Forms.dll&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style=""&gt;4.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Rename the class1 to ImageDebugger.cs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;span style=""&gt;5.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Copy the following codes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="0" border="1" class="MsoNormalTable" style="border: medium none ; margin: auto auto auto 23.4pt; background: rgb(243, 243, 243) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border-collapse: collapse;"&gt;
    &lt;tbody&gt;
        &lt;tr style="height: 3.75in;"&gt;
            &lt;td width="552" valign="top" style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 5.75in; height: 3.75in; background-color: transparent;"&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; System.Drawing;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; System.Windows.Forms;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; Microsoft.VisualStudio.DebuggerVisualizers;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;[&lt;span style="color: blue;"&gt;assembly&lt;/span&gt;: System.Diagnostics.&lt;span style="color: rgb(43, 145, 175);"&gt;DebuggerVisualizer&lt;/span&gt;(&lt;br /&gt;
            &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;font size="3"&gt;VisualDebugger.ImageDebugger&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;), &lt;br /&gt;
            &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;font size="3"&gt;VisualizerObjectSource&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;), &lt;br /&gt;
            Target = &lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;font size="3"&gt;System.Drawing.Image&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;), &lt;br /&gt;
            Description = &lt;/span&gt;&lt;/strong&gt;&lt;font size="3"&gt;&lt;strong style=""&gt;&lt;span style="color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;"Image Visualizer&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="color: rgb(163, 21, 21); font-family: &amp;quot;Courier New&amp;quot;;"&gt;"&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;)]&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;namespace&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; VisualDebugger&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;ImageDebugger&lt;/span&gt; : &lt;strong style=""&gt;&lt;span style="color: red;"&gt;Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer&lt;/span&gt;&lt;/strong&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; Show(Microsoft.VisualStudio.DebuggerVisualizers.&lt;span style="color: rgb(43, 145, 175);"&gt;IDialogVisualizerService&lt;/span&gt; windowService, Microsoft.VisualStudio.DebuggerVisualizers.&lt;span style="color: rgb(43, 145, 175);"&gt;IVisualizerObjectProvider&lt;/span&gt; objectProvider)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;System.Drawing.&lt;span style="color: rgb(43, 145, 175);"&gt;Image&lt;/span&gt; image = (&lt;span style="color: rgb(43, 145, 175);"&gt;Image&lt;/span&gt;)objectProvider.GetObject();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Form&lt;/span&gt; frm = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Form&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                &lt;/span&gt;frm.Text = &lt;span style="color: rgb(163, 21, 21);"&gt;"Custom Visualizer - "&lt;/span&gt; + image.HorizontalResolution.ToString() + &lt;span style="color: rgb(163, 21, 21);"&gt;" "&lt;/span&gt; + image.VerticalResolution.ToString(); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                &lt;/span&gt;frm.Width = image.Width;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                &lt;/span&gt;frm.Height = image.Height;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;PictureBox&lt;/span&gt; pic = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;PictureBox&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                &lt;/span&gt;pic.Image = image;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                &lt;/span&gt;pic.SizeMode = &lt;span style="color: rgb(43, 145, 175);"&gt;PictureBoxSizeMode&lt;/span&gt;.AutoSize;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;               &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;frm.Controls.Add(pic);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;frm.ShowDialog();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;Class should be inherited from &lt;/span&gt;&lt;span style="font-size: 8.5pt; color: red; font-family: Verdana;"&gt;Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer &lt;/span&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;and overrider the &lt;/span&gt;&lt;span style="font-size: 8.5pt; color: red; font-family: Verdana;"&gt;Show()&lt;/span&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt; method of DialogDebuggerVisualizer class to &lt;/span&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;display your custom interface&lt;/span&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;. The next most important and vital part of this visualizer is &lt;/span&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;IVisualizerObjectProvider&lt;span style="color: rgb(43, 145, 175);"&gt; &lt;/span&gt;parameter&lt;span style="color: rgb(43, 145, 175);"&gt; &lt;/span&gt;&lt;span style="color: black;"&gt;because you going to caste this interface into apporipate type and in my case it is &lt;strong style=""&gt;System.Drawing.Image&lt;/strong&gt; class(&lt;strong style=""&gt;&lt;em style=""&gt;it could be any thing like XML document, your specific class&lt;/em&gt;&lt;/strong&gt;). I used System.Windows.Form class to host my picture box control. One thing that you should keep in mind is apply DebuggerVisualizerAttribute on your class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;strong style=""&gt;&lt;u&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;Note:&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;br /&gt;
&lt;strong style=""&gt;First &lt;/strong&gt;parameter is your custom class, &lt;strong style=""&gt;Second&lt;/strong&gt; parameter is your visualizer source, &lt;strong style=""&gt;Third&lt;/strong&gt; parameter is target object type like XML Document and last is the description of visualizer. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-align: justify;"&gt;&lt;strong style=""&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;Deployment of Visualizer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 1.5pt 0in 1.5pt 3pt;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;Copy the DLL to either of the following locations:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 1.5pt 0in 1.5pt 21pt;"&gt;&lt;span class="placeholder"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;em&gt;Install path&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;font color="#000066"&gt;&lt;span class="code"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;\Microsoft Visual Studio 9\Common7\Packages\Debugger\Visualizers\&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 1.5pt 0in 1.5pt 21pt;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;—or—&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 1.5pt 0in 1.5pt 21pt;"&gt;&lt;font color="#000066"&gt;&lt;span class="code"&gt;&lt;span style="font-size: 8.5pt; font-family: Verdana;"&gt;My Documents\Visual Studio 2008\Visualizers\&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-align: justify;"&gt;&lt;strong style=""&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-align: justify;"&gt;&lt;strong style=""&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;Test Visualizer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;span style=""&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;Create a new application of Windows Forms Application &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;span style=""&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;Give it name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;span style=""&gt;3.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;And write the following code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.25in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table width="552" cellspacing="0" cellpadding="0" border="1" class="MsoNormalTable" style="border: medium none ; margin: auto auto auto 23.4pt; background: rgb(243, 243, 243) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 5.75in; border-collapse: collapse;"&gt;
    &lt;tbody&gt;
        &lt;tr style="height: 45pt;"&gt;
            &lt;td width="552" valign="top" style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 5.75in; height: 45pt; background-color: transparent;"&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Image&lt;/span&gt; img = &lt;span style="color: rgb(43, 145, 175);"&gt;Image&lt;/span&gt;.FromFile(&lt;span style="color: rgb(163, 21, 21);"&gt;@"C:\Documents and Settings\sullah\My Documents\My Pictures\ozzie1.jpg"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;PictureBox&lt;/span&gt; pic = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;PictureBox&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;pic.Image = img;&lt;/span&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.25in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;span style=""&gt;4.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;Set the Breakpoint on pic.Image = img;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.25in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;Following are the outputs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.25in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;v:shape id="_x0000_i1027" style="width: 6in; height: 112.5pt;" type="#_x0000_t75"&gt;&lt;v:imagedata o:title="blogswithimgvisual" src="file:///C:\DOCUME~1\sullah\LOCALS~1\Temp\msohtml1\01\clip_image005.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;img width="650" height="169" alt="" src="/images/geekswithblogs_net/technetbytes/blogswithimgvisual.PNG" /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;br /&gt;
You can clearly see the new Image Visualizer in the preceding image and click on the magnifying glass icon and get output.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;img alt="" src="/images/geekswithblogs_net/technetbytes/blogsimgvisualoutput.PNG" /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.25in; text-align: justify;"&gt;&lt;span style="font-size: 8.5pt; color: black; font-family: Verdana;"&gt;&lt;v:shape id="_x0000_i1028" style="width: 6in; height: 210pt;" type="#_x0000_t75"&gt;&lt;v:imagedata o:title="blogsimgvisualoutput" src="file:///C:\DOCUME~1\sullah\LOCALS~1\Temp\msohtml1\01\clip_image007.png"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122792"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122792" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/technetbytes/aggbug/122792.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Saqib Ullah</dc:creator>
            <guid>http://geekswithblogs.net/technetbytes/archive/2008/06/11/122792.aspx</guid>
            <pubDate>Wed, 11 Jun 2008 12:37:15 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/technetbytes/comments/122792.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/technetbytes/archive/2008/06/11/122792.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/technetbytes/comments/commentRss/122792.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/technetbytes/services/trackbacks/122792.aspx</trackback:ping>
        </item>
        <item>
            <title>Visual Studio 2008 SP 1 Bug</title>
            <link>http://geekswithblogs.net/technetbytes/archive/2008/06/05/122659.aspx</link>
            <description>&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8pt"&gt;&lt;font face="Verdana" color="#ff0000"&gt;&lt;strong&gt;I found a bug in Visual Studio 2008 SP 1 when I installed it on my VS 2008. Basically the problem is when you install VS 2008 SP 1 its override the setting of your Visual Studio 2008 and set to default setting.&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8pt"&gt;&lt;font face="Verdana"&gt;&lt;u&gt;Solution:&lt;br /&gt;
&lt;/u&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 8pt"&gt;&lt;font face="Verdana" color="#0000ff"&gt;The solution of this problem is very simple you first export the setting of Visual Studio 2008 from Tools-&amp;gt; Imports and Exports Setting and save it on your desire location. Install the Visual Studio 2008 SP1 on VS 2008 and imports the setting again into VS 2008.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122659"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122659" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/technetbytes/aggbug/122659.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Saqib Ullah</dc:creator>
            <guid>http://geekswithblogs.net/technetbytes/archive/2008/06/05/122659.aspx</guid>
            <pubDate>Fri, 06 Jun 2008 06:35:59 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/technetbytes/comments/122659.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/technetbytes/archive/2008/06/05/122659.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/technetbytes/comments/commentRss/122659.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/technetbytes/services/trackbacks/122659.aspx</trackback:ping>
        </item>
        <item>
            <title>.NET Framework Client Profile</title>
            <link>http://geekswithblogs.net/technetbytes/archive/2008/06/05/122643.aspx</link>
            <description>&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Oop .NET Framework Client Profile was a great reply from .Net team because it’s full fill the need of those customers how are wary and ask questions from Microsoft for small .Net framework for its client application deployment. One thing that I want mention here is .Net Framework Client Profile is a subset of .Net 3.5 and it’s available in .Net Framework 3.5 SP1. &lt;a href="http://download.microsoft.com/download/8/f/c/8fc1fe13-55de-4bf5-b43e-375daf01452e/dotNetFx35setup.exe"&gt;Download&lt;/a&gt; .Net Framework Client Profile is came into begin with following things keep in minds.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Small framework runtime.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;/li&gt;
    &lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Smart, faster application deployment.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;/li&gt;
    &lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Client Application focused feature set: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="MARGIN-LEFT: 1in; TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'"&gt;&lt;span&gt;o&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Common Language Runtime (CLR) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="MARGIN-LEFT: 1in; TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'"&gt;&lt;span&gt;o&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;ClickOnce&lt;span&gt;  &lt;/span&gt;application deployment &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="MARGIN-LEFT: 1in; TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'"&gt;&lt;span&gt;o&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Windows Forms &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="MARGIN-LEFT: 1in; TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'"&gt;&lt;span&gt;o&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;WPF &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpLast" style="MARGIN-LEFT: 1in; TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'"&gt;&lt;span&gt;o&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;WCF&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="TEXT-ALIGN: center"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;img alt="" src="/images/geekswithblogs_net/technetbytes/netprofile.png" /&gt;&lt;br /&gt;
&lt;span style="COLOR: rgb(255,0,0); FONT-STYLE: italic; TEXT-DECORATION: underline"&gt;Fig.1 .Net Framework Client Profile&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Beta release of .Net 3.5 Sp1 contains the following assemblies in the Client Profile.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;BCL, "Core FX," and LINQ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 1in"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;CustomMarshalers&lt;br /&gt;
ISymWrapper&lt;br /&gt;
mscorlib&lt;br /&gt;
sysglobl&lt;br /&gt;
System&lt;br /&gt;
System.AddIn&lt;br /&gt;
System.AddIn.Contract&lt;br /&gt;
System.Configuration&lt;br /&gt;
System.Configuration.Install&lt;br /&gt;
System.Core&lt;br /&gt;
System.Security&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Visual Basic and Visual C++ Language Support&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 1in"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Microsoft.VisualBasic&lt;br /&gt;
Microsoft.VisualC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;XML&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 1in"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;System.Xml&lt;br /&gt;
System.Xml.Linq&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Windows Forms&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 1in"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Accessibility&lt;br /&gt;
System.Drawing&lt;br /&gt;
System.Windows.Forms&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;WPF&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 1in"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;PresentationCore&lt;br /&gt;
PresentationFramework&lt;br /&gt;
PresentationFramework.Aero&lt;br /&gt;
PresentationFramework.Classic&lt;br /&gt;
PresentationFramework.Luna&lt;br /&gt;
PresentationFramework.Royale&lt;br /&gt;
PresentationUI&lt;br /&gt;
ReachFramework&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 1in"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;System.Printing&lt;br /&gt;
System.Windows.Presentation&lt;br /&gt;
UIAutomationClient&lt;br /&gt;
UIAutomationClientsideProviders&lt;br /&gt;
UIAutomationProvider&lt;br /&gt;
UIAutomationTypes&lt;br /&gt;
WindowsBase&lt;br /&gt;
WindowsFormsIntegration&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;ClickOnce&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 1in"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;System.Deployment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;WCF, Web Services, Remoting, and Serialization&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 1in"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;System.IdentityModel&lt;br /&gt;
System.Runtime.Remoting&lt;br /&gt;
System.Runtime.Serialization&lt;br /&gt;
System.Runtime.Serialization.Formatters.Soap&lt;br /&gt;
System.ServiceModel&lt;br /&gt;
System.ServiceModel.Web&lt;br /&gt;
System.ServiceModel.Install&lt;br /&gt;
System.Transactions&lt;br /&gt;
System.Web.Services&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Data Access&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 1in"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;System.Data&lt;br /&gt;
System.Data.SqlXml&lt;br /&gt;
System.Data.DataSetExtensions&lt;br /&gt;
System.Data.Services.Client&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Peer to Peer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 0.5in; TEXT-INDENT: 0.5in"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;System.Net&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: Symbol"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Active Directory and Enterprise Services&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 1in"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;System.DirectoryServices&lt;br /&gt;
System.EnterpriseServices&lt;br /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Above assemblies are necessary assemblies for any .Net application, so that why all of them are available in .Net Framework Client Profile  according to the .Net team.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122643"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122643" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/technetbytes/aggbug/122643.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Saqib Ullah</dc:creator>
            <guid>http://geekswithblogs.net/technetbytes/archive/2008/06/05/122643.aspx</guid>
            <pubDate>Thu, 05 Jun 2008 19:18:36 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/technetbytes/comments/122643.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/technetbytes/archive/2008/06/05/122643.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/technetbytes/comments/commentRss/122643.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/technetbytes/services/trackbacks/122643.aspx</trackback:ping>
        </item>
        <item>
            <title>Create AJAX-Enable WCF Service</title>
            <link>http://geekswithblogs.net/technetbytes/archive/2008/05/29/122496.aspx</link>
            <description>&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;One of the greatest features of WCF 3.5 is direct accessibility of WCF Service on ASP.Net page. Before that there is no direct way to call WCF 3.0 Service on ASP.Net page and you have to create a communication bridge in the form of Web service. Here you find on my blogs how to call AJAX-Enable WCF service from ASP.Net page.&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;Here is my interface called IoperationService and its implementation class OperationService.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="0" border="1" class="MsoTableGrid" style="border: medium none ; background: rgb(221, 221, 221) none repeat scroll 0% 50%; width: 639px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border-collapse: collapse; height: 276px;"&gt;
    &lt;tbody&gt;
        &lt;tr style=""&gt;
            &lt;td width="607" valign="top" style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 455.4pt;"&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&lt;span style=""&gt;   &lt;/span&gt;namespace AJAXEnableServices&lt;br /&gt;
            &lt;span style=""&gt;   &lt;/span&gt;{&lt;span style=""&gt;           &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&lt;span style=""&gt;            &lt;/span&gt;[ServiceContract(Namespace =   "AJAXServices")]&lt;span style=""&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&lt;span style=""&gt;            &lt;/span&gt;public interface IOperationService&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;{&lt;br /&gt;
            &lt;span style=""&gt;                 &lt;/span&gt;[OperationContract]&lt;span style=""&gt;      &lt;/span&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style=""&gt;     &lt;br /&gt;
                        &lt;/span&gt;&lt;span style=""&gt;     &lt;/span&gt;long Add(long x,int y);&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;br /&gt;
            &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;[AspNetCompatibilityRequirements(RequirementsMode   = AspNetCompatibilityRequirementsMode.Allowed)]&lt;br /&gt;
            public   class OperationService : IOperationService&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;{&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;public   long Add(long x,int y)&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;return x + y;&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;br /&gt;
            &lt;span style=""&gt;        &lt;/span&gt;&lt;span style=""&gt;     &lt;/span&gt;}&lt;br /&gt;
            &lt;span style=""&gt;  &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;Save the preceding code in "AJAXEnableService.cs" file.&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;The AspNetCompatibilityRequirements attribute apply on the WCF service to make it ASP.Net Compatible code. At runtime, application can detect if ASP.Net compatibility mode is enabled by checking the value of the static property AspNetCompatibilityEnabled. By default AspNetCompatibilityRequirements RequirementsMode is set on NotAllowed.&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;Create a file with .svc extension and add the following line of code that allow the WCF Service to call on HTTP.&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="0" border="1" class="MsoNormalTable" style="border: medium none ; background: rgb(221, 221, 221) none repeat scroll 0% 50%; width: 632px; margin-left: 5.4pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border-collapse: collapse; height: 14px;"&gt;
    &lt;tbody&gt;
        &lt;tr style="height: 9pt;"&gt;
            &lt;td width="600" valign="top" style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.25in; height: 9pt;"&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&amp;lt;%@ServiceHost   language=c# Debug="true"   Service="AJAXEnableServices.OperationService" %&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;Save it OperationService.svc.&lt;o:p&gt;&lt;/o:p&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;Now it a time to call our WCF service from client side, so we need to an Default.aspx page.&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="0" border="1" class="MsoNormalTable" style="border: medium none ; background: rgb(221, 221, 221) none repeat scroll 0% 50%; width: 632px; margin-left: 5.4pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; border-collapse: collapse; height: 706px;"&gt;
    &lt;tbody&gt;
        &lt;tr style="height: 9pt;"&gt;
            &lt;td width="600" valign="top" style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.25in; height: 9pt;"&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&amp;lt;html   xmlns="http://www.w3.org/1999/xhtml" &amp;gt;&lt;br /&gt;
            &amp;lt;head   runat="server"&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;    &lt;/span&gt;&amp;lt;title&amp;gt;WCF Service Test   Page.&amp;lt;/title&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
            &amp;lt;script   language="javascript" type="text/javascript"&amp;gt;&lt;o:p&gt;&lt;br /&gt;
            &lt;/o:p&gt;&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;function callService()&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style=""&gt;       &lt;/span&gt;var n1 =   document.getElementById("num1").value;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style=""&gt;           &lt;/span&gt;var   n2 = document.getElementById("num2").value;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt;                  &lt;/span&gt;var   service = new AJAXEnableServices.OperationService();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&lt;span style=""&gt;                   &lt;/span&gt;service.Add(parseFloat(n1),   parseFloat(n2), onSuccess, null, null);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&lt;span style=""&gt;             &lt;/span&gt;}&lt;o:p&gt; &lt;br /&gt;
            &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&lt;span style=""&gt;            &lt;/span&gt;function onSuccess(result)&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&lt;span style=""&gt;                   &lt;/span&gt;document.getElementById("result").value   = result;&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&amp;lt;/script&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
            &amp;lt;/head&amp;gt;&lt;o:p&gt; &lt;br /&gt;
            &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&amp;lt;body&amp;gt;&lt;o:p&gt;&lt;br /&gt;
            &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;&lt;span style=""&gt;    &lt;/span&gt;&amp;lt;form id="form1"   runat="server"&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;    &lt;/span&gt;&amp;lt;div&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;    &lt;/span&gt;&amp;lt;h1&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;        &lt;/span&gt;AJAX-Enable WCF Service Client   Page&amp;lt;/h1&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;    &lt;/span&gt;&amp;lt;p&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;        &lt;/span&gt;First Number:&lt;br /&gt;
            &lt;span style=""&gt;        &lt;/span&gt;&amp;lt;input type="text"   id="num1" /&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;    &lt;/span&gt;&amp;lt;p&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;        &lt;/span&gt;Second Number:&lt;br /&gt;
            &lt;span style=""&gt;        &lt;/span&gt;&amp;lt;input type="text"   id="num2" /&amp;gt;&amp;lt;/p&amp;gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;o:p&gt;&lt;br /&gt;
            &lt;span style=""&gt;    &lt;/span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;   &lt;/span&gt;&amp;lt;div&amp;gt;&lt;span style=""&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt;Result:&lt;br /&gt;
            &lt;span style=""&gt;        &lt;/span&gt;&amp;lt;input type="text"   id="result" /&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;    &lt;/span&gt;&amp;lt;asp:ScriptManager   ID="ScriptManager1" runat="server"&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;        &lt;/span&gt;&amp;lt;services&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;            &lt;/span&gt;&amp;lt;asp:servicereference   Path="OperationService.svc" /&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;        &lt;/span&gt;&amp;lt;/services&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;    &lt;/span&gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;    &lt;/span&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;    &lt;/span&gt;&amp;lt;p&amp;gt;&lt;br /&gt;
            &lt;span style=""&gt;        &lt;/span&gt;&amp;lt;input id="Button1"   type="button" value="Price for 3 Sandwiches"   onclick="return callService()" /&amp;gt;&lt;br /&gt;
            &amp;lt;/p&amp;gt;&lt;br /&gt;
            &amp;lt;/body&amp;gt;&lt;br /&gt;
            &amp;lt;/html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;In the end call the Default.aspx page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122496"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122496" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/technetbytes/aggbug/122496.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Saqib Ullah</dc:creator>
            <guid>http://geekswithblogs.net/technetbytes/archive/2008/05/29/122496.aspx</guid>
            <pubDate>Fri, 30 May 2008 08:21:58 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/technetbytes/comments/122496.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/technetbytes/archive/2008/05/29/122496.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/technetbytes/comments/commentRss/122496.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/technetbytes/services/trackbacks/122496.aspx</trackback:ping>
        </item>
        <item>
            <title>Implement events through interface in C#</title>
            <link>http://geekswithblogs.net/technetbytes/archive/2008/04/07/121110.aspx</link>
            <description>&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8pt"&gt;&lt;font face="Verdana"&gt;According to C# specification interface contain a signature of events but a complete and brief implementation of events through interface is not available on the net.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Verdana"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8pt"&gt;&lt;font face="Verdana"&gt;First you identify the interface&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #dddddd; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="1"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 6.15in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent" valign="top" width="590"&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;    public interface IControl&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;    {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        &lt;font color="#339966"&gt;// Raise this event.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        event EventHandler OnCommand;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8pt"&gt;&lt;font face="Verdana"&gt;According to my need I create a class that inherit from System.EventArgs&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #dddddd; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="1"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 6.15in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent" valign="top" width="590"&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;    public class CommandArgs : EventArgs&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;    {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        public string CommandName;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8pt"&gt;&lt;font face="Verdana"&gt;My OutCommand class is a implementation of IControl interface that contain an OnCommand event.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #dddddd; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="1"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 6.15in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent" valign="top" width="590"&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;public class OutCommnad : IControl&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;    {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        public OutCommnad()&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        {}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt; &lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        &lt;font color="#339966"&gt;// Create an event from interface event&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        event EventHandler CommandEvent;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        event EventHandler IControl.OnCommand&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;            add&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;            {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                if (CommandEvent != null)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                    lock (CommandEvent)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                    {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                        CommandEvent += value;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                else&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                    CommandEvent = new EventHandler(value);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;            }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;            remove&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;            {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                if (CommandEvent != null)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                    lock (CommandEvent)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                    {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                        CommandEvent -= value;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;                }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;            }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt; &lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        public void Command()&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;        {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;            EventHandler handler = CommandEvent;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;            if (handler != null)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;            {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;                &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #339966"&gt;//My custom class that passed as arguments.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;&lt;font face="Courier New"&gt;                CommandArgs cmd = new CommandArgs();&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Courier New"&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;                cmd.CommandName = "Test Application event."&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;;&lt;/span&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;                &lt;span style="COLOR: blue"&gt;handler(this&lt;/span&gt;, &lt;strong&gt;&lt;span style="COLOR: red"&gt;cmd&lt;/span&gt;&lt;/strong&gt;&lt;span style="COLOR: blue"&gt;);&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;            }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;        }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;font face="Courier New"&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 8pt"&gt;&lt;font face="Verdana"&gt;Calling of IControl.OnCommand event.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #dddddd; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="1"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 6.15in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent" valign="top" width="590"&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;    OutCommnad outCommand = new OutCommnad();&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;    IControl con = (IControl)outCommand;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;    &lt;strong&gt;con.OnCommand +=new EventHandler(con_OnCommand);&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&lt;font face="Courier New"&gt;    outCommand.Command();&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;br /&gt;
&lt;span style="FONT-SIZE: 8pt"&gt;&lt;font face="Verdana"&gt;IControl.OnCommand event function.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #dddddd; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="1"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 6.15in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent" valign="top" width="590"&gt;
            &lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span st