<?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>Sadi02's Weblog</title>
	<atom:link href="http://sadi02.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sadi02.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 26 Jan 2012 06:38:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sadi02.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sadi02's Weblog</title>
		<link>http://sadi02.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sadi02.wordpress.com/osd.xml" title="Sadi02&#039;s Weblog" />
	<atom:link rel='hub' href='http://sadi02.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Host a website in IIS 6.0</title>
		<link>http://sadi02.wordpress.com/2012/01/26/host-a-website-in-iis-6-0/</link>
		<comments>http://sadi02.wordpress.com/2012/01/26/host-a-website-in-iis-6-0/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 06:38:45 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=131</guid>
		<description><![CDATA[&#8212;-This post may not be useful for professional. This is only for me. So please ignore this post&#8212;- 1. host it in virtual directory 2.  Go to properties and check the option &#8220;Execute permission&#8221;. Select &#8220;Scripts and Executables&#8221; from the check box. 3. &#8230; <a href="http://sadi02.wordpress.com/2012/01/26/host-a-website-in-iis-6-0/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=131&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8212;-This post may not be useful for professional. This is only for me. So please ignore this post&#8212;-</p>
<p>1. host it in virtual directory</p>
<p>2.  Go to properties and check the option &#8220;Execute permission&#8221;. Select &#8220;Scripts and Executables&#8221; from the check box.</p>
<p>3.  If your site works fine then its OK otherwise check the .Net version for IIS.  Select the website from IIS -&gt;write click -&gt; go to properties -&gt; slect the ASP.NET tab then  Select the the .net version for your web site.</p>
<p>4. If any xml file give unauthorized access exception then go to the permission for the website folder from IIS and change the permission as Full control for all user for the time being</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />Filed under: <a href='http://sadi02.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=131&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2012/01/26/host-a-website-in-iis-6-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>Building Blocks of .Net Platforms (CLR, CTS, CLS)</title>
		<link>http://sadi02.wordpress.com/2009/03/16/building-blocks-of-net-platforms-clr-cts-cls/</link>
		<comments>http://sadi02.wordpress.com/2009/03/16/building-blocks-of-net-platforms-clr-cts-cls/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 12:19:34 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=110</guid>
		<description><![CDATA[CLR (Common Language Runtime): Programmatically speaking, the term runtime can be understood as a collection of external services that are required to execute a given compiled unit of code. The CLR is the layer of the .NET Framework that makes &#8230; <a href="http://sadi02.wordpress.com/2009/03/16/building-blocks-of-net-platforms-clr-cts-cls/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=110&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span><strong><span>CLR (Common Language Runtime):</span></strong></span><span><span> Programmatically speaking, the term runtime can be understood as a collection of external services that are required to execute a given compiled unit of code. The CLR is the layer of the .NET Framework that makes the source code into an intermediate language which is language independent. This language is called the Microsoft Intermediate Language. </span></span></p>
<p class="MsoNormal"><span><span>The key difference between the .NET runtime and the various other runtimes I just mentioned is the fact that the .NET runtime provides a single well-defined runtime layer that is shared by all languages and platforms that are .NET-know. </span></span></p>
<p class="MsoNormal"><span><span>The primary role of the CLR is to locate, load, and manage .NET types on your behalf. The CLR also takes care of a number of low-level details such as memory management and performing security checks. </span></span></p>
<p class="MsoNormal"><span><strong><span>CTS (Common Type System):</span></strong></span><span><span> In the world of .NET, “type” is simply a generic term used to refer to a member from the set {class, structure, interface, enumeration, delegate}. When you build solutions using a .NET-aware language, you will most likely interact with each of these types. The Common Type System (CTS) is a formal specification that documents how types must be defined in order to be hosted by the CLR. </span></span></p>
<p class="MsoNormal"><span><span>Every language running on the .NET platform has a base set of data types provided by CTS.<span>  </span>CTS is responsible for defining type of .NET languages. Most of the languages running on .NET platform use aliases for using those CTS types. For example, a four-byte integer value is represented by the CTS type System.Int32. C# defines an alias for this called type called int and in VB.NET called Integer. </span></span></p>
<p class="MsoNormal"><span><strong><span>CLS (Common Language System):</span></strong></span><span><span> The Common Language Specification (CLS), which is a set of basic language features needed by many .Net applications to fully interact with other objects regardless of the language in which they were implemented. The CLS represents the guidelines defined by for the .NET Framework. These specifications are normally used by the compiler developers and are available for all languages, which target the .NET Framework.</span></span><span><span></span></span></p>
<br />Posted in Asp.Net, Computer Science Tagged: Asp.Net, Computer Science <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=110&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2009/03/16/building-blocks-of-net-platforms-clr-cts-cls/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>How to store log in database using log4net</title>
		<link>http://sadi02.wordpress.com/2008/09/15/how-to-store-log-in-database-using-log4net/</link>
		<comments>http://sadi02.wordpress.com/2008/09/15/how-to-store-log-in-database-using-log4net/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 10:00:02 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=73</guid>
		<description><![CDATA[One of the best ways to store log in the database using log4net coz it is easy to use and its world wide popularity. For storing log in the database all task are manage by log4net internally. At first you &#8230; <a href="http://sadi02.wordpress.com/2008/09/15/how-to-store-log-in-database-using-log4net/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=73&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;font-family:&quot;">One of the best ways to store log in the database using log4net coz it is easy to use and its world wide popularity. For storing log in the database all task are manage by log4net internally. </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;font-family:&quot;">At first you need to create a table for Storing log in the SqlServer database</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;font-family:&quot;">The table should be like as </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&quot;">CREATE TABLE [dbo].[Log] (</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&quot;"><span>    </span>[Id] [int] IDENTITY (1, 1) NOT NULL,</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&quot;"><span>    </span>[Date] [datetime] NOT NULL,</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&quot;"><span>    </span>[Thread] [varchar] (255) NOT NULL,</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&quot;"><span>    </span>[Level] [varchar] (50) NOT NULL,</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&quot;"><span>    </span>[Logger] [varchar] (255) NOT NULL,</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&quot;"><span>    </span>[Message] [varchar] (4000) NOT NULL,</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&quot;"><span>    </span>[Exception] [varchar] (2000) NULL</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;font-family:&quot;">)</span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;margin:auto 0 auto .5in;"><span style="font-size:10pt;font-family:&quot;"><span>1.<span style="font-family:&quot;">    </span></span></span><span style="font-size:10pt;font-family:&quot;">Download log4net from <a href="http://logging.apache.org/log4net/download.html"><span style="color:#0000ff;">http://logging.apache.org/log4net/download.html</span></a></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;margin:auto 0 auto .5in;"><span style="font-size:10pt;font-family:&quot;"><span>2.<span style="font-family:&quot;">    </span></span></span><span style="font-size:10pt;font-family:&quot;">Open visual studio and create an application.</span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:&quot;"><span>3.<span style="font-family:&quot;">    </span></span></span><span style="font-size:10pt;font-family:&quot;">Add to the project a reference to the \bin\net\2.0\release\log4net.dll assembly in the log4net distribution. </span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;margin:auto 0 auto .5in;"><span style="font-size:10pt;font-family:&quot;"><span>4.<span style="font-family:&quot;">    </span></span></span><span style="font-size:10pt;font-family:&quot;">Now put this web.config/app.config file in configuration tag.</span></p>
<p><pre class="brush: xml;">&lt;configSections&gt; &lt;section name=&quot;log4net&quot; type=&quot;log4net.Config.Log4NetConfigurationSectionHandler,Log4net&quot;/&gt; &lt;/configSections&gt; &lt;log4net&gt; &lt;root&gt; &lt;level value=&quot;DEBUG&quot; /&gt; &lt;appender-ref ref=&quot;ADONetAppender&quot; /&gt; &lt;/root&gt; &lt;appender name=&quot;ADONetAppender&quot; type=&quot;log4net.Appender.ADONetAppender&quot;&gt; &lt;bufferSize value=&quot;100&quot; /&gt; &lt;connectionType value=&quot;System.Data.SqlClient.SqlConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot; /&gt; &lt;connectionString value=&quot;server=servername; uid=Lion; pwd=Lionman; database=databasename&quot; /&gt; &lt;commandText value=&quot;INSERT INTO Log ([Date],[Thread],[Level],[Logger],[Message],[Exception]) VALUES (@log_date, @thread, @log_level, @logger, @message, @exception)&quot; /&gt;
&lt;parameter&gt;
&lt;parameterName value=&quot;@log_date&quot;/&gt; &lt;dbType value=&quot;DateTime&quot;/&gt; &lt;layout type=&quot;log4net.Layout.RawTimeStampLayout&quot;/&gt; &lt;/parameter&gt;
&lt;parameter&gt;
&lt;parameterName value=&quot;@thread&quot;/&gt; &lt;dbType value=&quot;String&quot;/&gt; &lt;size value=&quot;255&quot;/&gt; &lt;layout type=&quot;log4net.Layout.PatternLayout&quot;&gt; &lt;conversionPattern value=&quot;%thread&quot;/&gt; &lt;/layout&gt; &lt;/parameter&gt;
&lt;parameter&gt;
&lt;parameterName value=&quot;@log_level&quot;/&gt; &lt;dbType value=&quot;String&quot;/&gt; &lt;size value=&quot;50&quot;/&gt; &lt;layout type=&quot;log4net.Layout.PatternLayout&quot;&gt; &lt;conversionPattern value=&quot;%level&quot;/&gt; &lt;/layout&gt; &lt;/parameter&gt;
&lt;parameter&gt;
&lt;parameterName value=&quot;@logger&quot;/&gt; &lt;dbType value=&quot;String&quot;/&gt; &lt;size value=&quot;255&quot;/&gt; &lt;layout type=&quot;log4net.Layout.PatternLayout&quot;&gt; &lt;conversionPattern value=&quot;%logger&quot;/&gt; &lt;/layout&gt; &lt;/parameter&gt;
&lt;parameter&gt;
&lt;parameterName value=&quot;@message&quot;/&gt; &lt;dbType value=&quot;String&quot;/&gt; &lt;size value=&quot;4000&quot;/&gt; &lt;layout type=&quot;log4net.Layout.PatternLayout&quot;&gt; &lt;conversionPattern value=&quot;%message&quot;/&gt; &lt;/layout&gt; &lt;/parameter&gt;
&lt;parameter&gt;
&lt;parameterName value=&quot;@exception&quot;/&gt; &lt;dbType value=&quot;String&quot;/&gt; &lt;size value=&quot;2000&quot;/&gt; &lt;layout type=&quot;log4net.Layout.ExceptionLayout&quot;/&gt; &lt;/parameter&gt; &lt;/appender&gt; &lt;/log4net&gt; </pre></p>
<p class="MsoNormal" style="line-height:normal;margin:0;">
<div class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:&quot;"><span style="font-size:10pt;font-family:&quot;"><span>      </span>In the connection string tag you need to change server name and database. You also can decide how to define the security part of the connection string.</span></span></div>
<div></div>
<div><span style="font-size:10pt;font-family:&quot;"></span></div>
<p><span style="font-size:10pt;font-family:&quot;"><span style="font-family:&quot;"></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:10pt;font-family:&quot;">There are two way to define the security part</span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;margin:auto 0 auto .5in;"><span style="font-size:10pt;font-family:Symbol;"><span>·<span style="font-family:&quot;">         </span></span></span><span style="font-size:10pt;font-family:&quot;">Use integrated Security</span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;margin:auto 0 auto .5in;"><span style="font-size:10pt;font-family:Symbol;"><span>·<span style="font-family:&quot;">         </span></span></span><span style="font-size:10pt;font-family:&quot;">State the username and the password in the connection string.</span></p>
<p class="MsoNormal" style="line-height:normal;margin:7.5pt 11.25pt 15pt 0;"><span style="font-size:10pt;font-family:&quot;">In both cases you need to make sure that the user has access to the, SQL server, the database and the databasetable that Log4Net is going to use.</span></p>
<p class="MsoNormal" style="line-height:normal;margin:7.5pt 11.25pt 15pt 0;"><span style="font-size:10pt;font-family:&quot;">If you use integrated security then the connection string should be like as </span></p>
<div></div>
<p><span style="font-size:10pt;color:#0000ff;font-family:&quot;"></p>
<p class="MsoNormal" style="line-height:16.8pt;margin:0;"><span style="font-size:10pt;color:#0000ff;font-family:&quot;">&lt;</span><span style="font-size:10pt;color:#800000;font-family:&quot;">connectionString</span><strong><span style="font-size:10pt;color:#ff0000;font-family:&quot;"> value</span></strong><strong><span style="font-size:10pt;color:#0000ff;font-family:&quot;">=&#8221;Data Source=servername;initial Catalog=databasename;</span></strong><span style="color:#0000ff;font-family:&quot;"><strong><span style="font-size:10pt;color:#0000ff;font-family:&quot;"> Integrated Security=True;&#8221;/&gt;</span></strong></span> </p>
<p></span></p>
<p class="MsoNormal" style="line-height:16.8pt;margin:0 0 10pt;"> <span style="font-size:10pt;font-family:&quot;"><span>5.<span style="font-family:&quot;">    </span></span></span><span style="font-size:10pt;font-family:&quot;">To use log4net put this as a local class variable:    private static readonly log4net.ILog log =log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);</span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;margin:auto 0 auto .5in;"><span style="font-size:10pt;font-family:&quot;"><span>6.<span style="font-family:&quot;">    </span></span></span><span style="font-size:10pt;font-family:&quot;">And do this to write messages in the log file.   log.Debug(”this text will be in log file”); </span></p>
<p class="MsoNormal" style="margin:0 0 10pt .25in;"><span style="font-size:10pt;line-height:115%;font-family:&quot;">For Example,</span></p>
<p><pre class="brush: csharp;"> 
using System; 
using System.Collections.Generic; 
using System.Text; using log4net; 
using log4net.Config; using log4net.Core; 
using log4net.Repository.Hierarchy; 
using log4net.Appender;
 
namespace LogPractice
{   
    class Program 
    { 
        private static readonly log4net.ILog log =log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        static void Main(string[] args) 
        {
            log4net.Config.XmlConfigurator.Configure(); 
            log.Debug(&quot;log Debug&quot;); 
            log.Info(&quot;log Info&quot;); 
            log.Warn(&quot;log Warn&quot;); 
            log.Error(&quot;log Error&quot;); 
            log.Fatal(&quot;log Fatal&quot;); 
        } 
    } 
}
</pre></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:&quot;">Now run the code then you can see the log stored in the database table.</span></p>
<p></span></span></p>
<div></div>
<div><span style="font-size:10pt;font-family:&quot;"></span></div>
<p><span style="font-size:10pt;font-family:&quot;"><span style="font-family:&quot;"></p>
<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<p class="MsoNormal" style="margin:0 0 10pt;">
<div><span style="font-family:&quot;"><span style="font-family:&quot;"> </span></span></div>
<div></div>
<div><span style="font-family:&quot;"></span></div>
<p><span style="font-family:&quot;"><span style="font-family:&quot;"></p>
<div><span style="font-family:&quot;"> </span></div>
<div><span style="font-family:&quot;"> </span></div>
<div><span style="font-family:&quot;"> </span></div>
<div><span style="font-family:&quot;"> </span></div>
<div><span style="font-family:&quot;"> </span></div>
<div><span style="font-family:&quot;"> </span></div>
<div><span style="font-family:&quot;"> </span></div>
<div><span style="font-family:&quot;"> </span></div>
<p></span></span><span style="font-family:&quot;"> </p>
<p></span> </p>
<p></span></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/73/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/73/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=73&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/09/15/how-to-store-log-in-database-using-log4net/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>.Net Remoting with a simple example</title>
		<link>http://sadi02.wordpress.com/2008/07/06/58/</link>
		<comments>http://sadi02.wordpress.com/2008/07/06/58/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 10:46:13 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[programming language]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=58</guid>
		<description><![CDATA[Introduction: .NET remoting enables you to build widely distributed applications easily, whether the application components are all on one computer or spread out across the entire world. You can build client applications that use objects in other processes on the &#8230; <a href="http://sadi02.wordpress.com/2008/07/06/58/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=58&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align:justify;"><strong><span style="font-size:10pt;line-height:115%;">Introduction:</span></strong><span style="font-size:10pt;line-height:115%;"> .NET remoting enables you to build widely distributed applications easily, whether the application components are all on one computer or spread out across the entire world. You can build client applications that use objects in other processes on the same computer or on any other computer that is reachable over its network. You can also use .NET remoting to communicate with other application domains in the same process.</span></p>
<p class="MsoNormal" style="text-align:justify;"><span style="font-size:10pt;line-height:115%;">To use .NET remoting to build an application in which two components communicate directly across an application domain boundary, you need to build only the following:</span></p>
<ul>
<li>
<div class="MsoNormal" style="text-align:justify;text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 40.5pt;"><span style="font-size:10pt;">A remotable object.</span></div>
</li>
<li>
<div class="MsoNormal" style="text-align:justify;text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 40.5pt;"><span style="font-size:10pt;">A host application domain to listen for requests for that object.</span></div>
</li>
<li>
<div class="MsoListParagraph" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 40.5pt;"><span style="font-size:10pt;">A client application domain that makes requests for that object.</span></div>
</li>
</ul>
<h1><span style="font-size:10pt;">Complete Remoting System Design</span></h1>
<p style="text-align:justify;"><span style="font-size:10pt;">Suppose you have an application running on one computer, and you want to use the functionality exposed by a type that is stored on another computer. The following illustration shows the general remoting process.</span></p>
<p class="MsoNormal" style="text-align:justify;"><strong><span style="font-size:10pt;line-height:115%;">Remoting process</span></strong></p>
<p style="text-align:justify;"><span style="font-size:10pt;">If both sides of the relationship are configured properly, a client merely creates a new instance of the server class. The remoting system creates a proxy object that represents the class and returns to the client object a reference to the proxy. When a client calls a method, the remoting infrastructure handles the call, checks the type information, and sends the call over the channel to the server process. A listening channel picks up the request and forwards it to the server remoting system, which locates (or creates, if necessary) and calls the requested object. The process is then reversed, as the server remoting system bundles the response into a message that the server channel sends to the client channel. Finally, the client remoting system returns the result of the call to the client object through the proxy.</span></p>
<p style="text-align:justify;"><span style="font-size:10pt;">Very little actual code is required to make this work, but some thought should be given to the design and the configuration of the relationship. The code can be absolutely correct and yet fail because a URL or port number is incorrect.</span></p>
<p style="text-align:justify;"><strong><span style="font-size:10pt;">Channels</span></strong></p>
<p style="text-align:justify;"><span style="font-size:10pt;">Channels are objects that transport messages between applications across remoting boundaries, whether between application domains, processes, or computers. A channel can listen on an endpoint for inbound messages, send outbound messages to another endpoint, or both. This enables you to plug in a wide range of protocols, even if the common language runtime is not at the other end of the channel.</span></p>
<p style="text-align:justify;"><span style="font-size:10pt;">Channels must implement the <strong>IChannel</strong> interface, which provides informational properties such as ChannelName and ChannelPriority. Channels designed to listen for a particular protocol on a particular port implement <strong>IChannelReceiver</strong> and channels designed to send information implement <strong>IChannelSender</strong>. Both the TcpChannel and HttpChannel objects implement both of these interfaces, so they can be used to send or receive information.</span></p>
<p style="text-align:justify;"><span style="font-size:10pt;">You can register channels with the remoting infrastructure in the following ways:</span></p>
<ul>
<li>
<div style="margin-left:.5in;text-indent:-.25in;"><span style="font-size:10pt;">If you are publishing a remotable object, call ChannelServices.RegisterChannel prior to registering your server object.</span></div>
</li>
<li>
<div style="margin-left:.5in;text-indent:-.25in;"><span style="font-size:10pt;">If you are consuming a remotable object&#8217;s functionality, call RegisterChannel prior to creating an instance of your server object.</span></div>
</li>
</ul>
<p style="text-align:justify;"><strong><span style="font-size:10pt;">Types of Remoting</span></strong></p>
<p style="text-align:justify;"><span style="font-size:10pt;">There are two very different types of remote interaction between components </span></p>
<ul>
<li>
<div style="margin-left:39.75pt;text-align:justify;text-indent:-.25in;"><span style="font-size:10pt;">Marshal by value (Uses Serializable objects passed as a copy)</span></div>
</li>
<li>
<div style="margin-left:39.75pt;text-align:justify;text-indent:-.25in;"><span style="font-size:10pt;">Marshal by Ref (Sends Objects implemented the MarshalByRefObject)</span></div>
</li>
</ul>
<p style="margin-left:21.75pt;text-align:justify;"><strong><span style="font-size:10pt;">What is Marshaling?</span></strong></p>
<p style="margin-left:21.75pt;text-align:justify;"><span style="font-size:10pt;">Passing an object between process or machines are called marshaling.</span></p>
<p style="margin-left:21.75pt;text-align:justify;"><strong><span style="font-size:10pt;">Marshal by value objects</span></strong></p>
<p style="margin-left:21.75pt;text-align:justify;"><span style="font-size:10pt;">Marshaling by value means to serialize the objects in a persistent form from which they can be deserialized in a different context. Only a state of the object will be marshal.</span></p>
<p><pre class="brush: csharp;">
[Serializable]
public class CCustomer{
public int Id;public string name;

public CCustomer()

{

Console.WriteLine(“New CCustomer is Created…”);

}

}

</pre></p>
<p class="MsoNoSpacing">
<p style="text-align:justify;margin:0 0 .0001pt .3in;"><span style="font-size:10pt;">an instance of <span style="color:#008080;">CCustomer is objCustomer</span></span></p>
<p style="text-align:justify;margin:0 0 .0001pt .3in;"><span style="font-size:10pt;">where, objCustomer.</span><span style="font-size:10pt;">Id=5;<span style="color:#008080;">objCustomer.name=”ABC”;</span></span></p>
<p style="text-align:justify;margin:0 0 .0001pt .3in;">
<p style="text-align:justify;margin:0 0 .0001pt .3in;"><span style="font-size:10pt;">if you get this object remotely then you will get like this</span></p>
<p style="text-align:justify;margin:0 0 .0001pt .3in;">
<p style="text-align:justify;margin:0 0 .0001pt .3in;"><span style="font-size:10pt;">&lt;CCustomer&gt;</span></p>
<p style="text-align:justify;margin:0 0 .0001pt .3in;"><span style="font-size:10pt;">&lt;id&gt;5&lt;/id&gt;</span></p>
<p style="text-align:justify;margin:0 0 .0001pt .3in;"><span style="font-size:10pt;">&lt;name&gt;”ABC”&lt;/name&gt;</span></p>
<p style="text-align:justify;margin:0 0 .0001pt .3in;"><span style="font-size:10pt;">&lt;/CCustomer&gt;</span></p>
<p style="margin-left:21.75pt;text-align:justify;"><strong><span style="font-size:10pt;">Marshal by Ref Objects</span></strong></p>
<p style="margin-left:21.75pt;text-align:justify;"><span style="font-size:10pt;">Marshal by ref objects are objects that created and run on the client machine when using by a remote client. All of its data is stored in the server memory. These objects are identify by a pointer like ObjRef which actually contains the server name/IP and Identity that identify one from a set of objects running on the server.</span></p>
<p style="text-align:justify;"><span style="font-size:10pt;">To expose a object as marshal by ref extend it with MarshalByRefObject.</span></p>
<p class="MsoNoSpacing">public class <span style="color:#008080;">CCustomer</span>:<span style="color:#008080;">MarshalByRefObject</span></p>
<p class="MsoNoSpacing">{</p>
<p class="MsoNoSpacing">public int Id;</p>
<p class="MsoNoSpacing">public string name;</p>
<p class="MsoNoSpacing">
<p class="MsoNoSpacing">public CCustomer()</p>
<p class="MsoNoSpacing">{</p>
<p class="MsoNoSpacing"><span style="color:#008080;">Console</span>.WriteLine(<span style="color:#800000;">&#8220;New CCustomer is Created&#8230;&#8221;</span>);</p>
<p class="MsoNoSpacing">}</p>
<p class="MsoNoSpacing">}</p>
<p class="MsoNormal" style="text-align:justify;"><strong><span style="font-size:10pt;line-height:115%;">Activation of Remote Objects</span></strong></p>
<p><span style="font-size:10pt;">There are two types of activation for marshal-by-reference objects: </span></p>
<ul>
<li>
<div style="margin-left:.5in;text-indent:-.25in;"><strong><span style="font-size:10pt;">Server activation</span></strong><span style="font-size:10pt;">. </span></div>
</li>
</ul>
<p style="margin-left:.5in;text-align:justify;"><span style="font-size:10pt;">Server-activated objects are created by the server only when they are needed. They are not created when the client proxy is created by calling <strong>new </strong>or Activator.GetObject, but rather when the client invokes the first method on that proxy. For details, see <a href="//MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxremoting/html/77ded6e2-4ca8-448b-acf2-562d27fd4396.htm">Server Activation</a>. </span></p>
<h1 style="text-align:justify;"><span style="font-size:10pt;">Server Activation Modes</span></h1>
<p style="margin-left:.5in;text-align:justify;"><span style="font-size:10pt;">There are two activation modes (or WellKnownObjectMode values) for server-activated objects: <strong>Singleton</strong> and <strong>SingleCall</strong>.</span></p>
<ul>
<li>
<div style="margin-left:1in;text-align:justify;text-indent:-.25in;"><strong><span style="font-size:10pt;">Singleton</span></strong><span style="font-size:10pt;"> types never have more than one instance at any one time. If an instance exists, all client requests are serviced by that instance. If an instance does not exist, the server creates an instance and all subsequent client requests will be serviced by that instance. Because <strong>Singleton</strong> types have an associated default lifetime, clients will not always receive a reference to the same instance of the remotable class, even if there is never more than one instance available at any one time.</span></div>
</li>
</ul>
<p style="margin-left:.75in;text-align:justify;">
<ul>
<li>
<div style="margin-left:1in;text-align:justify;text-indent:-.25in;"><strong><span style="font-size:10pt;">SingleCall</span></strong><span style="font-size:10pt;"> types always have one instance per client request. The next method invocation will be serviced by a different server instance, even if the previous instance has not yet been recycled by the system. <strong>SingleCall </strong>types do not participate in the lifetime lease system.</span></div>
</li>
<li>
<div style="margin-left:.5in;text-indent:-.25in;"><span style="font-size:10pt;"><strong>Client activation.</strong> </span></div>
</li>
</ul>
<p style="margin-left:.5in;"><span style="font-size:10pt;">Client-activated objects are created on the server when the client calls <strong>new</strong> or Activator.CreateInstance. The client itself, using the lifetime lease system, can participate in the lifetime of these instances. For details, see <a href="//MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxremoting/html/4a791494-c18a-4711-a5c1-4ab0e49a8f1a.htm">Client Activation</a> and <a href="//MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxremoting/html/c72d561c-1266-4c8b-b258-2c168c08da9a.htm">Lifetime Leases</a>.</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="color:#ff0000;"><strong><span style="font-size:10pt;">A Simple Example of .Net Remoting</span></strong></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><strong><span style="font-size:10pt;color:#000000;">SERVER</span></strong></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<ol>
<li>
<div class="MsoListParagraphCxSpFirst" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;color:#000000;">At first create a solution name “server” in visual studio </span></div>
</li>
<li>
<div class="MsoListParagraphCxSpMiddle" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;color:#000000;">Add a library project Name ‘”SharedLibrary” in the solution.</span></div>
</li>
<li>
<div class="MsoListParagraphCxSpLast" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;color:#000000;">Add a class name “</span><span style="font-size:10pt;color:#2b91af;">CCustomer</span><span style="font-size:10pt;color:#000000;">” and put this code given below</span></div>
</li>
</ol>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Collections.Generic;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Text;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">namespace</span><span style="font-size:10pt;"> SharedLibrary</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> this is a interface of customer manager</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">interface</span> <span style="color:#2b91af;">ICustomerMgr</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">CCustomer</span> GetCustomer();</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#0000ff;">int</span> Number</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#0000ff;">get</span>;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#0000ff;">set</span>;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> This is customer class</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">CCustomer</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#0000ff;">public</span> CCustomer()</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">Console</span>.WriteLine(<span style="color:#a31515;">&#8220;New Customer is created&#8230;&#8230;.&#8221;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">int</span> Id;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">4. Build this project.</span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;"> 5. Add a console project Name “server” in the solution</span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;"> 6. Add the reference of “SharedLibrary.dll” from project.</span></p>
<p class="MsoListParagraphCxSpLast" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;"> 7. Add a class Name “<span style="color:#2b91af;">CCustomerMgr</span>” and put the code in the class.</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Collections.Generic;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Text;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> SharedLibrary;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;color:#0000ff;">namespace</span><span style="font-size:10pt;"> Server</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">[<span style="color:#2b91af;">Serializable</span>]</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">CCustomerMgr</span> : <span style="color:#2b91af;">MarshalByRefObject</span>, <span style="color:#2b91af;">ICustomerMgr</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#2b91af;">CCustomer</span> oCustomer;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#0000ff;">private</span> <span style="color:#0000ff;">int</span> _iNumber;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">int</span> Number</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#0000ff;">get</span> { <span style="color:#0000ff;">return</span> _iNumber; }</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#0000ff;">set</span> { _iNumber = <span style="color:#0000ff;">value</span>; }</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#0000ff;">public</span> CCustomerMgr()</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">oCustomer = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">CCustomer</span>();</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">oCustomer.Id = 99340;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">Number = 100;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#2b91af;">Console</span>.WriteLine(<span style="color:#a31515;">&#8220;New CustomerMgr is Created&#8230;&#8221;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;returns&gt;&lt;/returns&gt;</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#0000ff;">public</span> <span style="color:#2b91af;">CCustomer</span> GetCustomer()</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;"><span style="color:#0000ff;">return</span> oCustomer;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 67.5pt;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 85.5pt;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt .75in;">
<p class="MsoListParagraphCxSpFirst" style="line-height:normal;margin:0 0 .0001pt 1in;">
<p class="MsoListParagraphCxSpLast" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;color:#000000;"> 8. The main method will be like this and compile</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Collections.Generic;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Text;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Runtime.Remoting.Channels.Http;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Runtime.Remoting;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Runtime.Remoting.Services;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Runtime.Remoting.Channels;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">namespace</span><span style="font-size:10pt;"> Server</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">Program</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> Main(<span style="color:#0000ff;">string</span>[] args)</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">{ </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">HttpChannel</span> Chn = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">HttpChannel</span>(1234);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">ChannelServices</span>.RegisterChannel(Chn);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">RemotingConfiguration</span>.RegisterWellKnownServiceType(<span style="color:#0000ff;">typeof</span>(<span style="color:#2b91af;">CCustomerMgr</span>), <span style="color:#a31515;">&#8220;sadi.com&#8221;</span>, <span style="color:#2b91af;">WellKnownObjectMode</span>.Singleton);//put the type of object, Url name and mode.</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">Console</span>.WriteLine(<span style="color:#a31515;">&#8220;Enter any key to stop the server&#8230;&#8221;</span>);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">Console</span>.ReadLine();</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">}</span></p>
<p class="MsoListParagraphCxSpFirst" style="line-height:normal;margin:0 0 .0001pt 1.5in;"><span style="font-size:10pt;">}</span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin-bottom:.0001pt;line-height:normal;">
<p class="MsoListParagraphCxSpMiddle" style="margin-bottom:.0001pt;line-height:normal;"><strong><span style="font-size:10pt;color:#000000;">CLIENT</span></strong></p>
<ol>
<li>
<div class="MsoListParagraphCxSpMiddle" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;color:#000000;">At first create a solution name “Client” in visual studio </span></div>
</li>
<li>
<div class="MsoListParagraphCxSpMiddle" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;">Add a console project Name “Client” in the solution.</span></div>
</li>
<li>
<div class="MsoListParagraphCxSpMiddle" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;">Add the reference of “SharedLibrary.dll”.</span></div>
</li>
<li>
<div class="MsoListParagraphCxSpLast" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;">The main method will be like this(if the client is in your local machine then it will “localhost”. If the client is in another machine then put the machine name in the “localhost”)</span></div>
</li>
</ol>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Collections.Generic;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Text;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Runtime.Remoting;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Runtime.Remoting.Channels.Http;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Runtime.Remoting.Services;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> System.Runtime.Remoting.Channels;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">using</span><span style="font-size:10pt;"> SharedLibrary;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;color:#0000ff;">namespace</span><span style="font-size:10pt;"> Client</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">Program</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> Main(<span style="color:#0000ff;">string</span>[] args)</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">HttpChannel</span> Chn = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">HttpChannel</span>();</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">ChannelServices</span>.RegisterChannel(Chn);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">ICustomerMgr</span> oCustomerMgr = (<span style="color:#2b91af;">ICustomerMgr</span>) <span style="color:#2b91af;">Activator</span>.GetObject(<span style="color:#0000ff;">typeof</span>(<span style="color:#2b91af;">ICustomerMgr</span>),<span style="color:#a31515;">&#8220;http://localhost:1234/sadi.com&#8221;</span>);//if the client is in your local machine then it will //“localhost”. If the client is in another machine then put the //machine name in the “localhost”</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">Console</span>.WriteLine(<span style="color:#a31515;">&#8220;Before Change :&#8221;</span> + oCustomerMgr.Number);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">oCustomerMgr.Number += 100;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">Console</span>.WriteLine(<span style="color:#a31515;">&#8220;After Change :&#8221;</span> + oCustomerMgr.Number);</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;"><span style="color:#2b91af;">Console</span>.ReadLine();</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1in;"><span style="font-size:10pt;">}</span></p>
<p class="MsoNormal" style="text-indent:.5in;line-height:normal;margin:0 0 .0001pt .5in;"><span style="font-size:10pt;">}</span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 76.5pt;"><span style="font-size:10pt;"> 5. Build the programe.</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt .75in;">
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt .75in;"><strong><span style="font-size:10pt;">Execute The Remoting Process</span></strong></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt .75in;"><strong> </strong></p>
<ol>
<li>
<div class="MsoListParagraph" style="text-indent:-.25in;line-height:normal;margin:0 0 .0001pt 1.5in;"><span style="font-size:10pt;">At first run the surver ..the output will show in console—</span></div>
</li>
</ol>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1.25in;"><span style="font-size:10pt;color:#a31515;">Enter any key to stop the server&#8230;</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1.25in;"><span style="font-size:10pt;"> 2.  Then open the client and run the output will be—</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1.25in;"><span style="font-size:10pt;color:#a31515;">Before Change :100</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 .0001pt 1.25in;"><span style="font-size:10pt;color:#a31515;">After Change :200</span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/58/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/58/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=58&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/07/06/58/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>ADO.NET &#8211; DataReader(Connected) and DataSet(Disconnected) in C# .Net with Examples</title>
		<link>http://sadi02.wordpress.com/2008/06/30/adonet-datareaderconnected-and-datasetdisconnected-in-c-net-with-examples/</link>
		<comments>http://sadi02.wordpress.com/2008/06/30/adonet-datareaderconnected-and-datasetdisconnected-in-c-net-with-examples/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 09:07:36 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=52</guid>
		<description><![CDATA[ADO.NET provides a relatively common way to interact with data sources, but comes in different sets of libraries for each way you can talk to a data source.  Core Objects of .NET Framework Data Providers The following table outlines the &#8230; <a href="http://sadi02.wordpress.com/2008/06/30/adonet-datareaderconnected-and-datasetdisconnected-in-c-net-with-examples/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=52&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;"><span style="font-family:Calibri;"><strong>ADO.NET provides a relatively common way to interact with data sources, but comes in different sets of libraries for each way you can talk to a data source.</strong> </span></span></p>
<h1 style="margin:auto 0;"><span style="font-size:11pt;font-family:&quot;">Core Objects of .NET Framework Data Providers</span></h1>
<p><span style="font-size:11pt;font-family:&quot;">The following table outlines the four core objects that make up a .NET Framework data provider.</span></p>
<table class="MsoNormalTable" style="width:100%;border:windowtext 1pt solid;" border="1" cellpadding="0" width="100%">
<tbody>
<tr>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;">
<p class="MsoNormal" style="text-align:center;margin:0 0 10pt;" align="center"><strong><span style="font-size:12pt;line-height:115%;"><span style="font-family:Calibri;">Object </span></span></strong></p>
</td>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;">
<p class="MsoNormal" style="text-align:center;margin:0 0 10pt;" align="center"><strong><span style="font-size:12pt;line-height:115%;"><span style="font-family:Calibri;">Description </span></span></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><strong><span style="font-size:11pt;font-family:&quot;">Connection</span></strong></td>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><span style="font-size:11pt;font-family:&quot;">Establishes a connection to a specific data source. The base class for all <strong>Connection</strong> objects is the DbConnection class.</span></td>
</tr>
<tr>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><strong><span style="font-size:11pt;font-family:&quot;">Command</span></strong></td>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><span style="font-size:11pt;font-family:&quot;">Executes a command against a data source. Exposes <strong>Parameters</strong> and can execute within the scope of a <strong>Transaction</strong> from a <strong>Connection</strong>. The base class for all <strong>Command</strong> objects is the DbCommand class.</span></td>
</tr>
<tr>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><strong><span style="font-size:11pt;font-family:&quot;">DataReader</span></strong></td>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><span style="font-size:11pt;font-family:&quot;">Reads a forward-only, read-only stream of data from a data source. The base class for all <strong>DataReader</strong> objects is the DbDataReader class.</span></td>
</tr>
<tr>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><strong><span style="font-size:11pt;font-family:&quot;">DataAdapter</span></strong></td>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><span style="font-size:11pt;font-family:&quot;">Populates a <strong>DataSet</strong> and resolves updates with the data source. The base class for all <strong>DataAdapter</strong> objects is the DbDataAdapter class.</span></td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;"> </span></p>
<p><span style="font-size:11pt;font-family:&quot;">In addition to the core classes listed in the table above, a .NET Framework data provider also contains the classes listed in the following table.</span></p>
<table class="MsoNormalTable" style="width:100%;border:windowtext 1pt solid;" border="1" cellpadding="0" width="100%">
<tbody>
<tr>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;">
<p class="MsoNormal" style="text-align:center;margin:0 0 10pt;" align="center"><strong><span style="font-size:12pt;line-height:115%;"><span style="font-family:Calibri;">Object </span></span></strong></p>
</td>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;">
<p class="MsoNormal" style="text-align:center;margin:0 0 10pt;" align="center"><strong><span style="font-size:12pt;line-height:115%;"><span style="font-family:Calibri;">Description </span></span></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><strong><span style="font-size:11pt;font-family:&quot;">Transaction</span></strong></td>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><span style="font-size:11pt;font-family:&quot;">Enables you to enlist commands in transactions at the data source. The base class for all <strong>Transaction</strong> objects is the DbTransaction class.</span></td>
</tr>
<tr>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><strong><span style="font-size:11pt;font-family:&quot;">Parameter</span></strong></td>
<td style="background-color:transparent;border:windowtext 1pt solid;padding:3.75pt;"><span style="font-size:11pt;font-family:&quot;">Defines input, output, and return value parameters for commands and stored procedures. The base class for all <strong>Parameter</strong> objects is the DbParameter class.</span></td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;"> </span></p>
<p><strong><span style="font-size:11pt;font-family:&quot;">SqlConnection Object </span></strong></p>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">The first thing you will need to do when interacting with a data base is to create a connection.  The connection tells the rest of the ADO.NET code which data base it is talking to.</span></p>
<h4 style="text-align:justify;margin:12pt 0 3pt;"><span style="font-weight:normal;font-size:11pt;font-family:&quot;">Creating a SqlConnection Object:</span></h4>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;"><span style="font-family:Calibri;"><span> </span>SqlConnection conn = new SqlConnection(&#8220;<span style="font-size:x-small;color:#a31515;">Server=sadi;database=test;uid=Tiger;pwd=lion</span>);<span>   </span></span></span></p>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">Table below describes common parts of a connection string.</span></p>
<h6 style="text-align:justify;"><span style="font-family:&quot;"><span style="font-size:small;">table 1.  ADO.NET Connection Strings contain certain key/value pairs for specifying how to make a data base connection.  They include the location, name of the database, and security credentials.</span></span></h6>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;"> </span></p>
<table class="MsoNormalTable" style="width:100%;margin:auto auto auto -0.4pt;" border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:center;margin:0 0 10pt;" align="center"><strong><span style="font-size:12pt;line-height:115%;"><span style="font-family:Calibri;">Connection String Parameter Name</span></span></strong></p>
</td>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:center;margin:0 0 10pt;" align="center"><strong><span style="font-size:12pt;line-height:115%;"><span style="font-family:Calibri;">Description</span></span></strong></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Data Source</span></p>
</td>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Identifies the server.  Could be local machine, machine domain name, or IP Address.</span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Initial Catalog</span></p>
</td>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Data base name.</span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Integrated Security</span></p>
</td>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Set to SSPI to make connection with user&#8217;s Windows login</span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">User ID</span></p>
</td>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Name of user configured in SQL Server.</span></p>
</td>
</tr>
<tr>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Password</span></p>
</td>
<td style="background-color:transparent;border:#f0f0f0;padding:0;">
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Password matching SQL Server User ID.</span></p>
</td>
</tr>
</tbody>
</table>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">Integrated Security is secure when you are on a single machine doing development.  However, you will often want to specify security based on a SQL Server User ID with permissions set specifically for the application you are using.  The following shows a connection string, using the User ID and Password parameters:</span></p>
<p><span style="font-size:11pt;font-family:&quot;">SqlConnection conn = new SqlConnection(&#8220;Data Source=DatabaseServer;Initial Catalog=sadi;User ID=YourUserID;Password=YourPassword&#8221;);</span></p>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">Notice how the Data Source is set to DatabaseServer to indicate that you can identify a data base located on a different machine, over a LAN, or over the Internet.  Additionally, User ID and Password replace the Integrated Security parameter.</span></p>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">The sequence of operations occurring in the lifetime of a SqlConnection are as follows:</span></p>
<ol type="1">
<li class="MsoNormal"><span style="font-size:small;font-family:Calibri;">Instantiate the SqlConnection. </span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Calibri;">Open the connection. </span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Calibri;">Pass the connection to other ADO.NET objects. </span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Calibri;">Perform data base operations with the other ADO.NET objects. </span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Calibri;">Close the connection.</span></li>
</ol>
<p style="text-align:justify;"><strong><span style="font-size:11pt;font-family:&quot;">SqlCommand Object</span></strong></p>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">A SqlCommand object allows you to specify what type of interaction you want to perform with a data base.  For example, you can do select, insert, modify, and delete commands on rows of data in a data base table.</span></p>
<h4 style="text-align:justify;margin:12pt 0 3pt;"><span style="font-size:11pt;font-family:&quot;">SqlDataReader Object</span></h4>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">A SqlDataReader is a type that is good for reading data in the most efficient manner possible.  You can *not* use it for writing data.  SqlDataReaders are often described as fast-forward firehose-like streams of data.</span></p>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">You can read from SqlDataReader objects in a forward-only sequential manner.  Once you&#8217;ve read some data, you must save it because you will not be able to go back and read it again.</span></p>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p><strong><span style="font-size:11pt;font-family:&quot;">Example on the use of these ADO.NET objects…</span></strong></p>
<p><strong><span style="font-size:11pt;font-family:&quot;">Getting Data from database :</span></strong></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:#0000ff;">string</span><span> sConnectionString = <span style="color:#a31515;">&#8220;Server=sadi;database=test;uid=Tiger;pwd=Lion&#8221;</span>; </span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#2b91af;">SqlConnection</span> oConn = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SqlConnection</span>(sConnectionString);</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#0000ff;">string</span> sQueryString = <span style="color:#a31515;">&#8220;select * from tblUser&#8221;</span>;</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#2b91af;">SqlCommand</span> oCommand = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SqlCommand</span>(sQueryString);</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>oCommand.Connection = oConn;</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>oConn.Open();</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#2b91af;">SqlDataReader</span> oReader = oCommand.ExecuteReader();</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#2b91af;">ArrayList</span> oList = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">ArrayList</span>();</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#0000ff;">if</span> (oReader.HasRows)</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>{</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span><span style="color:#0000ff;">while</span> (oReader.Read())</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span>{</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                    </span>oList.Add(oReader[0].ToString());</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                    </span>oList.Add(oReader[1].ToString());<span>                    </span></span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span>}</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>   </span><span>         </span>}</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>oReader.Close();</span></span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>oConn.Close();</span></span></span></p>
<p><strong><span style="font-size:11pt;font-family:&quot;">Getting single data from database:</span></strong></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:#008000;"> </span>SqlCommand cmd = <span style="color:#0000ff;">new</span> SqlCommand(&#8220;select count(*) from Categories&#8221;, <span>connection</span>); </span></span><span style="color:#008000;"><br />
<span style="font-size:small;font-family:Calibri;"> </span></span><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:#0000ff;">int </span>count = (<span style="color:#0000ff;">int</span>)cmd.ExecuteScalar(); </span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><strong><span style="font-size:small;"><span style="font-family:Calibri;">Inserting data to database:</span></span></strong></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:#0000ff;">string</span><span> conectionstring = <span style="color:#800000;">&#8220;Server=sadi;database=test_db;uid=Tiger;pwd=Lion&#8221;</span>;<span>            </span><span style="color:#008080;">SqlConnection</span> connection = <span style="color:#0000ff;">new</span> <span style="color:#008080;">SqlConnection</span>(conectionstring);</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#0000ff;">string</span> querystring = <span style="color:#800000;">&#8220;insert into customer values(&#8216;&#8221;</span>+ <span style="color:#008080;">Guid</span>.NewGuid() + <span style="color:#800000;">&#8220;&#8216;,&#8217;&#8221;</span>+ txtCustName.Text+ <span style="color:#800000;">&#8220;&#8216;)&#8221;</span>;</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#008080;">SqlCommand</span> oSqlCommand = <span style="color:#0000ff;">new</span> <span style="color:#008080;">SqlCommand</span>(querystring);</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>connection.Open();</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>oSqlCommand.Connection = connection;</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>oSqlCommand.ExecuteNonQuery();</span></span></span></p>
<h4 style="margin:12pt 0 3pt;"><span style="font-size:11pt;font-family:&quot;">Working with Disconnected Data &#8211; The DataSet and SqlDataAdapter</span></h4>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">A DataSet is an in-memory data store that can hold numerous tables.  DataSets only hold data and do not interact with a data source.  It is the SqlDataAdapter that manages connections with the data source and gives us disconnected behavior.  The SqlDataAdapter opens a connection only when required and closes it as soon as it has performed its task.  For example, the SqlDataAdapter performs the following tasks when filling a DataSet with data:</span></p>
<ol type="1">
<li class="MsoNormal"><span style="font-size:small;font-family:Calibri;">Open connection </span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Calibri;">Retrieve data into DataSet </span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Calibri;">Close connection</span></li>
</ol>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">and performs the following actions when updating data source with DataSet changes:</span></p>
<ol type="1">
<li class="MsoNormal"><span style="font-size:small;font-family:Calibri;">Open connection </span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Calibri;">Write changes from DataSet to data source </span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Calibri;">Close connection</span></li>
</ol>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">In between the Fill and Update operations, data source connections are closed and you are free to read and write data with the DataSet as you need.  These are the mechanics of working with disconnected data.</span></p>
<h4 style="text-align:justify;margin:12pt 0 3pt;"><span style="font-size:11pt;font-family:&quot;">Creating a DataSet Object</span></h4>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">There isn&#8217;t anything special about instantiating a DataSet.  You just create a new instance, just like any other object:</span></p>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">DataSet dsCustomers = <span style="color:#0000ff;">new</span> DataSet();</span></p>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">The DataSet constructor doesn&#8217;t require parameters.  However there is one overload that accepts a string for the name of the DataSet</span></p>
<h4 style="margin:12pt 0 3pt;"><span style="font-size:11pt;font-family:&quot;">Creating A SqlDataAdapter</span></h4>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">The SqlDataAdapter holds the SQL commands and connection object for reading and writing data.  You initialize it with a SQL select statement and connection object:</span></p>
<p><span style="font-size:11pt;font-family:&quot;">SqlDataAdapter daCustomers = <span style="color:#0000ff;">new</span> SqlDataAdapter(<br />
    &#8220;select CustomerID, CompanyName from Customers&#8221;, conn); </span></p>
<p style="text-align:justify;"><span style="font-size:11pt;font-family:&quot;">As indicated earlier, the SqlDataAdapter contains all of the commands necessary to interact with the data source.  </span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">The Example of DataSet of select query is given below-</span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:#0000ff;">using</span><span> System;</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:#0000ff;">using</span><span> System.Collections.Generic;</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:#0000ff;">using</span><span> System.Text;</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:#0000ff;">using</span><span> System.Data.SqlClient;</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:#0000ff;">using</span><span> System.Data;</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;font-family:Calibri;"> </span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:#0000ff;">namespace</span><span> ConsoleApplication1</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;">{</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>    </span><span style="color:#0000ff;">class</span> <span style="color:#2b91af;">Program</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>    </span>{</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>        </span><span style="color:#2b91af;">DataSet</span> dataset = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">DataSet</span>();</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>        </span><span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> Main(<span style="color:#0000ff;">string</span>[] args)</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>        </span>{</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;font-family:Calibri;"> </span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#2b91af;">Program</span> p = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">Program</span>();</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>p.TestRead();</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>p.printTest();</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#2b91af;">Console</span>.ReadKey();</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>        </span>}</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;font-family:Calibri;"> </span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>        </span><span style="color:#0000ff;">private</span> <span style="color:#0000ff;">void</span> TestRead()</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>        </span>{</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#2b91af;">SqlConnection</span> oConnection = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SqlConnection</span>(<span style="color:#a31515;">&#8220;Server=sadi;database=test;uid=Tiger;pwd=Lion&#8221;</span>);</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;font-family:Calibri;"> </span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#0000ff;">try</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>{</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span>oConnection.Open();<span>               </span></span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span><span style="color:#2b91af;">SqlDataAdapter</span> adapter = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SqlDataAdapter</span>();</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>   </span><span>             </span>adapter.SelectCommand = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SqlCommand</span>(<span style="color:#a31515;">&#8220;select * from tblUser&#8221;</span>, oConnection);</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span>adapter.Fill(dataset,<span style="color:#a31515;">&#8220;TEST&#8221;</span>);</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span>oConnection.Close();</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span></span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>}</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#0000ff;">catch</span> (<span style="color:#2b91af;">SqlException</span> oSqlExp)</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>          </span><span>  </span>{</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span><span style="color:#2b91af;">Console</span>.WriteLine(<span style="color:#a31515;">&#8220;&#8221;</span> + oSqlExp.Message);</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>}</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#0000ff;">catch</span> (<span style="color:#2b91af;">Exception</span> oEx)</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>{</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span><span style="color:#2b91af;">Console</span>.WriteLine(<span style="color:#a31515;">&#8220;&#8221;</span> + oEx.Message);</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>}</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span><span style="color:#0000ff;">finally</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>{</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span><span style="color:#0000ff;">if</span> (oConnection != <span style="color:#0000ff;">null</span>)</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span>{</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                    </span>oConnection.Close();</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span>}</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>            </span>}</span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"><span>        </span>}</span></span></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/52/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/52/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=52&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/06/30/adonet-datareaderconnected-and-datasetdisconnected-in-c-net-with-examples/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>Log4Net Tutorial in C# .net (How can I show log in a file?)</title>
		<link>http://sadi02.wordpress.com/2008/06/29/log4net-tutorial-in-c-net-how-can-i-show-log-in-a-file/</link>
		<comments>http://sadi02.wordpress.com/2008/06/29/log4net-tutorial-in-c-net-how-can-i-show-log-in-a-file/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 07:32:48 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=50</guid>
		<description><![CDATA[For logging service my choice is log4net from Apache Software Foundation. It is easy to use, open source and well documented. There are also so many logging services but they are not open source. So it is an easy and &#8230; <a href="http://sadi02.wordpress.com/2008/06/29/log4net-tutorial-in-c-net-how-can-i-show-log-in-a-file/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=50&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:12pt;line-height:115%;">For logging service my choice is log4net from Apache Software Foundation. It is easy to use, open source and well documented. There are also so many logging services but they are not open source. So it is an easy and best solution for you.</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:12pt;line-height:115%;"><strong>Write Log in Console procedures are given below-</strong></span></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent:-.25in;margin:0 0 0 39.55pt;"><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">1.</span><span style="font:7pt;"> </span></span><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">Download log4net from </span></span><a href="http://logging.apache.org/log4net/download.html"><span style="font-size:10pt;color:windowtext;line-height:115%;"><span style="font-family:Calibri;">http://logging.apache.org/log4net/download.html</span></span></a></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent:-.25in;margin:0 0 0 39.55pt;"><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">2.</span><span style="font:7pt;"> </span></span><span style="font-family:Calibri;"><span style="font-size:10pt;line-height:115%;">Open visual studio and create a new console application.</span></span></p>
<p class="MsoListParagraphCxSpLast" style="text-indent:-.25in;line-height:200%;margin:0 0 10pt 39.55pt;"><span style="font-size:10pt;line-height:200%;"><span style="font-family:Calibri;">3.</span><span style="font:7pt;"> </span></span><span style="font-size:10pt;line-height:200%;"><span style="font-family:Calibri;">Add to the project a reference to the \bin\net\2.0\release\log4net.dll assembly in the log4net distribution. </span></span></p>
<p class="MsoListParagraphCxSpLast" style="text-indent:-.25in;line-height:200%;margin:0 0 10pt 39.55pt;"><span style="font-size:10pt;line-height:200%;"><span style="font-family:Calibri;"><span style="font-size:10pt;line-height:115%;">4.<span style="font:7pt;"> </span></span><span style="font-size:10pt;line-height:115%;">write the main method like this</span> </span></span><span style="font-size:10pt;line-height:200%;"><span style="font-family:Calibri;"> </span></span></p>
<p><pre class="brush: csharp;">
using System;
using System.Collections.Generic;
using System.Text;
using log4net;
using log4net.Config;

namespace LogPractice
{
  class Program
  {
    void Main(string[] args)
    {
     log4net.Config.BasicConfigurator.Configure();
     log4net.ILog log = log4net.LogManager.GetLogger(Program);
log.Debug(&quot;THis is sadi's world!&quot;);
     log.Info(&quot;How beautyful the console looks like&quot;);
     log.Warn(&quot;You are great you did this&quot;);
     log.Error(&quot;Who make you know is the best&quot;);
     log.Fatal(&quot;sadi the great&quot;);
     Console.ReadLine();  // Hold the output
     }
   }
 }
</pre></p>
<p><span style="font-size:12pt;line-height:115%;"><strong>Using Log4net Write log in a file, Procedures are given below-</strong></span></p>
<p><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">1.</span><span style="font:7pt;"> </span></span><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">Download log4net from </span></span><a href="http://logging.apache.org/log4net/download.html"><span style="font-size:10pt;color:windowtext;line-height:115%;"><span style="font-family:Calibri;">http://logging.apache.org/log4net/download.html</span></span></a></p>
<p><span style="font-size:12pt;line-height:115%;"><span style="font-family:Calibri;">2.</span><span style="font:7pt;"> </span></span><span style="font-size:12pt;line-height:115%;"><span style="font-family:Calibri;">Open visual studio and create an application.</span></span></p>
<p><span style="font-size:10pt;line-height:200%;"><span style="font-family:Calibri;">3.</span><span style="font:7pt;"> </span></span><span style="font-size:10pt;line-height:200%;"><span style="font-family:Calibri;">Add to the project a reference to the \bin\net\2.0\release\log4net.dll assembly in the log4net distribution. </span></span></p>
<p><span style="font-size:12pt;line-height:115%;"><span style="font-family:Calibri;">4.</span><span style="font:7pt;"> </span></span><span style="font-size:12pt;line-height:115%;"><span style="font-family:Calibri;">Now put this web.config/app.config file in configuration tag.</span></span></p>
<p><pre class="brush: xml;">
 &lt;configSections&gt;
   &lt;section name=&quot;log4net&quot; type=&quot;log4net.Config.Log4NetConfigurationSectionHandler,Log4net&quot;/&gt;
 &lt;/configSections&gt;
 &lt;log4net&gt;
 &lt;root&gt;
  &lt;level value=&quot;DEBUG&quot; /&gt;
  &lt;appender-ref ref=&quot;LogFileAppender&quot; /&gt;
 &lt;/root&gt;
 &lt;appender name=&quot;LogFileAppender&quot; type=&quot;log4net.Appender.RollingFileAppender&quot; &gt;
  &lt;param name=&quot;File&quot; value=&quot;C:\Try\logger\logger\bin\Debug\log.txt&quot; /&gt;
  &lt;param name=&quot;AppendToFile&quot; value=&quot;true&quot; /&gt;
  &lt;rollingStyle value=&quot;Size&quot; /&gt;
  &lt;maxSizeRollBackups value=&quot;10&quot; /&gt;
  &lt;maximumFileSize value=&quot;10MB&quot; /&gt;
  &lt;staticLogFileName value=&quot;true&quot; /&gt;
  &lt;layout type=&quot;log4net.Layout.PatternLayout&quot;&gt;
  &lt;param name=&quot;ConversionPattern&quot; value=&quot;%-5p%d{yyyy-MM-dd hh:mm:ss} – %m%n&quot; /&gt;
  &lt;/layout&gt;
 &lt;/appender&gt;
 &lt;/log4net&gt;
</pre></p>
<p><span style="font-size:7.5pt;line-height:115%;">this configuration creates a log file in C:\temp\log.txt.</span></p>
<p><span style="font-family:Calibri;"> </span></p>
<p><span style="font-size:10pt;line-height:115%;">5.<span style="font:7pt;"> </span></span><span style="font-size:10pt;line-height:115%;">To use log4net put this as a local class variable:   protected static readonly ILog log =<br />
LogManager.GetLogger(Program);</span></p>
<p><span style="font-family:Calibri;"><span style="font-family:Calibri;"><span style="font-family:Calibri;"> </span></span></span></p>
<p><span style="font-family:Calibri;"><span style="font-family:Calibri;"> </span></span></p>
<p><span style="font-size:10pt;line-height:115%;"><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;"><span style="font-family:Calibri;">6.    And do this to write messages in the log file.   log.Debug(&#8220;this text will be in log file&#8221;);</span></span></span></span></p>
<p><span style="font-family:Calibri;">For Example: </span></p>
<p><span style="font-size:10pt;"><span style="font:7pt;"> </span></span></p>
<p><pre class="brush: csharp;">
using System;
using System.Collections.Generic;
using System.Text;
using log4net;
using log4net.Config;

namespace &lt;code&gt;LogPractice&lt;/code&gt;
{
 class Program
 {
 protected static readonly ILog log = LogManager.GetLogger(typeof(Program));
 static void Main(string[] args)
 {

 log4net.Config.XmlConfigurator.Configure();
 //————————–
 log.Warn(&quot;sadi the great&quot;);
 }
 }
}</pre></p>
<p><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">7.</span><span style="font:7pt;"> </span></span><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">Compile and run the application, and you&#8217;ll see output to the console</span></span></p>
<p>N.B : if you run this code log will show in the c:/temp/log.txt file.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/50/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/50/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=50&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/06/29/log4net-tutorial-in-c-net-how-can-i-show-log-in-a-file/feed/</wfw:commentRss>
		<slash:comments>88</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>What is the main difference between process and procedure in Software Engineering?</title>
		<link>http://sadi02.wordpress.com/2008/06/25/what-is-the-main-difference-between-process-and-procedure-in-sdlc/</link>
		<comments>http://sadi02.wordpress.com/2008/06/25/what-is-the-main-difference-between-process-and-procedure-in-sdlc/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 05:43:39 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[SDLC]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=48</guid>
		<description><![CDATA[  What is the best and easiest way to explain the difference? I usually say process is “what to do” and the procedure is “how to do”. A process is any series of actions or operations viewed as a whole, &#8230; <a href="http://sadi02.wordpress.com/2008/06/25/what-is-the-main-difference-between-process-and-procedure-in-sdlc/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=48&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:12pt;line-height:115%;">What is the best and easiest way to explain the difference? I usually say process is “what to do” and the procedure is “how to do”. A process is any series of actions or operations viewed as a whole, with a start and finish. A procedure is a series of actions or operations viewed as discrete steps. A process may not even have steps <span style="color:#000000;">but may simply be a continuum (the process of fermentation, etc.). Additionally, a process is often something one observes, whereas a procedure is something one executes. And I usually say procedure is the steps you take to reach a goal.</span> </span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=48&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/06/25/what-is-the-main-difference-between-process-and-procedure-in-sdlc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>Find data from a data structure(List, Dictionary) using delegate in c# .Net</title>
		<link>http://sadi02.wordpress.com/2008/06/23/find-data-from-a-data-structurelist-dictionary-using-delegate-in-c-net/</link>
		<comments>http://sadi02.wordpress.com/2008/06/23/find-data-from-a-data-structurelist-dictionary-using-delegate-in-c-net/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 04:23:32 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=46</guid>
		<description><![CDATA[using System; using System.Collections.Generic; using System.Text;  namespace MyDelegate {     class Program     {         static void Main(string[] args)         {             List&#60;string&#62; m_liName=new List&#60;string&#62;();             m_liName.Add("sadi");             m_liName.Add("pothik");             m_liName.Add("shiman");             m_liName.Add("shuvro");             m_liName.Add("arif");               //**************Find a single &#8230; <a href="http://sadi02.wordpress.com/2008/06/23/find-data-from-a-data-structurelist-dictionary-using-delegate-in-c-net/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=46&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>using System;
using System.Collections.Generic;
using System.Text; 
namespace MyDelegate
{
    class Program
    {
        static void Main(string[] args)
        {
            List&lt;string&gt; m_liName=new List&lt;string&gt;();
            m_liName.Add("sadi");
            m_liName.Add("pothik");
            m_liName.Add("shiman");
            m_liName.Add("shuvro");
            m_liName.Add("arif");
 
            //**************Find a single data
            string sName = m_liName.Find(delegate(string s)
            { return s.Equals("sadi"); });

            //**************Find multiple data
            List&lt;string&gt; liName1 = m_liName.FindAll(delegate(string s)
            { return s.Equals("sh"); });

            //*************If contains the data**********
            bool bIsSuccess = m_liName.Contains("sadi");
            // output: true
        }
    }
}</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/46/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/46/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=46&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/06/23/find-data-from-a-data-structurelist-dictionary-using-delegate-in-c-net/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>What&#8217;s the difference between override and new in C#? (Use of override and new modifier)</title>
		<link>http://sadi02.wordpress.com/2008/06/04/whats-the-difference-between-override-and-new-in-c-use-of-override-and-new-modifier/</link>
		<comments>http://sadi02.wordpress.com/2008/06/04/whats-the-difference-between-override-and-new-in-c-use-of-override-and-new-modifier/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 09:57:27 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=42</guid>
		<description><![CDATA[  new is used for method hiding and override is used for method overriding&#8230; This is all to do with polymorphism. When a virtual method is called on a reference, the actual type of the object that the reference refers &#8230; <a href="http://sadi02.wordpress.com/2008/06/04/whats-the-difference-between-override-and-new-in-c-use-of-override-and-new-modifier/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=42&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="line-height:normal;margin:0;"> </p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;">new is used for method hiding and override is used for method overriding&#8230;</span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;">This is all to do with polymorphism. When a virtual method is called on a reference, the actual type of the object that the reference refers to is used to decide which method implementation to use. When a method of a base class is overridden in a derived class, the version in the derived class is used, even if the calling code didn&#8217;t &#8220;know&#8221; that the object was an instance of the derived class. For instance: </span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>public class Base</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"> </p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>{</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>public virtual void SomeMethod()</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>{</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span></span><span style="color:#2b91af;">Console</span><span>.WriteLine(<span style="color:#a31515;">&#8220;Base:: SomeMethod&#8221;</span>);</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>}</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>}</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p> </p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>public class Derived : Base</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>{</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>public override void SomeMethod()</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>{</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="color:#2b91af;">Console</span><span>.WriteLine(<span style="color:#a31515;">&#8220;Derived:: SomeMethod&#8221;</span>);</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>}</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>}</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p> </p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>&#8230;</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p> </p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>Base b = new Derived();</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>b.SomeMethod();//output : </span><span style="color:#a31515;">Derived:: SomeMethod</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p> </p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"></span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 12pt;"><span><span style="font-size:small;"><span style="font-family:Calibri;">will end up calling Derived.SomeMethod if that overrides Base.SomeMethod. </span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><br />
<span style="font-size:small;"><span style="font-family:Calibri;">Now, if you use the new keyword instead of override, the method in the derived class doesn&#8217;t override the method in the base class, it merely hides it. In that case, code like this: </span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>public class Base</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>{</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>public virtual void SomeOtherMethod()</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="color:#2b91af;">Console</span><span>.WriteLine(<span style="color:#a31515;">&#8220;Base:: SomeMethod&#8221;</span>);</span></span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>}</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>}</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p> </p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>public class Derived : Base</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>{</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>public new void SomeOtherMethod()</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>{</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="color:#2b91af;">Console</span><span>.WriteLine(<span style="color:#a31515;">&#8220;Derived:: SomeMethod&#8221;</span>);</span></span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>}</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>}</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p> </p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>&#8230;</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p> </p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p> </p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>Base b = new Derived();</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>Derived d = new Derived();</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>b.SomeOtherMethod();//output: Base::SomeMethod</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span>d.SomeOtherMethod();//output: Derived::SomeMethod</span></p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p> </p>
<div class="MsoNormal" style="line-height:normal;margin:0;"></div>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;"></span></span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span><span style="font-size:small;font-family:Calibri;">Will first call Base.SomeOtherMethod , then Derived.SomeOtherMethod . They&#8217;re effectively two entirely separate methods which happen to have the same name, rather than the derived method overriding the base method.<span><span style="font-size:small;font-family:Calibri;"><strong>If you don&#8217;t specify either new or overrides, the resulting output is the same as if you specified new, but you&#8217;ll also get a compiler warning (as you may not be aware that you&#8217;re hiding a method in the base class method, or indeed you may have wanted to override it, and merely forgot to include the keyword).</strong></span></span></span></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=42&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/06/04/whats-the-difference-between-override-and-new-in-c-use-of-override-and-new-modifier/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>Polymorphism, Method Hiding and Overriding in C#</title>
		<link>http://sadi02.wordpress.com/2008/06/04/polymorphism-method-hiding-and-overriding-in-c/</link>
		<comments>http://sadi02.wordpress.com/2008/06/04/polymorphism-method-hiding-and-overriding-in-c/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 08:49:17 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=40</guid>
		<description><![CDATA[Overview One of the fundamental concepts of object oriented software development is polymorphism. The term polymorphism (from the Greek meaning &#8220;having multiple forms&#8221;) in OO is the characteristic of being able to assign a different meaning or usage to something &#8230; <a href="http://sadi02.wordpress.com/2008/06/04/polymorphism-method-hiding-and-overriding-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=40&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="color:black;"><span style="font-size:small;"><span style="font-family:Calibri;">Overview </span></span></span></strong></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:black;">One of the fundamental concepts of object oriented software development is <strong>polymorphism</strong>. The term polymorphism (from the Greek meaning &#8220;having multiple forms&#8221;) in </span><span style="color:black;">OO</span><span style="color:black;"> is the characteristic of being able to assign a different meaning or usage to something in different contexts &#8211; specifically, to allow a variable to refer to more than one type of object. </span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="color:black;"><span style="font-size:small;"><span style="font-family:Calibri;">Inherited Methods </span></span></span></strong></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:black;">A method </span><span style="color:black;">Sadi()</span><span style="color:black;"> which is declared in the base class </span><span style="color:black;">A</span><span style="color:black;"> and not redeclared in classes </span><span style="color:black;">B</span><span style="color:black;"> or </span><span style="color:black;">C</span><span style="color:black;"> is inherited in the two subclasses </span></span></span></p>
<pre><span style="color:black;">    using System;
    namespace Polymorphism
    {
        class A
        {
            public void Sadi() { Console.WriteLine("A::Sadi</span><span style="color:black;">()</span><span style="color:black;">"); }
        }

        class B : A {}

        class Test
        {
            static void Main(string[] args)
            {
                A a = new A();
                a.Sadi();  </span><span style="color:blue;">// output --&gt; "A::Sadi()"</span><span style="color:black;">

                B b = new B();
                </span><span style="color:black;">b</span><span style="color:black;">.Sadi();  </span><span style="color:blue;">// output --&gt; "A::Sadi()"</span><span style="color:black;">
            }
        }
    }
      </span></pre>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:black;">The method </span><span style="color:black;">Sadi()</span><span style="color:black;"> can be overridden in classes </span><span style="color:black;">B</span><span style="color:black;"> and </span><span style="color:black;">C</span><span style="color:black;">: </span></span></span></p>
<pre><span style="color:black;">    using System;
    namespace Polymorphism
    {
        class A
        {
              public void Sadi() { Console.WriteLine("A::Sadi</span><span style="color:black;">()</span><span style="color:black;">"); }
        }

        class B : A
        {
              public void Sadi() { Console.WriteLine("B::Sadi</span><span style="color:black;">()</span><span style="color:black;">"); }
        }

        class Test
        {
            static void Main(string[] args)
            {
                A a;
                B b;

                a = new A();
                b = new B();
                a.Sadi();  </span><span style="color:blue;">// output --&gt; "A::Sadi()"</span><span style="color:black;">
                b.Sadi();  </span><span style="color:blue;">// output --&gt; "B::Sadi()"</span><span style="color:black;">

                a = new B();
                a.Sadi();  </span><span style="color:blue;">// output --&gt; "A::Sadi()"</span><span style="color:black;">
            }
        }
    } </span></pre>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="color:black;"><span style="font-size:small;font-family:Calibri;"> </span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="color:black;"><span style="font-size:small;"><span style="font-family:Calibri;">This issue will be discussed in section Hiding and Overriding Methods. </span></span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="color:black;"><span style="font-size:small;"><span style="font-family:Calibri;">Methods (Use of override keyword)Virtual and Overridden </span></span></span></strong></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:black;">Only if a method is declared virtual, derived classes can override this method if they are explicitly declared to override the virtual base class method with the </span><strong><span style="color:black;">override</span></strong><span style="color:black;"> keyword. </span></span></span></p>
<pre><span style="color:black;">    using System;
    namespace Polymorphism
    {
        class A
        {
            public virtual void Sadi() { Console.WriteLine("A::Sadi</span><span style="color:black;">()</span><span style="color:black;">"); }
        }

        class B : A
        {
            public override void Sadi() { Console.WriteLine("B::Sadi</span><span style="color:black;">()</span><span style="color:black;">"); }
        }

        class Test
        {
            static void Main(string[] args)
            {
                A a;
                B b;

                a = new A();
                b = new B();
                a.Sadi();  </span><span style="color:blue;">// output --&gt; "A::Sadi()"</span><span style="color:black;">
                b.Sadi();  </span><span style="color:blue;">// output --&gt; "B::Sadi()"</span><span style="color:black;">

                a = new B();
                a.Sadi();  </span><span style="color:blue;">// output --&gt; "B::Sadi()"</span><span style="color:black;">
            }
        }
    </span><span style="color:black;"> }</span><span style="color:black;"> </span></pre>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><strong><span style="color:black;"><span style="font-size:small;"><span style="font-family:Calibri;">Method Hiding (Use of new keyword)</span></span></span></strong></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="font-size:small;"><span style="font-family:Calibri;"><span style="color:black;">Why did the compiler in the second listing generate a warning? Because C# not only supports method overriding, <strong>but also method hiding</strong>. Simply put, if a method is not overriding the derived method, it is hiding it. A hiding method has to be declared using the </span><strong><span style="color:black;">new</span></strong><span style="color:black;"> keyword. The correct class definition in the second listing is thus: </span></span></span></p>
<pre><span style="color:black;">    using System;
    namespace Polymorphism
    {
        class A
        {
            public void Sadi() { Console.WriteLine("A::Sadi</span><span style="color:black;">()</span><span style="color:black;">"); }
        }

        class B : A
        {
            public new void Sadi() { Console.WriteLine("B::Sadi</span><span style="color:black;">()</span><span style="color:black;">"); }
        }

        class Test
        {
            static void Main(string[] args)
            {
                A a;
                B b;

                a = new A();
                b = new B();
                a.Sadi();  </span><span style="color:blue;">// output --&gt; "A::Sadi()"</span><span style="color:black;">
                b.Sadi();  </span><span style="color:blue;">// output --&gt; "B::Sadi()"</span><span style="color:black;">

                a = new B();
                a.Sadi(); </span><span style="color:blue;"> // output --&gt; "A::Sadi()"</span><span style="color:black;">
            }
        }
    } </span></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/40/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/40/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=40&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/06/04/polymorphism-method-hiding-and-overriding-in-c/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>C# Access Modifier</title>
		<link>http://sadi02.wordpress.com/2008/06/01/c-access-modifier/</link>
		<comments>http://sadi02.wordpress.com/2008/06/01/c-access-modifier/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 09:39:22 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=31</guid>
		<description><![CDATA[C# Access Modifier Meaning in Life public Marks amember as accessible from an object variable as well as any derived classes. private Marks a method as accessible only by the class that has defined the method. In C#, all members &#8230; <a href="http://sadi02.wordpress.com/2008/06/01/c-access-modifier/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=31&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<table class="MsoTableGrid" style="border-collapse:collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="border:1pt solid black;background:#948a54 none repeat scroll 0;width:239.4pt;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;text-align:center;margin:0;" align="center"><strong><span style="font-size:14pt;">C# Access Modifier</span></strong></p>
</td>
<td style="background:#948a54 none repeat scroll 0;width:239.4pt;border:1pt 1pt 1pt medium solid solid solid none black black black #f0f0f0;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;text-align:center;margin:0;" align="center"><strong><span style="font-size:14pt;">Meaning in Life</span></strong></p>
</td>
</tr>
<tr>
<td style="background:#bfbfbf none repeat scroll 0;width:239.4pt;border:medium 1pt 1pt none solid solid #f0f0f0 black black;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">public</span></span></p>
</td>
<td style="background:#bfbfbf none repeat scroll 0;width:239.4pt;border:medium 1pt 1pt medium none solid solid none #f0f0f0 black black #f0f0f0;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-family:Calibri;"><span style="font-size:12pt;"><span> </span></span><span style="font-size:12pt;">Marks amember as accessible from an object variable as well as any derived classes.</span></span></p>
</td>
</tr>
<tr>
<td style="background:#bfbfbf none repeat scroll 0;width:239.4pt;border:medium 1pt 1pt none solid solid #f0f0f0 black black;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">private</span></span></p>
</td>
<td style="background:#bfbfbf none repeat scroll 0;width:239.4pt;border:medium 1pt 1pt medium none solid solid none #f0f0f0 black black #f0f0f0;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Marks a method as accessible only by the class that has defined the</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">method. In C#, all members are private by default.</span></span></p>
</td>
</tr>
<tr>
<td style="background:#bfbfbf none repeat scroll 0;width:239.4pt;border:medium 1pt 1pt none solid solid #f0f0f0 black black;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">protected</span></span></p>
</td>
<td style="background:#bfbfbf none repeat scroll 0;width:239.4pt;border:medium 1pt 1pt medium none solid solid none #f0f0f0 black black #f0f0f0;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Marks a method as usable by the defining class, as well as any derived</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">classes. Protected methods, however, are not accessible from an object</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">variable.</span></span></p>
</td>
</tr>
<tr>
<td style="background:#bfbfbf none repeat scroll 0;width:239.4pt;border:medium 1pt 1pt none solid solid #f0f0f0 black black;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">internal</span></span></p>
</td>
<td style="background:#bfbfbf none repeat scroll 0;width:239.4pt;border:medium 1pt 1pt medium none solid solid none #f0f0f0 black black #f0f0f0;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Defines a method that is accessible by any type in the same assembly,</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">but not outside the assembly.</span></span></p>
</td>
</tr>
<tr>
<td style="background:#bfbfbf none repeat scroll 0;width:239.4pt;border:medium 1pt 1pt none solid solid #f0f0f0 black black;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">protected internal</span></span></p>
</td>
<td style="background:#bfbfbf none repeat scroll 0;width:239.4pt;border:medium 1pt 1pt medium none solid solid none #f0f0f0 black black #f0f0f0;padding:0 5.4pt;" width="319" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Defines a method whose access is limited to the current assembly or</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">types derived from the defining class in the current assembly.</span></span></p>
</td>
</tr>
</tbody>
</table>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=31&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/06/01/c-access-modifier/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>Class Modifiers and their uses in C# .Net</title>
		<link>http://sadi02.wordpress.com/2008/06/01/various-classes-and-their-uses-in-c/</link>
		<comments>http://sadi02.wordpress.com/2008/06/01/various-classes-and-their-uses-in-c/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 06:56:49 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=29</guid>
		<description><![CDATA[Class/Interface (Base class) Inheritance (Inherited class) Implementation (Interface) (Child) (Instance) Is initiated?? General Abstract Sealed Static* General Yes Yes Yes No No Yes Abstract Yes Yes Yes No No No Sealed No No No No No Yes Static No No &#8230; <a href="http://sadi02.wordpress.com/2008/06/01/various-classes-and-their-uses-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=29&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin:0 0 10pt;">
<table class="MsoTableGrid" style="border-collapse:collapse;height:169px;margin:auto 6.75pt;" border="1" cellspacing="0" cellpadding="0" width="580" align="left">
<tbody>
<tr style="height:29.9pt;">
<td style="background:#9bbb59 0 50%;width:76.5pt;height:29.9pt;border:black 1pt solid;padding:0 5.4pt;" rowspan="2" width="102" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Class/Interface (Base class)</span></span></p>
</td>
<td style="background:#9bbb59 0 50%;width:195.6pt;height:29.9pt;border:#f0f0f0;padding:0 5.4pt;" colspan="4" width="261" valign="top">
<p class="MsoNormal" style="line-height:normal;text-align:center;margin:0;" align="center"><span style="font-size:12pt;"><span style="font-family:Calibri;">Inheritance (Inherited class)</span></span></p>
<p class="MsoNormal" style="line-height:normal;text-align:center;margin:0;" align="center"><span style="font-size:12pt;"></span></p>
</td>
<td style="background:#9bbb59 0 50%;width:81.8pt;height:29.9pt;border:#f0f0f0;padding:0 5.4pt;" rowspan="2" width="109" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Implementation (Interface)</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">(Child)</span></span></p>
</td>
<td style="background:#9bbb59 0 50%;width:57.15pt;height:29.9pt;border:#f0f0f0;padding:0 5.4pt;" rowspan="2" width="76" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">(Instance)</span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Is initiated??</span></span></p>
</td>
</tr>
<tr style="height:7.35pt;">
<td style="background:#76923c 0 50%;width:49.4pt;height:7.35pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">General</span></span></p>
</td>
<td style="background:#76923c 0 50%;width:49.8pt;height:7.35pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Abstract</span></span></p>
</td>
<td style="background:#76923c 0 50%;width:48.1pt;height:7.35pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Sealed</span></span></p>
</td>
<td style="background:#76923c 0 50%;width:48.25pt;height:7.35pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Static*</span></span></p>
</td>
</tr>
<tr style="height:14.55pt;">
<td style="background:#ddd9c3 0 50%;width:76.5pt;height:14.55pt;border:black 1pt solid;padding:0 5.4pt;" width="102" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">General</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:49.4pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:49.8pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:48.1pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:48.25pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:81.8pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="109" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:57.15pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="76" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
</tr>
<tr style="height:14.55pt;">
<td style="background:#ddd9c3 0 50%;width:76.5pt;height:14.55pt;border:black 1pt solid;padding:0 5.4pt;" width="102" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Abstract</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:49.4pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:49.8pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:48.1pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:48.25pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:81.8pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="109" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:57.15pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="76" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
</tr>
<tr style="height:14.55pt;">
<td style="background:#ddd9c3 0 50%;width:76.5pt;height:14.55pt;border:black 1pt solid;padding:0 5.4pt;" width="102" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Sealed</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:49.4pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:49.8pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:48.1pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:48.25pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:81.8pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="109" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:57.15pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="76" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
</tr>
<tr style="height:20.95pt;">
<td style="background:#ddd9c3 0 50%;width:76.5pt;height:20.95pt;border:black 1pt solid;padding:0 5.4pt;" width="102" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Static</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:49.4pt;height:20.95pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:49.8pt;height:20.95pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:48.1pt;height:20.95pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:48.25pt;height:20.95pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:81.8pt;height:20.95pt;border:#f0f0f0;padding:0 5.4pt;" width="109" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:57.15pt;height:20.95pt;border:#f0f0f0;padding:0 5.4pt;" width="76" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
</tr>
<tr style="height:14.55pt;">
<td style="background:#ddd9c3 0 50%;width:76.5pt;height:14.55pt;border:black 1pt solid;padding:0 5.4pt;" width="102" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Interface</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:49.4pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:49.8pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="66" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:48.1pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:48.25pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="64" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:81.8pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="109" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">Yes</span></span></p>
</td>
<td style="background:#ddd9c3 0 50%;width:57.15pt;height:14.55pt;border:#f0f0f0;padding:0 5.4pt;" width="76" valign="top">
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:12pt;"><span style="font-family:Calibri;">No</span></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<p><span style="font-size:12pt;line-height:115%;"></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:12pt;line-height:115%;"><span style="font-family:Calibri;"><span style="font-family:Calibri;"><span style="font-family:Calibri;"></span></span></span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-family:Calibri;"><br />
</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;">
<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">This table is for showing relationship between a base class and child class</span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">In this table I want to show the accessibility among the various types of classes and interface. From this table you also can know what type of class can be initiated. This is one example that helps you to understand the table.</span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">If you use Abstract class as base class and take a general class as child and want to inherit, this will possible …here you can see..</span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span><span style="font-size:small;"><span style="font-family:Calibri;">Base: Abstract (<span style="color:#2b91af;">ASadi</span>) </span></span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span><span style="font-size:small;"><span style="font-family:Calibri;">Child: Interface (<span style="color:#2b91af;">Sadi</span>)</span></span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span><span style="font-size:small;"><span style="font-family:Calibri;">Accessibility: Yes </span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;">abstract<span style="color:black;"> </span>class<span style="color:black;"> </span><span style="color:#2b91af;">Sadi</span><span style="color:black;"> : </span><span style="color:#2b91af;">ASadi</span><span style="color:black;"></span></span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="color:black;"><span style="font-size:small;"><span style="font-family:Calibri;">{ </span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;">#region<span style="color:black;"> ASadi Members</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;">public<span style="color:black;"> </span>int<span style="color:black;"> getint() {</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;">throw<span style="color:black;"> </span>new<span style="color:black;"> </span><span style="color:#2b91af;">Exception</span><span style="color:black;">(</span><span style="color:#a31515;">&#8220;The method or operation is not implemented.&#8221;</span><span style="color:black;">); }</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Calibri;">#endregion<span style="color:black;"></span></span></span></span></p>
<p class="MsoNoSpacing" style="margin:0;"><span style="color:black;"><span style="font-size:small;"><span style="font-family:Calibri;">}</span></span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">If you execute this code, it executes properly</span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">From the first column of the table we can say that general class inherites both general and abstract class and also implements an interface. These classes cannot inherites sealed as well as static class. Only General and Sealed classes can be initiated.</span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">From the table and above discussion we can conclude that,</span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-family:Calibri;"><strong><span style="font-size:10pt;color:black;">Abstract Class</span></strong><span style="font-size:10pt;color:black;"></span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">A class defined as abstract is used as a base class. Such a class is used for the purpose of inheritance only i.e. other classes are derived from this class. We cannot create an object of an abstract class. An abstract class may contain methods and properties. The classes derived from the abstract class inherit these methods and properties. The abstract class may also contain abstract methods and properties. Abstract method and properties do not have any functionality. The derived class defines their full functionality.</span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">Here is an example of an abstract class:</span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">abstract class MyAbstract { public abstract void AbMethod(); }</span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-family:Calibri;"><strong><span style="font-size:10pt;color:black;">Sealed Class</span></strong><span style="font-size:10pt;color:black;"></span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">Classes can be declared as sealed. This is accomplished by putting the sealed keyword before the keyword class in the class definition. For example:</span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-family:Calibri;"><span style="font-size:10pt;color:blue;">public</span><span style="font-size:10pt;color:black;"> </span><span style="font-size:10pt;color:blue;">sealed</span><span style="font-size:10pt;color:black;"> </span><span style="font-size:10pt;color:blue;">class</span><span style="font-size:10pt;color:black;"> classSealed { </span><span style="font-size:10pt;color:green;">// Class members here.</span><span style="font-size:10pt;color:black;"> </span><span style="font-size:10pt;color:blue;">public</span><span style="font-size:10pt;color:black;"> </span><span style="font-size:10pt;color:blue;">string</span><span style="font-size:10pt;color:black;"> ID; </span><span style="font-size:10pt;color:blue;">public</span><span style="font-size:10pt;color:black;"> </span><span style="font-size:10pt;color:blue;">double</span><span style="font-size:10pt;color:black;"> Price; } </span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">A sealed class cannot be used as a base class. For this reason, it cannot also be an abstract class. Sealed classes are primarily used to prevent derivation. Because they can never be used as a base class, some run-time optimizations can make calling sealed class members slightly faster. Sealing a class means one cannot derive from it. Sealing a method means one cannot override it. In C# structs are implicitly sealed; therefore, they cannot be inherited. If we try to inherit from a sealed class in another class we will get compile time error about Inconsistent accessibility (code is shown in following code listing). In C# a method cannot be declared as sealed. However when we override a method in a derived class, we can declare the overridden method as sealed as shown below. By declaring it as sealed, we can avoid further overriding of this method.</span></span></p>
<p class="MsoNormal" style="line-height:11.1pt;margin:0 0 10pt;"><span style="font-family:Calibri;"><strong><span style="font-size:10pt;color:black;">Static Class</span></strong><span style="font-size:10pt;color:black;"> </span></span></p>
<p class="MsoNormal" style="line-height:normal;margin:0;"><span style="font-size:10pt;color:black;"><span style="font-family:Calibri;">Static classes are classes that contain only static members. Following is an example of static class. public static MyClass { &#8230;..} </span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">A class can be declared </span><a id="ctl00_rs1_mainContentContainer_ctl08" href="http://msdn.microsoft.com/en-us/library/98f28cdx.aspx"><span style="color:#0000ff;font-family:Calibri;">static</span></a><span style="font-family:Calibri;">, which indicates that it contains only static members. It is not possible to use the </span><a id="ctl00_rs1_mainContentContainer_ctl09" href="http://msdn.microsoft.com/en-us/library/51y09td4.aspx"><span style="color:#0000ff;font-family:Calibri;">new</span></a><span style="font-family:Calibri;"> keyword to create instances of a static class. Static classes are loaded automatically by the .NET Framework common language runtime (CLR) when the program or namespace that contains the class is loaded.</span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">Use a static class to contain methods that are not associated with a particular object. For example, it is a common requirement to create a set of methods that do not act on instance data and are not associated to a specific object in your code. You could use a static class to hold those methods.</span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">Following are the main features of a static class:</span></span></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent:-0.25in;margin:0 0 0 0.5in;"><span style="font-size:10pt;line-height:115%;font-family:Symbol;"><span>·<span style="font:7pt &quot;">         </span></span></span><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">They only contain static members.</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent:-0.25in;margin:0 0 0 0.5in;"><span style="font-size:10pt;line-height:115%;font-family:Symbol;"><span>·<span style="font:7pt &quot;">         </span></span></span><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">They cannot be instantiated.</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent:-0.25in;margin:0 0 0 0.5in;"><span style="font-size:10pt;line-height:115%;font-family:Symbol;"><span>·<span style="font:7pt &quot;">         </span></span></span><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">They are sealed.</span></span></p>
<p class="MsoListParagraphCxSpLast" style="text-indent:-0.25in;margin:0 0 10pt 0.5in;"><span style="font-size:10pt;line-height:115%;font-family:Symbol;"><span>·<span style="font:7pt &quot;">         </span></span></span><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">They cannot contain </span><a id="ctl00_rs1_mainContentContainer_ctl10" href="http://msdn.microsoft.com/en-us/library/k6sa6h87.aspx"><span style="color:#0000ff;font-family:Calibri;">Instance Constructors (C# Programming Guide)</span></a><span style="font-family:Calibri;">.</span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">Creating a static class is therefore basically the same as creating a class that contains only static members and a private constructor. A private constructor prevents the class from being instantiated.</span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">The advantage of using a static class is that the compiler can check to make sure that no instance members are accidentally added. The compiler will guarantee that instances of this class cannot be created. </span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;"><span style="font-family:Calibri;">Static classes are sealed and therefore cannot be inherited. They cannot inherit from any class except </span><a id="ctl00_rs1_mainContentContainer_ctl11" href="http://msdn.microsoft.com/en-us/library/system.object.aspx"><span style="color:#0000ff;font-family:Calibri;">Object</span></a><span style="font-family:Calibri;">. Static classes cannot contain an instance constructor; however, they can have a static constructor. For more information, see </span><a id="ctl00_rs1_mainContentContainer_ctl12" href="http://msdn.microsoft.com/en-us/library/k9x6w0hc.aspx"><span style="color:#0000ff;font-family:Calibri;">Static Constructors (C# Programming Guide)</span></a><span style="font-family:Calibri;">. </span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=29&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/06/01/various-classes-and-their-uses-in-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between Namespace and Assembly in C# .Net</title>
		<link>http://sadi02.wordpress.com/2008/05/29/difference-between-namespace-and-assembly/</link>
		<comments>http://sadi02.wordpress.com/2008/05/29/difference-between-namespace-and-assembly/#comments</comments>
		<pubDate>Thu, 29 May 2008 07:58:30 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=28</guid>
		<description><![CDATA[Assembly will contain Namespaces, Classes, Data types it&#8217;s a small unit of code for deployment. Assembly defines the name of the .dll file. Namespace is used in order to avoid conflict of user defined classes Namespace: 1) it is a &#8230; <a href="http://sadi02.wordpress.com/2008/05/29/difference-between-namespace-and-assembly/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=28&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="line-height:15.9pt;"><span style="color:#000000;"><span style="font-size:small;">Assembly will contain Namespaces, Classes, Data types it&#8217;s a small unit of code for deployment. Assembly defines the name of the .dll file.<br />
Namespace is used in order to avoid conflict of user defined classes</span></span></p>
<p style="line-height:15.9pt;"><strong><span style="color:#000000;"><span style="font-size:small;">Namespace:</span></span></strong><span style="color:#000000;"><br />
<span style="font-size:small;">1) it is a Collection of names wherein each name is Unique.<br />
2) They form the logical boundary for a Group of classes.<br />
3) Namespace must be specified in Project-Properties.</span></span></p>
<p style="line-height:15.9pt;"><strong><span style="color:#000000;"><span style="font-size:small;">Assembly:</span></span></strong><span style="color:#000000;"><br />
<span style="font-size:small;">1) It is an Output Unit.<br />
2) It is a unit of Deployment &amp; a unit of versioning.<br />
3) Assemblies contain MSIL code.<br />
4) Assemblies are Self-Describing. [e.g. metadata,manifest]<br />
5)An assembly is the primary building block of a .NET Framework application.<br />
6) It is a collection of functionality that is built, versioned, and deployed as a single implementation unit (as one or more files).<br />
7) All managed types and resources are marked either as accessible only within their implementation unit, or by code outside that unit.</span></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=28&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/05/29/difference-between-namespace-and-assembly/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple Example of Inheritance and Interface (why do we use Inheritance and interface) in c# .Net</title>
		<link>http://sadi02.wordpress.com/2008/05/27/extends-class-and-implements-interface/</link>
		<comments>http://sadi02.wordpress.com/2008/05/27/extends-class-and-implements-interface/#comments</comments>
		<pubDate>Tue, 27 May 2008 10:39:23 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=23</guid>
		<description><![CDATA[using System; using System.Collections.Generic; using System.Text; interface Talkable { string Table(); } class Animal { } class Cat : Animal, Talkable { string Talkable.Table() { return "miao"; } } class Dog : Animal, Talkable { string Talkable.Table(){ return "bulk"; } &#8230; <a href="http://sadi02.wordpress.com/2008/05/27/extends-class-and-implements-interface/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=23&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre><strong><span style="color:#7f0055;">using </span></strong><span style="color:black;">System;</span><span>
<strong><span style="color:#7f0055;">using </span></strong><span style="color:black;">System.Collections.Generic;</span>
<strong><span style="color:#7f0055;">using </span></strong><span style="color:black;">System.Text;</span></span></pre>
<pre><strong><span style="color:#7f0055;">interface </span></strong><span style="color:black;">Talkable</span><span>
<span style="color:black;">{</span>
<span style="color:black;">string Table();</span>
<span style="color:black;">}</span></span></pre>
<pre><strong><span style="color:#7f0055;">class </span></strong><span style="color:black;">Animal { }</span></pre>
<pre><strong><span style="color:#7f0055;">class </span></strong><span style="color:black;">Cat : Animal, Talkable</span><span>
<span style="color:black;">{</span>
<span style="color:black;">string Talkable.Table() { </span>
<strong><span style="color:#7f0055;">return </span></strong><span style="color:#2a00ff;">"miao"</span><span style="color:black;">; </span>
<span style="color:black;">}</span>
<span style="color:black;">}</span></span></pre>
<pre><strong><span style="color:#7f0055;">class </span></strong><span style="color:black;">Dog : Animal, Talkable</span><span>
<span style="color:black;">{</span>
<span style="color:black;">string Talkable.Table(){</span>
<strong><span style="color:#7f0055;">return </span></strong><span style="color:#2a00ff;">"bulk"</span><span style="color:black;">; </span>
<span style="color:black;">}</span>
<span style="color:black;">}
</span></span><strong><span style="color:#7f0055;">class </span></strong><span style="color:black;">Elephant : Animal</span><span>
<span style="color:black;">{</span>
<span style="color:black;">}
</span></span><strong><span style="color:#7f0055;">class </span></strong><span style="color:black;">MainClass</span><span style="color:black;">
<span style="color:black;">{</span>
<strong><span style="color:#7f0055;">static void </span></strong><span style="color:black;">Main()</span>
<span style="color:black;">{</span>
<span style="color:black;">Animal[] AnimalArray = </span><strong><span style="color:#7f0055;">new </span></strong><span style="color:black;">Animal[</span><span style="color:#990000;">3</span><span style="color:black;">];
</span>AnimalArray[</span><span style="color:#990000;">0</span><span style="color:black;">] = </span><strong><span style="color:#7f0055;">new </span></strong><span style="color:black;">Cat();</span><span>
<span style="color:black;">AnimalArray[</span><span style="color:#990000;">1</span><span style="color:black;">] = </span><strong><span style="color:#7f0055;">new </span></strong><span style="color:black;">Elephant();</span>
<span style="color:black;">AnimalArray[</span><span style="color:#990000;">2</span><span style="color:black;">] = </span><strong><span style="color:#7f0055;">new </span></strong><span style="color:black;">Dog();</span></span></pre>
<pre><span style="color:black;">foreach (Animal a in AnimalArray)</span><span>
<span style="color:black;">{</span>
<span style="color:black;">Talkable b = a as Talkable;</span>
<strong><span style="color:#7f0055;">if </span></strong><span style="color:black;">(b != </span><strong><span style="color:#7f0055;">null</span></strong><span style="color:black;">)</span>
<span style="color:black;">Console.WriteLine(</span><span style="color:#2a00ff;">"Baby
is called: {0}"</span><span style="color:black;">, b.Table());</span>
<span style="color:black;">}</span>
<span style="color:black;">}</span>
<span style="color:black;">}</span></span></pre>
<pre><span>output:</span></pre>
<pre><span>Baby is called: miao
Baby is called: bulk</span></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=23&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/05/27/extends-class-and-implements-interface/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between class and struct in C# .Net</title>
		<link>http://sadi02.wordpress.com/2008/05/27/difference-between-class-and-struct-in-c/</link>
		<comments>http://sadi02.wordpress.com/2008/05/27/difference-between-class-and-struct-in-c/#comments</comments>
		<pubDate>Tue, 27 May 2008 08:40:07 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=22</guid>
		<description><![CDATA[1. Classes are reference types and structs are value types. Since classes are reference type, a class variable can be assigned null.But we cannot assign null to a struct variable, since structs are value type. 2. When you instantiate a &#8230; <a href="http://sadi02.wordpress.com/2008/05/27/difference-between-class-and-struct-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=22&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Classes are reference types and structs are value types.<br />
Since classes are reference type, a class variable can be assigned null.But we cannot assign null to<br />
a struct variable, since structs are value type.<br />
2. When you instantiate a class, it will be allocated on the heap.When you instantiate a struct, it gets created on the stack.<br />
3. You will always be dealing with reference to an object ( instance ) of a class. But you will not be dealing with references to an instance of a struct ( but dealing directly with them ).<br />
4. When passing a class to a method, it is passed by reference. When passing a struct to a method, it&#8217;s passed by value instead of as a reference.<br />
5. You cannot have instance Field initializers in structs.But classes can have<br />
example:<br />
class MyClass<br />
{<br />
int myVar =10;  //  no syntax error.<br />
public void MyFun( )<br />
{<br />
//  statements<br />
}<br />
}<br />
struct MyStruct<br />
{<br />
int myVar = 10;  //  syntax error.<br />
public void MyFun( )<br />
{<br />
//  statements<br />
}<br />
}<br />
6. Classes can have explicit parameterless constructors. But structs cannot have<br />
7. Classes must be instantiated using the new operator. But structs can be<br />
8. Classes support inheritance.But there is no inheritance for structs.<br />
( structs don&#8217;t support inheritance polymorphism )<br />
9. Since struct does not support inheritance, access modifier of a member of a struct cannot be protected or protected internal.11. A class is permitted to declare a destructor.But a struct is not<br />
12. classes are used for complex and large set data. structs are simple to use.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=22&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/05/27/difference-between-class-and-struct-in-c/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamic Method Invocation in C# .Net (Static Method and Non Static Method)</title>
		<link>http://sadi02.wordpress.com/2008/05/14/dynamic-static-and-non-static-method-invocation-in-c/</link>
		<comments>http://sadi02.wordpress.com/2008/05/14/dynamic-static-and-non-static-method-invocation-in-c/#comments</comments>
		<pubDate>Wed, 14 May 2008 08:26:13 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programmnig]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=21</guid>
		<description><![CDATA[Create a solution in visual studio and add two project. First project name is  &#8221;FirstProject&#8221; and second one is &#8220;DynamicInvoke&#8221;. In the first project add Class1.cs class and compile. Class1.cs DynaInvoke.cs In the second project add this code and run..<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=21&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Create a solution in visual studio and add two project. First project name is  &#8221;FirstProject&#8221; and second one is &#8220;DynamicInvoke&#8221;. In the first project add Class1.cs class and compile.</p>
<p><strong><span style="text-decoration:underline;">Class1.cs</span></strong><br />
<pre class="brush: csharp;">using System;
public class Class1{
public static String method1()
{
return &quot;I am Static method (method1) in class1&quot;;
}
public String method2()
{
return &quot;I am a Instance Method (method2) in Class1&quot;;
}
public String method3(String s)
{
return &quot;Hello &quot; + s;
}
}
</pre><br />
<strong><span style="text-decoration:underline;">DynaInvoke.cs</span></strong><br />
<pre class="brush: csharp;">using System;
using System.Reflection;
class DynamicInvoke
{
public static void Main(String[] args)
{
Assembly MyAssembly = Assembly.Load(&quot;FirstProject&quot;);
//For getting the assembly click the right mouse on the class1 oject then go to the property
Type MyType = MyAssembly.GetType(&quot;FirstProject.Class1&quot;);
//class name should be added with assembly like (assemblyName.className) (NameSpace with classname)
object MyObj = Activator.CreateInstance(MyType);

//Invoking a static method (How to invoke a static method??)
String str = (String)MyType.InvokeMember(&quot;method1&quot;, BindingFlags.Default | BindingFlags.InvokeMethod, null, null, new object[] { });
Console.WriteLine(str);

//Invoking a non-static method (How to invoke a non static method??)
str = (String)MyType.InvokeMember(&quot;method2&quot;, BindingFlags.Default | BindingFlags.InvokeMethod, null, MyObj, new object[] { });
Console.WriteLine(str);

//Invoking a non-static method with parameters (How to invoke a non static method with parametres??)
object[] MyParameter = new object[] { &quot;Sadi&quot; };
str = (String)MyType.InvokeMember(&quot;method3&quot;, BindingFlags.Default | BindingFlags.InvokeMethod, null, MyObj, MyParameter);
Console.WriteLine(str);
}
}</pre></p>
<p>In the second project add this code and run..</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=21&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/05/14/dynamic-static-and-non-static-method-invocation-in-c/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>Tutorial On C#, Asp.Net, PHP, C++</title>
		<link>http://sadi02.wordpress.com/2008/05/12/tutorial-on-c-aspnet-php-c/</link>
		<comments>http://sadi02.wordpress.com/2008/05/12/tutorial-on-c-aspnet-php-c/#comments</comments>
		<pubDate>Mon, 12 May 2008 10:22:32 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=20</guid>
		<description><![CDATA[If you want to expert in computer language &#8230;. View the following link&#8230;. http://www.java2s.com/Tutorial/CSharp/CatalogCSharp.htm Happy Coding Life<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=20&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to expert in computer language &#8230;.</p>
<p>View the following link&#8230;.</p>
<p><a href="http://www.java2s.com/Tutorial/CSharp/CatalogCSharp.htm">http://www.java2s.com/Tutorial/CSharp/CatalogCSharp.htm</a></p>
<p>Happy Coding Life</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=20&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/05/12/tutorial-on-c-aspnet-php-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>Amar Nei kono Tulona&#8230;</title>
		<link>http://sadi02.wordpress.com/2008/05/11/amar-nei-kono-tulona/</link>
		<comments>http://sadi02.wordpress.com/2008/05/11/amar-nei-kono-tulona/#comments</comments>
		<pubDate>Sun, 11 May 2008 08:08:30 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=19</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=19&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://sadi02.files.wordpress.com/2008/05/dsc073671.jpg"><img class="aligncenter size-medium wp-image-18" src="http://sadi02.files.wordpress.com/2008/05/dsc073671.jpg?w=300&#038;h=225" alt="Sadi the Great" width="300" height="225" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=19&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/05/11/amar-nei-kono-tulona/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>

		<media:content url="http://sadi02.files.wordpress.com/2008/05/dsc073671.jpg?w=300" medium="image">
			<media:title type="html">Sadi the Great</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between Abstract class and Interface in C# .Net</title>
		<link>http://sadi02.wordpress.com/2008/05/08/what-is-difference-in-an-abstract-class-and-an-interface/</link>
		<comments>http://sadi02.wordpress.com/2008/05/08/what-is-difference-in-an-abstract-class-and-an-interface/#comments</comments>
		<pubDate>Thu, 08 May 2008 06:03:12 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=13</guid>
		<description><![CDATA[Interfaces are essentially having all method prototypes no definition but Abstract class can contain method definations also. In short Interface is a abstract class having all methods abstract. Both abstract classes and interfaces are used when there is a difference &#8230; <a href="http://sadi02.wordpress.com/2008/05/08/what-is-difference-in-an-abstract-class-and-an-interface/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=13&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Interfaces are essentially having all method prototypes no definition but <span class="tdvamseel">Abstract class can contain method definations also.</span></p>
<p>In short Interface is a abstract class having all methods abstract.</p>
<p><span style="color:#000000;">Both abstract classes and interfaces are used when there is a difference in behaviour among the sub-types extending the abstract class or implementing the interface.</span></p>
<p><span style="color:#000000;">When the sub-types behaviour is totally different then you use an interface, when the sub-types behaviour is partially common and different with respect to the supertype an abstract class is used. In an abstract class the partially common behaviour is given a concrete implementation. Since there is no common behaviour between an interface and a sub-type an interface does not have an implementation for any of its behaviour.</span></p>
<p>If you create a abstract class writing the abstract keyword in the declaration  part then You only can inherit  the class. You can not create an instance of this abstract class but can inherit  the class  and with creating the  instance of the  derived class you can access the method of the abstract class.</p>
<p>If you use a virtual keyword in a method then you can override this method in the subclass if you wish..</p>
<p>If you create a abstract method then you must override this method in the subclass other wise it shows error in the program.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=13&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/05/08/what-is-difference-in-an-abstract-class-and-an-interface/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
		<item>
		<title>what&#8217;s the difference between architecture and framework? in C# .Net</title>
		<link>http://sadi02.wordpress.com/2008/04/16/whats-the-difference-between-architecture-and-framework/</link>
		<comments>http://sadi02.wordpress.com/2008/04/16/whats-the-difference-between-architecture-and-framework/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 09:20:04 +0000</pubDate>
		<dc:creator>Md Shaik Sadi</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://sadi02.wordpress.com/?p=12</guid>
		<description><![CDATA[as far as i know, the architecture is the first design result which should consider some functions and properties of quality,sometimes environment of the software,while framework is focus on domain-specificated application which is something general to a certain domain. could &#8230; <a href="http://sadi02.wordpress.com/2008/04/16/whats-the-difference-between-architecture-and-framework/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=12&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>as far as i know, the architecture is the first design result which<br />
should  consider some functions and properties of quality,sometimes<br />
environment of the  software,while framework is focus on <a id="KonaLink0" class="kLink" href="http://objectmix.com/#" target="_top"><span style="font-weight:400;font-size:10pt;position:static;color:blue;"><span class="kLink" style="border-bottom:1px solid blue;font-weight:400;font-size:10pt;position:relative;background-color:transparent;font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;color:blue;">domain</span></span></a>-specificated<br />
application  which is something general to a certain domain.</p>
<p>could i have such a  conclusion,if i do something first,it&#8217;s<br />
architecture,if i do it again it  called repeated labor,if i do it thirdly<br />
then i could consider to make it a  common framework?</p>
<p>Alas, both words are heavily overloaded in the software industry.<br />
Basically  the definition depends on which tool vendor one is talking to.<br />
for example,  the Computer Desktop Encyclopedia defines the terms as:</p>
<p>architecture: The  set of protocols for communicating with  another<br />
application.</p>
<p>framework: the set of building blocks for  constructing an application.</p>
<p>I don&#8217;t like either of those definitions  because they don&#8217;t agree with<br />
what Daddy told me many moons ago as I sat on  his knee. FWIW, I prefer<br />
the definitions:</p>
<p>architecture: The strategy  and/or infrastructure for accomplishing some<br />
specific goal that defines or  supports cooperation among multiple<br />
distinct software  elements.</p>
<p>framework: An infrastructure that acts as a generic skeleton  for<br />
combining customized software elements. Generally a framework can  be<br />
reused for multiple applications or systems of applications.</p>
<p>Since  both can be <a id="KonaLink1" class="kLink" href="http://objectmix.com/#" target="_top"><span style="font-weight:400;font-size:10pt;position:static;color:blue;"><span class="kLink" style="border-bottom:1px solid blue;font-weight:400;font-size:10pt;position:relative;background-color:transparent;font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;color:blue;">infrastructures</span></span></a>,  in my view the distinction is<br />
primarily about reuse. Architectures are  usually focused on specific<br />
problem contexts while frameworks are designed to  be used in entirely<br />
different problem contexts.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sadi02.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sadi02.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadi02.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadi02.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadi02.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadi02.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadi02.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadi02.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadi02.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadi02.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadi02.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadi02.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadi02.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadi02.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadi02.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadi02.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadi02.wordpress.com&amp;blog=3042957&amp;post=12&amp;subd=sadi02&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadi02.wordpress.com/2008/04/16/whats-the-difference-between-architecture-and-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d8a8be1c05bffb05c0691ce9fa1080e3?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sadi02</media:title>
		</media:content>
	</item>
	</channel>
</rss>
