<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Saqib Ullah</title>
	<atom:link href="http://technetbytes.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://technetbytes.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 07 Nov 2008 07:17:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='technetbytes.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Saqib Ullah</title>
		<link>http://technetbytes.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://technetbytes.wordpress.com/osd.xml" title="Saqib Ullah" />
	<atom:link rel='hub' href='http://technetbytes.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Difference between Netmodule and Assembly file</title>
		<link>http://technetbytes.wordpress.com/2008/11/07/difference-between-netmodule-and-assembly-file/</link>
		<comments>http://technetbytes.wordpress.com/2008/11/07/difference-between-netmodule-and-assembly-file/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 07:17:10 +0000</pubDate>
		<dc:creator>technetbytes</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://technetbytes.wordpress.com/?p=21</guid>
		<description><![CDATA[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.   using System;   public class CSharpHelloWorld {       public CSharpHelloWorld() {}         ///&#60;summary&#62;       ///       ///&#60;/summary&#62;       [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=21&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="postText">
<div style="margin:0;"><span style="font-size:8.5pt;"><span style="font-family:Verdana;">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. </span></span></div>
<div style="margin:0;"><span style="font-family:Verdana;"> </span></div>
<table style="background:#eaeaea;border-collapse:collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width:6.15in;background-color:transparent;border:windowtext 1pt solid;padding:0 5.4pt;" width="590" valign="top">
<div style="margin:0;"><span style="font-family:Verdana;"><span style="font-size:10pt;color:blue;">using</span><span style="font-size:10pt;"> <span style="color:#010001;">System</span>;</span></span></div>
<div style="margin:0;"><span style="font-family:Verdana;"> </span></div>
<div style="margin:0;"><span style="font-family:Verdana;"><span style="font-size:10pt;color:blue;">public</span><span style="font-size:10pt;"> <span style="color:blue;">class</span> <span style="color:#2b91af;">CSharpHelloWorld</span></span></span></div>
<div style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Verdana;">{</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Verdana;">      <span style="color:blue;">public</span> <span style="color:#010001;">CSharpHelloWorld</span>() {}</span></span></div>
<div style="margin:0;"><span style="font-family:Verdana;"> </span></div>
<div style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Verdana;">      <span style="color:gray;">///</span><span style="color:gray;">&lt;summary&gt;</span></span></span></div>
<div style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Verdana;">      <span style="color:gray;">///</span></span></span></div>
<div style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Verdana;">      <span style="color:gray;">///</span><span style="color:gray;">&lt;/summary&gt;</span></span></span></div>
<div style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Verdana;">      <span style="color:blue;">public</span> <span style="color:blue;">void</span> <span style="color:#010001;">displayHelloWorld</span>() </span></span></div>
<div style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Verdana;">      {</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Verdana;">            <span style="color:#2b91af;">Console</span>.<span style="color:#010001;">WriteLine</span>(<span style="color:#a31515;">&#8220;Hello World, from C#!&#8221;</span>);</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Verdana;">      }</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Verdana;">}</span></span></div>
</td>
</tr>
</tbody>
</table>
<div style="margin:0;"><span style="font-family:Verdana;"> </span></div>
<div style="margin:0;"><strong><span style="font-size:8.5pt;"><span style="font-family:Verdana;">.Net Assembly File</span></span></strong></div>
<div style="margin:0;"><span style="font-size:8.5pt;"><span style="font-family:Verdana;">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.</span></span></div>
<div style="margin:0;"><span style="font-size:8.5pt;"></span><a href="http://geekswithblogs.net/images/geekswithblogs_net/technetbytes/assembly.PNG"><img class="alignnone" src="http://geekswithblogs.net/images/geekswithblogs_net/technetbytes/assembly.PNG" alt="" width="950" height="514" /></a> </div>
<div style="margin:0;"></div>
<div style="margin:0;"><span style="font-size:xx-small;font-family:Verdana;"><em>Figure 1: [<span style="color:#2b91af;">CSharpHelloWorld.dll</span>] Contain assembly manifest and metadata </em></span></div>
<div style="margin:0;"> </div>
<div style="margin:0;"><strong><span style="font-size:8.5pt;"><span style="font-family:Verdana;">Netmodule File</span></span></strong></div>
<div style="margin:0;"><span style="font-size:8.5pt;"><span style="font-family:Verdana;">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].</span></span></div>
<div style="margin:0;"><span style="font-family:Verdana;"> <a href="http://geekswithblogs.net/images/geekswithblogs_net/technetbytes/netmodule.PNG"><img class="alignnone" src="http://geekswithblogs.net/images/geekswithblogs_net/technetbytes/netmodule.PNG" alt="" width="667" height="245" /></a></span></div>
<div style="margin:0;"><span style="font-family:Verdana;"><span style="font-size:xx-small;font-family:Verdana;"><em>Figure 2: [<span style="color:#2b91af;">CSharpHelloWorld.netmodule</span>] Contain only metadata information.</em></span></span></div>
<div style="margin:0;"><em></em> </div>
<div style="margin:0;"><span style="font-size:8.5pt;"><span style="font-family:Verdana;">Note:- </span></span></div>
<div style="margin:0;"><span style="font-size:8.5pt;"><span style="font-family:Verdana;">            Type the following command on Visual Studio Command prompt to generate netmodule file</span></span></div>
<div style="margin:0;"><span style="font-size:8.5pt;"><span style="font-family:Verdana;">            <strong>csc.exe /t:module HelloWorld.cs                                </strong></span></span></div>
<div style="margin:0;"><span style="font-size:8.5pt;"><strong></strong></span></div>
<div style="margin:0;"><span style="font-size:8.5pt;"><span style="color:#ff0000;font-family:Verdana;"><span style="color:#000000;">            This blog contain only initial level of information.</span> *</span></span></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technetbytes.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technetbytes.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technetbytes.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technetbytes.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technetbytes.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technetbytes.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technetbytes.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technetbytes.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technetbytes.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technetbytes.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technetbytes.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technetbytes.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technetbytes.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technetbytes.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=21&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technetbytes.wordpress.com/2008/11/07/difference-between-netmodule-and-assembly-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/921184b38ccb8c453fdc0d2808a2b72c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">technetbytes</media:title>
		</media:content>

		<media:content url="http://geekswithblogs.net/images/geekswithblogs_net/technetbytes/assembly.PNG" medium="image" />

		<media:content url="http://geekswithblogs.net/images/geekswithblogs_net/technetbytes/netmodule.PNG" medium="image" />
	</item>
		<item>
		<title>SOA Definition Confusion</title>
		<link>http://technetbytes.wordpress.com/2008/08/19/soa-definition-confusion/</link>
		<comments>http://technetbytes.wordpress.com/2008/08/19/soa-definition-confusion/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 14:02:14 +0000</pubDate>
		<dc:creator>technetbytes</dc:creator>
				<category><![CDATA[SOA]]></category>

		<guid isPermaLink="false">http://technetbytes.wordpress.com/?p=16</guid>
		<description><![CDATA[After view and review of dozens of dozens of blogs and articles about SOA I concluded that lot of bloggers and writers still defining SOA (Service Oriented Architecture) definition with their own way and every definition are perfect with the respect of respective environments. I want to define SOA in my own words. “SOA is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=16&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana;">After view and review of dozens of dozens of blogs and articles about SOA I concluded that lot of bloggers and writers still defining SOA (Service Oriented Architecture) definition with their own way and every definition are perfect with the respect of respective environments. I want to define SOA in my own words.<br />
</span></p>
<table class="MsoTableGrid" style="border:medium none;background:#e0e0e0 none repeat scroll 0 0;border-collapse:collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width:6.15in;border:windowtext 1pt solid;padding:0 5.4pt;" width="590" valign="top">
<p class="MsoNormal" style="text-align:center;" align="center"><span style="font-size:10pt;font-family:Verdana;">“SOA is all about the granularity of Organization IT assets.”</span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="text-align:justify;"><span style="font-size:10pt;font-family:Verdana;">If assets are coarse-grained its mean greater flexibility and reusability of assets across different organization department internally and by external business partners as well. In short term all services should be coarse-grained rather then fine-grain. By coarse-grained we achieve loose coupling between services. </span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/technetbytes.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/technetbytes.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technetbytes.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technetbytes.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technetbytes.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technetbytes.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technetbytes.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technetbytes.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technetbytes.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technetbytes.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technetbytes.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technetbytes.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technetbytes.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technetbytes.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technetbytes.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technetbytes.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=16&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technetbytes.wordpress.com/2008/08/19/soa-definition-confusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/921184b38ccb8c453fdc0d2808a2b72c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">technetbytes</media:title>
		</media:content>
	</item>
		<item>
		<title>SOA Dimensions</title>
		<link>http://technetbytes.wordpress.com/2008/08/12/soa-dimensions/</link>
		<comments>http://technetbytes.wordpress.com/2008/08/12/soa-dimensions/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 07:44:50 +0000</pubDate>
		<dc:creator>technetbytes</dc:creator>
				<category><![CDATA[SOA]]></category>

		<guid isPermaLink="false">http://technetbytes.wordpress.com/?p=11</guid>
		<description><![CDATA[Analysts and architects should consider the following point when they go for SOA project. Not only create pieces of software (try to break up systems into reusable services).  Select best practices from organizational and technical sides.  Apply new thinking and best practices into project.  Select mature technologies (design models, messaging and architecture services).  Create business-oriented [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=11&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="margin:0;"><span style="font-size:10pt;">Analysts and architects should consider the following point when they go for SOA project.</span></div>
<ul>
<li>
<div style="margin:0;"><span style="font-size:10pt;">Not only create pieces of software (try to break up systems into reusable services).</span> </div>
</li>
<li>
<div style="margin:0;"><span style="font-size:10pt;">Select best practices from organizational and technical sides.</span> </div>
</li>
<li>
<div style="margin:0;"><span style="font-size:10pt;">Apply new thinking and best practices into project.</span> </div>
</li>
<li>
<div style="margin:0;"><span style="font-size:10pt;">Select mature technologies (design models, messaging and architecture services).</span> </div>
</li>
<li>
<div style="margin:0;"><span style="font-size:10pt;">Create business-oriented services, later will be utilized in enterprises. </span></div>
</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/technetbytes.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/technetbytes.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technetbytes.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technetbytes.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technetbytes.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technetbytes.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technetbytes.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technetbytes.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technetbytes.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technetbytes.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technetbytes.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technetbytes.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technetbytes.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technetbytes.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technetbytes.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technetbytes.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=11&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technetbytes.wordpress.com/2008/08/12/soa-dimensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/921184b38ccb8c453fdc0d2808a2b72c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">technetbytes</media:title>
		</media:content>
	</item>
		<item>
		<title>Allow your framework to load custom assemblies</title>
		<link>http://technetbytes.wordpress.com/2008/07/28/allow-your-framework-to-load-custom-assemblies/</link>
		<comments>http://technetbytes.wordpress.com/2008/07/28/allow-your-framework-to-load-custom-assemblies/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 07:44:59 +0000</pubDate>
		<dc:creator>technetbytes</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://technetbytes.wordpress.com/?p=14</guid>
		<description><![CDATA[Hello geeks after a long gap I come back with a very arousing blog. When ever you see .Net Framework or any Microsoft patterns &#38; 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 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=14&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="margin:0;"><span style="font-size:10pt;">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; 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.</span></div>
<div style="margin:0;"> </div>
<div style="margin:0;"><span style="font-size:10pt;">    &lt;formatters&gt;</span></div>
<div style="margin:0;"><span style="font-size:10pt;">      &lt;add template=&#8221;" type=&#8221;Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null&#8221;</span></div>
<div style="margin:0;"><span style="font-size:10pt;">           name=&#8221;Text Formatter&#8221; /&gt;</span></div>
<div style="margin:0;"><span style="font-size:10pt;">    &lt;/formatters&gt;</span></div>
<div style="margin:0;"> </div>
<div style="margin:0;"><span style="font-size:10pt;">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. <br />
</span> </div>
<div style="margin:0;"><span style="font-size:10pt;">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 <span style="color:#339966;">IGUIControl</span>.</span> </div>
<p> </p>
<table style="background:#f3f3f3;border-collapse:collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width:6.15in;background-color:transparent;border:windowtext 1pt solid;padding:0 5.4pt;" width="590" valign="top">
<div style="margin:0;"><span style="font-size:10pt;color:blue;">namespace</span><span style="font-size:10pt;"> ThemeFramework</span></div>
<div style="margin:0;"><span style="font-size:10pt;">{</span></div>
<div style="margin:0;"><span style="font-size:10pt;">   <span style="color:blue;">public</span> <span style="color:blue;">interface</span> <span style="color:teal;">IGUIControl</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;">   {</span></div>
<div style="margin:0;"><span style="font-size:10pt;">      void Render();</span></div>
<div style="margin:0;"><span style="font-size:10pt;">      void Draw(); </span></div>
<div style="margin:0;"><span style="font-size:10pt;">   }</span></div>
<div style="margin:0;"><span style="font-size:10pt;">}</span></div>
</td>
</tr>
</tbody>
</table>
<div style="margin:0;"><span style="font-size:10pt;">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.</span> </div>
<p> </p>
<table style="background:#f3f3f3;border-collapse:collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width:6.15in;background-color:transparent;border:windowtext 1pt solid;padding:0 5.4pt;" width="590" valign="top">
<div style="margin:0;"><span style="font-size:10pt;color:blue;">public</span><span style="font-size:10pt;"> <span style="color:blue;">static</span> T[] LoadInstances&lt;T&gt;() <span style="color:blue;">where</span> T : <span style="color:blue;">class</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;">       {</span></div>
<div style="margin:0;"><span style="font-size:10pt;">           <span style="color:green;">//You can use any other way read from configuration file.</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;">           <span style="color:green;">//It utilize the .net 2.0 feature. The main target is to get all assemblies names.</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;">           <span style="color:teal;">Settings</span>.Default.Reload();</span></div>
<div style="margin:0;"><span style="font-size:10pt;">           <span style="color:teal;">StringCollection</span> TypeColl = <span style="color:teal;">Settings</span>.Default.Types;</span></div>
<div style="margin:0;"> </div>
<div style="margin:0;"><span style="font-size:10pt;">           <span style="color:teal;">List</span>&lt;T&gt; components = <span style="color:blue;">new</span> <span style="color:teal;">List</span>&lt;T&gt;();</span></div>
<div style="margin:0;"> </div>
<div style="margin:0;"><span style="font-size:10pt;">           <span style="color:blue;">foreach</span> (<span style="color:blue;">string</span> TypeInfo <span style="color:blue;">in</span> TypeColl)</span></div>
<div style="margin:0;"><span style="font-size:10pt;">           {</span></div>
<div style="margin:0;"><span style="font-size:10pt;">               <span style="color:blue;">try</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;">               {</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   <span style="color:blue;">string</span>[] typeInfo = TypeInfo.Split(<span style="color:maroon;">&#8216;,&#8217;</span>);</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   <span style="color:blue;">string</span> assemblyName = typeInfo[1];</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   <span style="color:blue;">string</span> typeName = typeInfo[0];</span></div>
<div style="margin:0;"> </div>
<div style="margin:0;"><span style="font-size:10pt;">                   <span style="color:blue;">if</span> (<span style="color:blue;">string</span>.IsNullOrEmpty(assemblyName) || <span style="color:blue;">string</span>.IsNullOrEmpty(typeName))</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   {</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                       <span style="color:blue;">continue</span>; <span style="color:green;">// invalid type info</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   }</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   assemblyName = assemblyName.Trim();</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   typeName = typeName.Trim();</span></div>
<div style="margin:0;"> </div>
<div style="margin:0;"><span style="font-size:10pt;">                   <span style="color:blue;">string</span> exeDir = <span style="color:teal;">Path</span>.GetDirectoryName(<span style="color:teal;">Application</span>.ExecutablePath);</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   <span style="color:blue;">if</span> (!<span style="color:teal;">File</span>.Exists(<span style="color:teal;">Path</span>.Combine(exeDir, assemblyName + <span style="color:maroon;">&#8220;.dll&#8221;</span>)))</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   {</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                       <span style="color:blue;">continue</span>; <span style="color:green;">// invalid type information</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   }</span></div>
<div style="margin:0;"> </div>
<div style="margin:0;"><span style="font-size:10pt;">                   <span style="color:teal;">Assembly</span> assem = <span style="color:teal;">Assembly</span>.Load(typeInfo[1].Trim());</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   <span style="color:green;">// Dynamic instance creation</span></span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   T instance = assem.CreateInstance(typeInfo[0].Trim()) <span style="color:blue;">as</span> T;</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   <span style="color:blue;">if</span> (instance != <span style="color:blue;">null</span>)</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   {</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                       components.Add(instance);</span></div>
<div style="margin:0;"><span style="font-size:10pt;">                   }</span></div>
<div style="margin:0;"><span style="font-size:10pt;">               }</span></div>
<div style="margin:0;"><span style="font-size:10pt;">               <span style="color:blue;">catch</span>(<span style="color:teal;">Exception</span> ex)                   </span></div>
<div style="margin:0;"><span style="font-size:10pt;">               { } </span></div>
<div style="margin:0;"><span style="font-size:10pt;">           }</span></div>
<div style="margin:0;"><span style="font-size:10pt;">           <span style="color:blue;">return</span> components.ToArray();</span></div>
<div style="margin:0;"><span style="font-size:10pt;">       }</span></div>
</td>
</tr>
</tbody>
</table>
<div style="margin:0;"></div>
<div style="margin:0;"><span style="font-size:10pt;">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&lt;T&gt; array. </span> </div>
<p> </p>
<table style="background:#f3f3f3;border-collapse:collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width:6.15in;background-color:transparent;border:windowtext 1pt solid;padding:0 5.4pt;" width="590" valign="top">
<div style="margin:0;"><span style="font-size:10pt;color:#339966;">IGUIControl</span><span style="font-size:10pt;">[] dogs = <span style="color:teal;">FrameworkTest</span>. LoadInstances&lt;<span style="color:#339966;">IGUIControl</span>&gt;();</span></div>
<div style="margin:0;"><span style="font-size:10pt;">         <span style="color:blue;">foreach</span> (<span style="color:#339966;">IGUIControl</span> control <span style="color:blue;">in</span> loadControls)</span></div>
<div style="margin:0;"><span style="font-size:10pt;">         {</span></div>
<div style="margin:0;"><span style="font-size:10pt;">             Control.Draw();</span></div>
<div style="margin:0;"><span style="font-size:10pt;">         }</span></div>
</td>
</tr>
</tbody>
</table>
<div style="margin:0;"><span style="font-size:small;"><span style="font-size:10pt;">Above code snippet load all assemblies that implement </span><span style="font-size:10pt;color:#339966;">IGUIControl </span><span style="font-size:10pt;color:black;">and call it</span><span style="font-size:10pt;color:#339966;"> Draw() </span><span style="font-size:10pt;color:black;">method to draw the entry control</span><span style="font-size:10pt;color:black;">.</span></span></div>
<div style="margin:0;"> </div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/technetbytes.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/technetbytes.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technetbytes.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technetbytes.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technetbytes.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technetbytes.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technetbytes.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technetbytes.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technetbytes.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technetbytes.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technetbytes.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technetbytes.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technetbytes.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technetbytes.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technetbytes.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technetbytes.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=14&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technetbytes.wordpress.com/2008/07/28/allow-your-framework-to-load-custom-assemblies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/921184b38ccb8c453fdc0d2808a2b72c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">technetbytes</media:title>
		</media:content>
	</item>
		<item>
		<title>Visual Studio 2005 SDK 2007.02 Error with IronPython Project</title>
		<link>http://technetbytes.wordpress.com/2008/02/18/visual-studio-2005-sdk-200702-error-with-ironpython-project/</link>
		<comments>http://technetbytes.wordpress.com/2008/02/18/visual-studio-2005-sdk-200702-error-with-ironpython-project/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 13:38:41 +0000</pubDate>
		<dc:creator>technetbytes</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[IronPython]]></category>

		<guid isPermaLink="false">http://technetbytes.wordpress.com/2008/02/18/visual-studio-2005-sdk-200702-error-with-ironpython-project/</guid>
		<description><![CDATA[Attempted to read or write protected memory. This is often an indication that other memory is corrupt.   The above error has been occurred when I try to open an IronPython project in Visual Studio 2005 at following file location position C:\Program Files\Visual Studio 2005 SDK\2007.02\VisualStudioIntegration\Common\Source\CSharp\Project\Automation\OAProject.cs at line 189: /// &#60;summary&#62; /// Gets a collection of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=4&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://geekswithblogs.net/technetbytes/archive/2008/02/15/119594.aspx" id="_2d61c1fe9ac9_HomePageDays_DaysList_ctl01_DayItem_DayList_ctl00_TitleUrl" title="Click To View Entry."><b><span style="font-size:8pt;font-family:Verdana;color:black;"><span style="color:#ff0000;">Attempted to read or write protected memory. This is often an indication that other memory is corrupt. </span></span></b> </a></p>
<p class="MsoNormal"><b><span style="font-size:8pt;font-family:Verdana;color:black;"> </span><span style="font-size:8pt;font-family:Verdana;color:black;font-weight:normal;">The above error has been occurred when I try to open an IronPython project in Visual Studio 2005 at following file location position </span></b><span style="font-size:8pt;font-family:Verdana;color:black;">C:\Program Files\Visual Studio 2005 SDK\2007.02\VisualStudioIntegration\Common\Source\CSharp\Project\Automation\OAProject.cs at line 189:<br />
</span></p>
<table style="border:medium none;background:#e6e6e6 none repeat scroll 0 50%;width:473.4pt;border-collapse:collapse;" class="MsoTableGrid" border="1" cellpadding="0" cellspacing="0" width="631">
<tr>
<td style="border:1pt solid windowtext;width:473.4pt;padding:0 5.4pt;" valign="top" width="631">
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';color:gray;">///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;summary&gt;<br />
///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> Gets a collection of all properties that   pertain to the Project object.</span><br />
<span style="font-size:10pt;font-family:'Courier New';color:gray;">///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;/summary&gt;</span><br />
<span style="font-size:10pt;font-family:'Courier New';color:blue;">public</span><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">virtual</span> EnvDTE.Properties   Properties<br />
{</span><br />
<span style="font-size:10pt;font-family:'Courier New';color:blue;"><span>  </span>get</span><br />
<span style="font-size:10pt;font-family:'Courier New';"><span>    </span>{<br />
<span>    </span><span style="color:blue;">object</span>   outputProperties = <span style="color:blue;">null</span>;<br />
<span>    </span>IVsExtensibility3 vsExtensibility3 = <span style="color:blue;">this</span>.project.GetService(<span style="color:blue;">typeof</span>(IVsExtensibility))   <span style="color:blue;">as</span> IVsExtensibility3;<br />
<span>    </span>vsExtensibility3.GetProperties(<span style="color:blue;">this</span>, <span style="color:blue;">this</span>.project.NodeProperties,   <span style="color:blue;">out</span> outputProperties);<br />
<span>    </span><span style="color:blue;">return</span>   (EnvDTE.Properties)outputProperties;<br />
<span> </span><span>   </span>}<br />
}</span></td>
</tr>
</table>
<p class="MsoNormal"><span style="font-size:8pt;font-family:Verdana;"><font size="1"><span style="color:#0000ff;text-decoration:underline;">Old code</span></font><br />
I reply the above code with following line.  </span></p>
<table style="border:medium none;background:#e6e6e6 none repeat scroll 0 50%;width:473.4pt;border-collapse:collapse;" class="MsoTableGrid" border="1" cellpadding="0" cellspacing="0" width="631">
<tr>
<td style="border:1pt solid windowtext;width:473.4pt;padding:0 5.4pt;" valign="top" width="631">
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';color:gray;">//</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;summary&gt;<br />
///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> Gets a collection of all properties that   pertain to the Project object.</span><br />
<span style="font-size:10pt;font-family:'Courier New';color:gray;">///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;/summary&gt;</span><br />
<span style="font-size:10pt;font-family:'Courier New';color:blue;">public</span><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">virtual</span> EnvDTE.Properties   Properties<br />
{</span><br />
<span style="font-size:10pt;font-family:'Courier New';color:blue;"><span>  </span>get</span><br />
<span style="font-size:10pt;font-family:'Courier New';"><span>    </span>{</span><br />
<span style="font-size:10pt;font-family:'Courier New';color:blue;"><span>      </span>return</span><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">new</span> OAProperties(<span style="color:blue;">this</span>.project.NodeProperties);<br />
<span> </span><span>     </span>}<br />
}</span><span style="font-size:8pt;font-family:Verdana;"></span></td>
</tr>
</table>
<p class="MsoNormal"><span style="font-size:8pt;font-family:Verdana;"><font size="1">New Code</font><span style="text-decoration:underline;"><br />
</span></span><span style="font-size:8pt;font-family:Verdana;">Now open the IronPython Window application now its fine and have fun with IronPython plenty of blogs will come on IronPython and Python.</span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/technetbytes.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/technetbytes.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technetbytes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technetbytes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technetbytes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technetbytes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technetbytes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technetbytes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technetbytes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technetbytes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technetbytes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technetbytes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technetbytes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technetbytes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technetbytes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technetbytes.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=4&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technetbytes.wordpress.com/2008/02/18/visual-studio-2005-sdk-200702-error-with-ironpython-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/921184b38ccb8c453fdc0d2808a2b72c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">technetbytes</media:title>
		</media:content>
	</item>
		<item>
		<title>Get list of types from assembly in IronPython</title>
		<link>http://technetbytes.wordpress.com/2008/02/18/get-list-of-types-from-assembly-in-ironpython/</link>
		<comments>http://technetbytes.wordpress.com/2008/02/18/get-list-of-types-from-assembly-in-ironpython/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 12:47:21 +0000</pubDate>
		<dc:creator>technetbytes</dc:creator>
				<category><![CDATA[IronPython]]></category>

		<guid isPermaLink="false">http://technetbytes.wordpress.com/2008/02/18/get-list-of-types-from-assembly-in-ironpython/</guid>
		<description><![CDATA[This is my first coding blog for IronPython in which I convert my old blog List of all Form from an Assembly in IronPython code. I use Visual Studio 2005 IronPython Console template so you need to add the following lines of code explicitly when use are writing code on command prompt to add reference [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=3&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span style="font-size:8.5pt;line-height:115%;font-family:'Verdana','sans-serif';">This is my first coding blog for IronPython in which I convert my old blog <a href="http://geekswithblogs.net/technetbytes/technetbytes/archive/2008/01/30/119087.aspx" title="Click To View Entry.">List of all Form from an Assembly</a> in IronPython code. I use Visual Studio 2005 IronPython Console template so you need to add the following lines of code explicitly when use are writing code on command prompt to add reference of System.dll</span></p>
<table style="border:medium none;background:#f2f2f2 none repeat scroll 0 50%;border-collapse:collapse;" class="MsoTableGrid" border="1" cellpadding="0" cellspacing="0">
<tr>
<td style="border:1pt solid black;width:6.65in;padding:0 5.4pt;" valign="top" width="638">
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';color:blue;">import</span><span style="font-size:10pt;font-family:'Courier New';"> clr</span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';">clr.AddReference(<span style="color:maroon;">&#8220;System&#8221;</span>)</span></p>
</td>
</tr>
</table>
<p class="MsoNormal"><span style="font-size:8.5pt;line-height:115%;font-family:'Verdana','sans-serif';">Here are the few bytes that IronPython developers use when they want to get a list of types from particular assembly.</span></p>
<table style="border:medium none;background:#f2f2f2 none repeat scroll 0 50%;border-collapse:collapse;" class="MsoTableGrid" border="1" cellpadding="0" cellspacing="0">
<tr>
<td style="border:1pt solid black;width:6.65in;padding:0 5.4pt;" valign="top" width="638">
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';color:blue;">from</span><span style="font-size:10pt;font-family:'Courier New';"> System <span style="color:blue;">import</span> *</span><br />
<span style="font-size:10pt;font-family:'Courier New';color:blue;">from</span><span style="font-size:10pt;font-family:'Courier New';"> System.Reflection <span style="color:blue;">import</span> *<br />
</span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';color:blue;">def</span><span style="font-size:10pt;font-family:'Courier New';"> GetTypeList(assemblyName, assemblyVersion):<br />
</span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>    </span>_assemblyname = AssemblyName()<span>    </span></span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>    </span>_assemblyname.Name = assemblyName<span>    </span></span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>    </span>v = Version(assemblyVersion)<span>   </span></span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>    </span>_assemblyname.Version = v;<span>    </span></span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>    </span>assembly = Assembly.Load(_assemblyname)<span>    </span></span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>    </span>Console.WriteLine(<span style="color:maroon;">&#8220;Listing all types in {0}&#8221;</span>, assembly.FullName)<span>   </span></span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>    </span>Console.WriteLine()<span>    </span></span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>    </span>types = assembly.GetTypes()<span>    </span></span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>    </span><span style="color:blue;">for</span> type <span style="color:blue;">in</span> types:<br />
<span>      </span><span>       </span>Console.WriteLine(type)<br />
</span></p>
<p style="margin-bottom:0.0001pt;line-height:normal;" class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';">GetTypeList(<span style="color:maroon;">&#8216;IronMath.dll&#8217;</span>,<span style="color:maroon;">&#8217;1.1.0.0&#8242;</span>)<br />
Console.ReadLine();</span></td>
</tr>
</table>
<p><span style="font-size:8.5pt;line-height:115%;font-family:'Verdana','sans-serif';">In the preceding codes I test the IronMath.dll itself with it version ‘1.1.0.0’. For C# version of this code read this <a href="http://geekswithblogs.net/technetbytes/technetbytes/archive/2008/01/30/119087.aspx">blog</a>.</span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/technetbytes.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/technetbytes.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technetbytes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technetbytes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technetbytes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technetbytes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technetbytes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technetbytes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technetbytes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technetbytes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technetbytes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technetbytes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technetbytes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technetbytes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technetbytes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technetbytes.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=3&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technetbytes.wordpress.com/2008/02/18/get-list-of-types-from-assembly-in-ironpython/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/921184b38ccb8c453fdc0d2808a2b72c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">technetbytes</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://technetbytes.wordpress.com/2008/02/18/hello-world/</link>
		<comments>http://technetbytes.wordpress.com/2008/02/18/hello-world/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 12:38:40 +0000</pubDate>
		<dc:creator>technetbytes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=1&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/technetbytes.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/technetbytes.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technetbytes.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technetbytes.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technetbytes.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technetbytes.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technetbytes.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technetbytes.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technetbytes.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technetbytes.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technetbytes.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technetbytes.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technetbytes.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technetbytes.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technetbytes.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technetbytes.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=1&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technetbytes.wordpress.com/2008/02/18/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/921184b38ccb8c453fdc0d2808a2b72c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">technetbytes</media:title>
		</media:content>
	</item>
		<item>
		<title>List of all controls in a particular form from an Assembly</title>
		<link>http://technetbytes.wordpress.com/2008/01/31/list-of-all-controls-in-a-particular-form-from-an-assembly/</link>
		<comments>http://technetbytes.wordpress.com/2008/01/31/list-of-all-controls-in-a-particular-form-from-an-assembly/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 13:39:59 +0000</pubDate>
		<dc:creator>technetbytes</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://technetbytes.wordpress.com/?p=5</guid>
		<description><![CDATA[ Yesterday I wrote a piece of code that gets a list of all form types in a specific assembly. Today I share another piece of code snippet that gets list of all controls in the specific assembly form. /// &#60;summary&#62; /// Get list of all controls on the form. /// &#60;/summary&#62; /// &#60;param name=&#8221;assemblyName&#8221;&#62;Assembly name.&#60;/param&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=5&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> <span style="font-size:8.5pt;font-family:Verdana;">Yesterday I wrote a piece of code that gets a list of all form types in a specific assembly. Today I share another piece of code snippet that gets list of all controls in the specific assembly form.<br />
</span></p>
<table class="MsoTableGrid" style="border:medium none;background:silver none repeat scroll 0 50%;border-collapse:collapse;" border="1" cellpadding="0" cellspacing="0">
<tr>
<td style="border:1pt solid windowtext;width:6.15in;padding:0 5.4pt;" valign="top" width="590">
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';color:gray;">///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;summary&gt;<br />
///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> Get list of all controls on the form.</span><br />
<span style="font-size:10pt;font-family:'Courier New';color:gray;">///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;/summary&gt;<br />
///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;param   name=&#8221;assemblyName&#8221;&gt;</span><span style="font-size:10pt;font-family:'Courier New';color:green;">Assembly name.</span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;/param&gt;<br />
///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;param   name=&#8221;assemblyVersion&#8221;&gt;</span><span style="font-size:10pt;font-family:'Courier New';color:green;">Assembly version.</span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;/param&gt;</span><br />
<span style="font-size:10pt;font-family:'Courier New';color:blue;">public</span><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">void</span> GetControlList(<span style="color:blue;">string</span> assemblyName, <span style="color:blue;">string</span>   assemblyVersion)<br />
{</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>   </span><span style="color:teal;">Assembly</span>   assembly = <span style="color:blue;">null</span>;<br />
<span>   </span><span style="color:teal;">AssemblyName</span>   asmName;<br />
<span>    </span>asmName = <span style="color:blue;">new</span>   <span style="color:teal;">AssemblyName</span>();<br />
<span>    </span>asmName.Name = assemblyName; <span style="color:green;">//Hello.exe</span><br />
<span>   </span><span style="color:teal;">Version</span> v   = <span style="color:blue;">new</span> <span style="color:teal;">Version</span>(assemblyVersion);<br />
<span>    </span>asmName.Version = v;<br />
<span>    </span>assembly = <span style="color:teal;">Assembly</span>.Load(asmName);<br />
<span>   </span><span style="color:teal;">Console</span>.WriteLine(<span style="color:maroon;">&#8220;Listing all types in {0}&#8221;</span>,   assembly.FullName);</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>     </span><span style="color:teal;">Type</span>[]   types = assembly.GetTypes();<br />
<span>      </span><span style="color:blue;">foreach</span>   (<span style="color:teal;">Type</span> t <span style="color:blue;">in</span>   types)<br />
<span>       </span>{</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span>        </span><span style="color:blue;">if</span>   (t.BaseType == <span style="color:blue;">typeof</span>(System.Windows.Forms.<span style="color:teal;">Form</span>))<br />
<span>        </span>{<br />
<span>         </span><span style="color:teal;">Form</span>   o = <span style="color:teal;">Activator</span>.CreateInstance(t) <span style="color:blue;">as</span> <span style="color:teal;">Form</span>;<br />
<span>         </span><span style="color:teal;">Console</span>.WriteLine(<span style="color:maroon;">&#8220;Form Name is {0} and Control Count are {1}&#8221;</span>,   o.Name, o.Controls.Count);<br />
<span>        </span>}<br />
<span>      </span>}<br />
}</span></td>
</tr>
</table>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/technetbytes.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/technetbytes.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technetbytes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technetbytes.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technetbytes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technetbytes.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technetbytes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technetbytes.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technetbytes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technetbytes.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technetbytes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technetbytes.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technetbytes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technetbytes.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technetbytes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technetbytes.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=5&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technetbytes.wordpress.com/2008/01/31/list-of-all-controls-in-a-particular-form-from-an-assembly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/921184b38ccb8c453fdc0d2808a2b72c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">technetbytes</media:title>
		</media:content>
	</item>
		<item>
		<title>List of all Form from an Assembly</title>
		<link>http://technetbytes.wordpress.com/2008/01/30/list-of-all-form-from-an-assembly/</link>
		<comments>http://technetbytes.wordpress.com/2008/01/30/list-of-all-form-from-an-assembly/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 13:44:46 +0000</pubDate>
		<dc:creator>technetbytes</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://technetbytes.wordpress.com/2008/01/30/list-of-all-form-from-an-assembly/</guid>
		<description><![CDATA[Many of the geeks sometime required to get a list of all form type in give assembly or a specific assembly in .Net. I have right a small code snippet that done this job for me, so I thought I must share it with you guys. /// &#60;summary&#62; /// Get list of all Form type [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=6&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="postText"><span style="font-size:8.5pt;font-family:Verdana;">Many of the geeks sometime required to get a list of all form type in give assembly or a specific assembly in .Net. I have right a small code snippet that done this job for me, so I thought I must share it with you guys.</span></p>
<table class="MsoTableGrid" style="border:medium none;background:silver none repeat scroll 0 50%;border-collapse:collapse;" border="1" cellpadding="0" cellspacing="0">
<tr>
<td style="border:1pt solid windowtext;width:6.15in;background-color:transparent;padding:0 5.4pt;" valign="top" width="590">
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:gray;font-family:'Courier New';">///</span><span style="font-size:10pt;color:green;font-family:'Courier New';"> </span><span style="font-size:10pt;color:gray;font-family:'Courier New';">&lt;summary&gt;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:gray;font-family:'Courier New';">///</span><span style="font-size:10pt;color:green;font-family:'Courier New';"> Get list of all Form type in the give assembly.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:gray;font-family:'Courier New';">///</span><span style="font-size:10pt;color:green;font-family:'Courier New';"> </span><span style="font-size:10pt;color:gray;font-family:'Courier New';">&lt;/summary&gt;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:gray;font-family:'Courier New';">///</span><span style="font-size:10pt;color:green;font-family:'Courier New';"> </span><span style="font-size:10pt;color:gray;font-family:'Courier New';">&lt;param name=&#8221;assemblyName&#8221;&gt;</span><span style="font-size:10pt;color:green;font-family:'Courier New';">Assembly name.</span><span style="font-size:10pt;color:gray;font-family:'Courier New';">&lt;/param&gt;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:gray;font-family:'Courier New';">///</span><span style="font-size:10pt;color:green;font-family:'Courier New';"> </span><span style="font-size:10pt;color:gray;font-family:'Courier New';">&lt;param name=&#8221;assemblyVersion&#8221;&gt;</span><span style="font-size:10pt;color:green;font-family:'Courier New';">Assembly version.</span><span style="font-size:10pt;color:gray;font-family:'Courier New';">&lt;/param&gt;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:blue;font-family:'Courier New';">public</span><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">void</span> GetFormList(<span style="color:blue;">string</span> assemblyName, <span style="color:blue;">string</span> assemblyVersion)</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span> </span>{</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>    </span><span style="color:green;">//Assembly asm = Assembly.GetExecutingAssembly();</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>     </span><span style="color:teal;">Assembly</span> assembly = <span style="color:blue;">null</span>;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span> </span><span>    </span><span style="color:teal;">AssemblyName</span> asmName;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span> </span><span>    </span>asmName = <span style="color:blue;">new</span> <span style="color:teal;">AssemblyName</span>();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span> </span><span> </span><span>   </span>asmName.Name = assemblyName; <span style="color:green;">//Hello.exe</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>  </span><span> </span><span>  </span><span style="color:teal;">Version</span> v = <span style="color:blue;">new</span> <span style="color:teal;">Version</span>(assemblyVersion);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>   </span><span>  </span>asmName.Version = v;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>   </span><span> </span><span> </span>assembly = <span style="color:teal;">Assembly</span>.Load(asmName);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>     </span><span style="color:teal;">Console</span>.WriteLine(<span style="color:maroon;">&#8220;Listing all types in {0}&#8221;</span>, assembly.FullName);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>     </span><span style="color:teal;">Type</span>[] types = assembly.GetTypes();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>     </span><span style="color:blue;">foreach</span> (<span style="color:teal;">Type</span> t <span style="color:blue;">in</span> types)</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>     </span>{</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>  </span><span>     </span><span style="color:blue;">if</span> (t.BaseType != <span style="color:blue;">null</span>)</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>  </span><span>        </span>{</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>  </span><span>          </span><span style="color:blue;">if</span> (t.BaseType == <span style="color:blue;">typeof</span>(System.Windows.Forms.<span style="color:teal;">Form</span>))</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>  </span><span>           </span>{</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span> </span><span> </span><span>             </span><span style="color:teal;">Console</span>.WriteLine(<span style="color:maroon;">&#8220;Form Type: {0}&#8221;</span>, t);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>  </span><span> </span><span>          </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>   </span><span>       </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:'Courier New';"><span>   </span><span>  </span>}<span>   </span></span></p>
<p><span style="font-size:10pt;font-family:'Courier New';"><span> </span><span> </span><span> </span>}</span></td>
</tr>
</table>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/technetbytes.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/technetbytes.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technetbytes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technetbytes.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technetbytes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technetbytes.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technetbytes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technetbytes.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technetbytes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technetbytes.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technetbytes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technetbytes.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technetbytes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technetbytes.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technetbytes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technetbytes.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technetbytes.wordpress.com&amp;blog=2904306&amp;post=6&amp;subd=technetbytes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technetbytes.wordpress.com/2008/01/30/list-of-all-form-from-an-assembly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/921184b38ccb8c453fdc0d2808a2b72c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">technetbytes</media:title>
		</media:content>
	</item>
	</channel>
</rss>
