3:I[39275,[],""]
5:I[61343,[],""]
6:I[23053,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","9617","static/chunks/9617-544346a1cd0024b4.js","3185","static/chunks/app/layout-8c4bc5784f5090d9.js"],"StateProvider"]
7:I[19593,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","9617","static/chunks/9617-544346a1cd0024b4.js","3185","static/chunks/app/layout-8c4bc5784f5090d9.js"],""]
8:I[18709,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","5706","static/chunks/9c4e2130-08078aeb5700c43b.js","5505","static/chunks/385cb88d-fd2f37c33b8aa92c.js","5452","static/chunks/5e22fd23-9bf9fa71e7554411.js","9956","static/chunks/ee560e2c-f551c028fd538293.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","6648","static/chunks/6648-3bc9d66179346fb0.js","9160","static/chunks/app/not-found-5850ce7843ba4d5a.js"],"default"]
9:I[45723,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","9617","static/chunks/9617-544346a1cd0024b4.js","3185","static/chunks/app/layout-8c4bc5784f5090d9.js"],"default"]
4:["all","net","c"]
0:["79z6y6ppLce0GndJRjYzJ",[[["",{"children":[["all","net","c"],{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":[["all","net","c"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/402d889fee29bde2.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/0ff6cecb1d0e96f8.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/cb4e98a4c2dc4d80.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","3",{"rel":"stylesheet","href":"/_next/static/css/a246b44e33111fd9.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","4",{"rel":"stylesheet","href":"/_next/static/css/9d9d0f6a85930e46.css","precedence":"next","crossOrigin":"$undefined"}]]}],null]},[["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L6",null,{"children":[["$","$L7",null,{}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","$L8",null,{}],"notFoundStyles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/cb4e98a4c2dc4d80.css","precedence":"next","crossOrigin":"$undefined"}]],"styles":null}],["$","$L9",null,{}]]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/0cc2495744a38244.css","precedence":"next","crossOrigin":"$undefined"}]],"$La"]]]]
b:I[30043,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","5706","static/chunks/9c4e2130-08078aeb5700c43b.js","5505","static/chunks/385cb88d-fd2f37c33b8aa92c.js","5452","static/chunks/5e22fd23-9bf9fa71e7554411.js","9956","static/chunks/ee560e2c-f551c028fd538293.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","6051","static/chunks/795d4814-d7614a20709c27af.js","614","static/chunks/3d47b92a-f2bb54912083012c.js","9212","static/chunks/59650de3-13cfd2620b7240d2.js","522","static/chunks/94730671-a8ad9eca65504500.js","7675","static/chunks/b563f954-501d993050fd0717.js","1994","static/chunks/e34aaff9-cd556a7ee1a90c03.js","6990","static/chunks/13b76428-5a68792917164904.js","5957","static/chunks/30a37ab2-a5fc2d8864b3152b.js","6844","static/chunks/f25cdb8d-30c837856fb6d42d.js","7259","static/chunks/479ba886-8536ff4966e1aaf8.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","6648","static/chunks/6648-3bc9d66179346fb0.js","4349","static/chunks/4349-c8f0646a83cc4179.js","4791","static/chunks/4791-6c93b9aca8a9f315.js","5225","static/chunks/5225-dc21c87d99338f19.js","9293","static/chunks/9293-d1b040d0324d0d5a.js","5919","static/chunks/5919-545104f05818203e.js","1413","static/chunks/1413-986ad1f4cd2d661e.js","2499","static/chunks/2499-61bd3b514e9c4cb8.js","4175","static/chunks/4175-fb05509a4e1790ec.js","5653","static/chunks/app/%5B...all%5D/page-f1bbbeae9a681a62.js"],"default"]
c:T2ea3,<p>&nbsp;</p>
<h2><span style="font-size: 12pt; color: #e67e23;">Working With DATA SET:-</span></h2>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7779" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_235-460x219.png" alt="Screenshot_23" width="511" height="242" /> &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">Data Set is a class, which is a part of the System. Data namespace</span></li>
<li><span style="font-size: 12pt;">Data Set supports connectionless architecture.</span></li>
<li><span style="font-size: 12pt;">Data Set is a collection of Tables.</span></li>
<li><span style="font-size: 12pt;">There will be no live communication between Data Set and Database.</span></li>
<li><span style="font-size: 12pt;">Hence Data Adapters are required to provide communication in between Data Set And Database.</span></li>
<li><span style="font-size: 12pt;">Data set holds a collection of tables, where every table contains a unique index number, optionally alias name can be provided.</span></li>
</ol>
<p><span style="font-size: 12pt;">Select&nbsp; * from EMP;</span></p>
<ol start="7">
<li><span style="font-size: 12pt;">Data Set Supports to create constraints like primary and foreign keys.</span></li>
<li><span style="font-size: 12pt;">Data Set supports to create of Relations (Data Relation )</span></li>
<li><span style="font-size: 12pt;">Data Set works with the help of XML (extensible markup language)</span></li>
</ol>
<p><span style="font-size: 12pt;"><strong>&nbsp;</strong><span style="color: #333333; font-family: quicksand, sans-serif; text-align: justify; box-sizing: border-box;">&nbsp;</span><em style="color: #333333; font-family: quicksand, sans-serif; text-align: justify; box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: bolder;">Interested in mastering .NET? Learn more about "<span style="box-sizing: border-box; color: #e03e2d;"><a style="box-sizing: border-box; color: #e03e2d; text-decoration-line: none; transition: all 0.2s linear 0s;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>" in this blog post.</span></em></span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Steps to create a DATA SET:-</span></h3>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7780" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_244-460x281.png" alt="Screenshot_24" width="478" height="292" /> &nbsp; </span></p>
<h3><span style="color: #e67e23; font-size: 12pt;">Data Set Ex:</span></h3>
<p><span style="font-size: 12pt;"><strong> </strong> Program to prove that Data set is connections less Collection of tables XML based</span></p>
<p><span style="font-size: 12pt;"> &nbsp; <img class="alignnone wp-image-7781" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_255-460x286.png" alt="Screenshot_25" width="402" height="249" /></span></p>
<ul>
<li><span style="font-size: 12pt;">Open windows Forms Application Project</span></li>
<li><span style="font-size: 12pt;">Place four buttons and a Data Grid view control</span></li>
</ul>
<p><span style="font-size: 12pt;">Using&nbsp; System. Data. Sql client;</span></p>
<ul>
<li><span style="font-size: 12pt;">Code in GD</span></li>
</ul>
<p><span style="font-size: 12pt;">Data Set ds = new Data Set ();</span></p>
<pre class="language-javascript"><code>Code for Button 1_click (get)
{

Sql connection con = new Sql connection  (&ldquo;User id = sa;  Password = ;

data base = north wind; Server = local Host&rdquo;) ;

Sql Data Adapter  d1 = new Sql Data Adapter (&ldquo;Select * from products&rdquo; , con);

Sql Data Adapter  d2= new Sql Data Adapter (&ldquo;Select * from  orders &rdquo; , con);

D1.Fill (ds, &ldquo;pr&rdquo;); D2.Fill (ds,&rdquo;or&rdquo;);

Message Box. Show  (&ldquo;Data is ready&rdquo;);

Code for Button 2_click

(products)  

DS----Tables               or 1

{

Data Grid view 1. Data Source = ds . Tables [&ldquo;Pr&rdquo;]; 

or ds. Tables [0];

}

Code for Button 3_click (orders)

{

Data Grid view 1. Data Source = ds. Tables [&ldquo;or&rdquo;];

  or ds. Tables [1];

}

Code for Button 4_click (XML)
{

Ds. Write XML (&ldquo;C: //abc.XML&rdquo;)

Message Box. Show 1 (&ldquo;File is created&rdquo;);

}  </code></pre>
<h3><span style="color: #e67e23; font-size: 12pt;">Working with Data Set Manipulations:-</span></h3>
<ol>
<li><span style="font-size: 12pt;">AS Data set is connectionless, hence the modifications on the data set will not be stored in the database.</span></li>
</ol>
<p><span style="font-size: 12pt;">25 columns</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">Command builder is a predefined class that helps to create DML statement syntaxes automatically.</span></li>
<li><span style="font-size: 12pt;">Command builder class purpose is to create the syntax only but not to Execute that syntax.</span></li>
<li><span style="font-size: 12pt;">The command builder creates the syntax and needs to be given to Data Adapter.</span></li>
</ol>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-7783" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_265-460x109.png" alt="Screenshot_26" width="507" height="120" /> &nbsp;</span></p>
<h4><span style="color: #e67e23; font-size: 12pt;">Command Builder:</span></h4>
<ol>
<li><span style="font-size: 12pt;">GET INSERT COMMAND()</span></li>
<li><span style="font-size: 12pt;">GET UPDATE COMMAND()</span></li>
<li><span style="font-size: 12pt;">GET DELETE COMMAND()</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<h4><span style="color: #e67e23; font-size: 12pt;">Example&nbsp; &nbsp;on&nbsp; &nbsp;Command Builder with oracle Database over Managed Connection (System. Data. Oracle. Client)</span></h4>
<p><span style="font-size: 12pt;"><strong>Note:-</strong> Oracle client namespace is not available at the default scope of the project, hence System. Data. Oracle client Assembly needs to be added.</span></p>
<ul>
<li><span style="font-size: 12pt;">Open windows Forms Application Project</span></li>
<li><span style="font-size: 12pt;">Place two Buttons and a data grid view control.</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-7784" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_275.png" alt="Screenshot_27" width="277" height="219" /> &nbsp;</span></p>
<ul>
<li><span style="font-size: 12pt;">Go to the project menu <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Add reference&nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;System.&nbsp; Data. Oracle client</span></li>
</ul>
<p><span style="font-size: 12pt;">Using&nbsp; System. Data. Oracle client</span></p>
<ul>
<li><span style="font-size: 12pt;">Code in GD</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; Static oracle connection con = new oracle connection (&ldquo;User id&nbsp; = Scott; Password = tiger &rdquo;); </span></p>
<p><span style="font-size: 12pt;">The provider is not required for a managed connection. </span></p>
<pre class="language-javascript"><code>Oracle Data Adapter da = new oracle Data Adapter (&ldquo;Select * from c 194&rdquo;, con);

Data set ds = new Data set (); Code for Button 1_ click (get) Da. Fill (ds, &ldquo;d&rdquo;);

Data Grid view 1. Data Source = ds .tables [&ldquo;d&rdquo;];

Code for Button 2_click  (save) Oracle command builder cb = new; Oracle command builder (da);

Message Box. Show (cb. Get Insert  command () )

Da. Insert command = cb. Get Insert command ();

Da. Update (ds, &ldquo;d&rdquo;);

Message Box. Show (&ldquo;Record is Added &rdquo;) ;

}    </code></pre>
<h3><span style="color: #e67e23; font-size: 12pt;">Data Set class Hierarchy:</span></h3>
<p><span style="font-size: 12pt;">A collection of Data set Related classes is called &ldquo;Data Set class Hierarchy&rdquo;. </span></p>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7786" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_283-460x205.png" alt="Screenshot_28" width="383" height="170" /> </span></p>
<p><span style="font-size: 12pt;">DS <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />T<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />1000 records</span></p>
<ol start="8">
<li><span style="font-size: 12pt;">R</span></li>
<li><span style="font-size: 12pt;">Table [&lsquo;T&rsquo;] .Row [478]</span></li>
</ol>
<p><span style="font-size: 12pt;">[179] [N] FIRST N =0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: 12pt;">LAST N = DS. Tables [&lsquo;T&rsquo;]. Rows . count -1 Next N = N+1 Previous&nbsp; N = N-1 &nbsp; &nbsp; A program for navigating through the records &nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7787" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_296.png" alt="Screenshot_29" width="427" height="286" /></span></p>
<ul>
<li><span style="font-size: 12pt;">open windows Forms Application Project</span></li>
<li><span style="font-size: 12pt;">design a Form as shown</span></li>
<li><span style="font-size: 12pt;">Using System . Data. Sql client;</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; Code in GD &nbsp; Data table dt = new Data Table ();</span></p>
<p><span style="font-size: 12pt;"> Int n =0 ; </span></p>
<pre class="language-javascript"><code>Public void Show record ()

{

Data Row dr = dt. Rows [n];

Text Box1.Text = dr [0]. To String ();

Text Box2.Text = dr [1]. To String ();

}

</code></pre>
<p><span style="font-size: 12pt;">Code for Form 1_ load Event Sql Connection con = new sql Connection (&ldquo;User id = sa; data base = north wind; Server = Local Host&rdquo;);</span></p>
<p><span style="font-size: 12pt;">Sql Data Adapter da = new Sql Data Adapter&nbsp;&nbsp; (&ldquo;Select&nbsp; * from Products&rdquo;, con); Data set ds = new Data set (); Da. Fill (ds, &ldquo;d&rdquo;);</span></p>
<p><span style="font-size: 12pt;"> Dt = ds . Tables [&ldquo;d&rdquo;]; </span></p>
<p><span style="font-size: 12pt;">// column Names Label 1 .Text = dt. Columns [0]. Column Name; </span></p>
<p><span style="font-size: 12pt;">Label 2 .Text = dt. Columns [1]. Column Name; Show Record (); </span></p>
<p><span style="font-size: 12pt;">}</span></p>
<ul>
<li><span style="font-size: 12pt;">Code for Button 1_ click (&lt;&lt; First Record)</span></li>
</ul>
<pre class="language-javascript"><code>{

N =0; Show  Record ();

}

Code for Button2_ click (&lt; Previous record )
{

N = n -1; If (n== -1) { Message Box. Show  (&ldquo;No previous Record &rdquo;);

N = 0;

}

Show Record ();

}

Code for Button 3_click (&gt; Next Record)
{

N = n+1;

If (n &gt; dt. Rows. Count  -1 )

{

Message  Box . show (&ldquo; No Next Record&rdquo;);

N = dt. Rows. Count -1;

}

Show Record ();

}

Code for Butto4_ click (&gt;&gt; last Record)
{ 
N = dt. Rows . count &ndash; 1; 
Show Record ();
 }    </code></pre>d:T102c,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Windows Service with Mailing concepts:-</span></h2>
<ol>
<li><span style="font-size: 12pt;">To send the mails SMTP protocol is required.</span></li>
<li><span style="font-size: 12pt;">The protocol provides a set of rules, which need to be followed while transferring the data over the network.</span></li>
<li><span style="font-size: 12pt;">Smtp will be installed by default when It is installed.</span></li>
<li><span style="font-size: 12pt;">When IIS is installed then the Following Folder Structure will be created by default.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; &nbsp; <img class="alignnone wp-image-7696" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_814-460x275.png" alt="Screenshot_8" width="555" height="331" /> &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">EX: 2 on windows Service with mailing concepts:-</span></h3>
<ul>
<li><span style="font-size: 12pt;">Developing a service to send a mail at 12:30</span></li>
<li><span style="font-size: 12pt;">Open windows Service project with project name WS2</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; Project&nbsp; Menu &nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Add Reference &nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> System .wed&nbsp; (this is required for Mail Message class) Place Timer&nbsp; (System .Timers&nbsp; )control &nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Properties &nbsp; Enabled = true Interval = 60, 000 &nbsp; Interval 100ms&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; w:30&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12:30:00 01 1 sec&nbsp;&nbsp; = 600 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .. 100ms = 60&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&hellip; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 60,000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 59 60,000 &nbsp; </span></p>
<p><span style="font-size: 12pt;">Using System. web. Mail; </span></p>
<pre class="language-javascript"><code>Code for Timer 1 _ Elapsed Event

{

Int sh =Date Time . Now. Hour ;

// 24 hrs format

Int sum = Date Time . Now. Minute;

If (sh == 12 &amp;&amp; sm ==30)

{

Mail  Message  m = new Mail Message ();

M .to  = &ldquo;teja @ yahoo.com&rdquo;; m.cc = &ldquo;varoon @india.com&rdquo;;

subject = &ldquo;Happy Pongal&rdquo;;
body Format = Mail Format. Html;
body = &lt;h1&gt;Happy pongal &lt;/h1&gt; &lt;hr&gt;
&lt;h2&gt;&lt;Font color  = Green&gt; Dear Friends,   This is to inform  you that, our next class will be on 17th  jan, 2009 &lt;/Font&gt; &lt;/h2&gt;&rdquo;;

Form = &ldquo;Prakash @ptpl&rdquo;;
//ptpl is computer name Smtp Mail .Send (m);

}

// if</code></pre>e:T12b9,<h2 style="text-align: justify;"><span style="color: #000000; font-size: 24px;">.Net Sample Resume</span></h2>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;">6 1/2 Avenue, Manhattan's street</span></p>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;">(416)-528 369</span></p>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;">Rathod@gmail.com.</span></p>
<h3 style="text-align: justify;"><span style="color: #000000; font-size: 12pt;">&nbsp;<strong>Profile Summary:</strong></span></h3>
<ul style="text-align: justify;">
<li><span style="color: #000000; font-size: 12pt;">3 years of Experience in software application using .Net technology.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Excellent knowledge in .Net technologies (Csharp, Asp.Net, win forms).</span></li>
<li><span style="color: #000000; font-size: 12pt;">Expert in developing windows and Web applications.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Vast experience in SQL server database design, database maintenance, and developing T-SQL queries and Triggers.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Used HTML and Java scripts for developing web forms.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Good communication skills with a strong background to identify business objectives and establish requirements.</span></li>
</ul>
<h3><span style="font-size: 12pt; color: #000000;">Key Skills:</span></h3>
<ul style="text-align: justify;">
<li><span style="color: #000000; font-size: 12pt;">&nbsp;Development Tools: C, C++, Java, visual studio .Net 2003.</span></li>
<li><span style="color: #000000; font-size: 12pt;">&nbsp;Operating Systems: Windows, Linux.</span></li>
<li><span style="color: #000000; font-size: 12pt;">&nbsp;Databases: MS SQL Server 2005, MS Access, Oracle 11g.</span></li>
<li><span style="color: #000000; font-size: 12pt;">&nbsp;Web Technologies: HTML, XML.</span></li>
</ul>
<h3><span style="font-size: 12pt; color: #000000;">Education :</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;">Bachelor of Engineering in Information technology, Brenau University, Washington.</span></p>
<h3><span style="font-size: 12pt; color: #000000;">Professional Experience:</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;">3 years of experience in software developing applications at&nbsp;Australia New Zealand Banking Group.</span></p>
<h3><span style="font-size: 12pt; color: #000000;">Key Areas:</span></h3>
<ul style="text-align: justify;">
<li><span style="color: #000000; font-size: 12pt;">Direct interaction with customers to explain the project features and requirements.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Understanding the requirement and designing the pages as per client requirements.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Good experience in visual studios and window form applications.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Developing databases like queries and triggers.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Monitoring application performance from time to time and making changes if necessary.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Working together with the project manager to ensure in time of project delivery.</span></li>
</ul>
<h3><span style="font-size: 12pt; color: #000000;">Accomplishments :</span></h3>
<ul style="text-align: justify;">
<li><span style="color: #000000; font-size: 12pt;">Troubleshooting issues and technical problems in applications.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Excellent communication skills and ability to conduct training sessions.</span></li>
</ul>
<h3><span style="font-size: 12pt; color: #000000;">.NET Resume Secrets You Need To Know :</span></h3>
<ul style="text-align: justify;">
<li><span style="color: #000000; font-size: 12pt;">Bold the most recent job titles you have held.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Invest time in highlighting the most relevant skills.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Showcase transparency in Employment Gaps (if any).</span></li>
<li><span style="color: #000000; font-size: 12pt;">Make it clear in the &lsquo;Objectives&rsquo; that you are qualified for the types of jobs you are applying.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Feature your communication skills and quick learning ability.</span></li>
<li><span style="color: #000000; font-size: 12pt;">Employ proficient terminology to speak about experiences in your Resume.</span></li>
</ul>f:T1a97,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">ADD.NET [Active Data object for .NET]: </span></h2>
<p><span style="font-size: 12pt;">It is a specification for interacting with any database or XML documents. &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Base class library (BCL):</strong></span></p>
<p><span style="font-size: 12pt;"> It is a collection of rich class library definitions that can be used from any application developed using any language targeting the .NET &nbsp;</span></p>
<p><span style="font-size: 12pt;"> <strong>Note: </strong>.NET achieves language independence with the support of CTS &amp; BCL. &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>CLR: </strong>It is a collection of resources which are used for executing a .Net application within a .Net environment &nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8934" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_1116-460x324.png" alt="Screenshot_11" width="454" height="319" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>In C language:</strong> If we execute first .exe in c o/p will get directly &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>In .NET Tech:</strong> If we execute first.exe in .Net the o/p will not get directly so it must be passed through CLR for O/p</span></p>
<blockquote>
<p><em><strong><span style="font-size: 12pt;"> These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>"</span></strong></em></p>
</blockquote>
<p><span style="font-size: 12pt;"><strong>Executable file: </strong> Whenever an application can be executed by the DS without any support of external runtime environment or tools then such types of applications are called Executable File. <img class="alignnone size-full wp-image-8935" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_1212.png" alt="Screenshot_12" width="331" height="291" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Metadata: </strong> It is used to maintain the information about the header files that are used within the application. </span></p>
<p><span style="font-size: 12pt;"><strong>Code: </strong>The code present within the executable code is a machine and platform-dependent format and hence the native platform can understand the code. </span></p>
<p><span style="font-size: 12pt;">&nbsp; <strong>X86 Instruction Set:</strong> It maintains the complete platform details which are needed for the execution &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Observation: </strong> An executable file provides the complete information which is needed for the OS for execution and hence no additional runtime environment is needed.<strong>&nbsp;</strong> <strong>&nbsp;</strong> </span></p>
<p><span style="font-size: 12pt;"><strong>Assembly:</strong> The compiled source code of any .Net application can be considered as an assembly. </span></p>
<p><span style="font-size: 12pt;"><strong>Note: </strong></span></p>
<ul>
<li><span style="font-size: 12pt;">If an assembly consists of the main method (entry point) then it is said to be an application (.exe0</span></li>
<li><span style="font-size: 12pt;">If an assembly is defined without an entry point then it is said to be a class library (.dll)</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-8936" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_1312-460x364.png" alt="Screenshot_13" width="535" height="423" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Metadata [Data about Data]:</strong> </span></p>
<p><span style="font-size: 12pt;">It maintains the information about BCL, CL (base class library, class library), and dependency file information within the application </span></p>
<p><span style="font-size: 12pt;"><strong>Ex: </strong>In C <img class="alignnone size-full wp-image-8553" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Untitled1.png" alt="Untitled" width="36" height="12" />&nbsp;Header files </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8937" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_1410-460x189.png" alt="Screenshot_14" width="517" height="212" /> &nbsp; </span></p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .Net Tutorial</a></span></p>
<p><span style="font-size: 12pt;"><strong>MSIL code: </strong> The compiled source of any .Net application developed using any language will be in the format of MSIL instructions which is a platform and a machine-independent format code. &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Resources: </strong> It maintains the information about resources which are used in the application like audio-video clips, images, icons, cursor, fonts, etc. &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Manifest: </strong> It is used to maintain the information about the attributes of an assembly such as author name, company name, version of the application, etc. &nbsp;</span></p>
<p><span style="font-size: 12pt;"> <strong>Observation:</strong> An assembly provides the details about itself but the information which is needed for the operating system will not be provided and hence the assembly cannot be executed directly by any OS. &nbsp; <strong>PEWRAPPER: [Portable Executable WRAPPER]</strong> It is used to invoke CLR for the execution</span></p>
<p><span style="font-size: 12pt;"> <strong>CLR: </strong> It is a collection of resources which are used for executing .Net application within the .Net environment </span></p>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-8938" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_158-460x339.png" alt="Screenshot_15" width="498" height="367" /> &nbsp; <img class="alignnone size-full wp-image-8939" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_168.png" alt="Screenshot_16" width="309" height="301" /> <img class="alignnone wp-image-8940" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_177-460x261.png" alt="Screenshot_17" width="487" height="276" /></span></p>10:T3214,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Project Class in C#</span></h2>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Executing the project under the client system, copy the project folders into the system from the cd. </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open sql server2005 data base files folder</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />We will find two data base files </span></p>
<p><span style="font-size: 12pt;">&ldquo;ERES-Data &rdquo;and&rdquo; ERES-log&rdquo; </span></p>
<p><span style="font-size: 12pt;">Copy these two files into c:program filesMicrosoft sql server/ms sql/data. </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />goto sql server2005 management studio Start&agrave;run &agrave;program</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /> sql server 2005</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Double click </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />We will be getting a wizard </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Server type: Data base Engine Server name: Run</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />cmd&agrave;host name</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />sys2 </span></p>
<p><span style="font-size: 12pt;">Login:sa </span></p>
<p><span style="font-size: 12pt;">Password:123 </span></p>
<p><span style="font-size: 12pt;">Authentication SQL Server Authentication </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Connect</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Select databasesv</span><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Right click<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />attach<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />click </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Add button<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />select PSA-Data mdf&agrave;Double click</span></p>
<p><span style="font-size: 12pt;"> ERES</span></p>
<blockquote>
<p><em><strong>These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>"</strong></em></p>
</blockquote>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />OK&agrave;Symbol will be displayed </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Admin </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Consultancy people will be using ERES and conducting the test.</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Administrator(User) </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Candidates registered </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Subject details and Question bank details</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Experience </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Psychology test</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />ASP.NET and vb.net</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Manual evaluation </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Registration number(Consultancy) Profiles Languages Skills</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Asp.net questions(blocked) </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Recruiters, consultancy </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />candidate Registration </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Reports means total number of candidates appeared </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />9 modules in the project </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Time Restriction. </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Candidates login </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />DFD</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />How the data is flowing from one module to another module. Subjects data base </span></p>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-8435" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_720.png" alt="Screenshot_7" width="429" height="284" /> &nbsp; </span></p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .Net Tutorial</a></span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Enrollment is registration. <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />2 to 3 level </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8436" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_816-460x243.png" alt="Screenshot_8" width="596" height="314" /> &nbsp; &nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Water fall model <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Spiral model <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />RAD model</span></p>
<h2><span style="font-size: 12pt;">&nbsp; &nbsp;&darr;</span></h2>
<p><span style="font-size: 12pt;">Waterfall model</span></p>11:T3cad,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Multithreading</span></h2>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8423" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_724-460x106.png" alt="Screenshot_72" width="500" height="115" /> &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">Multi means many</span></li>
</ol>
<p><span style="font-size: 12pt;">Thread means process</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">The process indicates either a part of a program or a complete program also</span></li>
<li><span style="font-size: 12pt;">Multithreading is the concept of executing more than one process simultaneously.</span></li>
<li><span style="font-size: 12pt;">Multithreading is used to develop parallel processing</span></li>
</ol>
<p><span style="font-size: 12pt;">Pentium iv 4.3 GHZ&agrave;43 Lakhs of instructions(cycle ) within 1min Speed</span></p>
<ol start="5">
<li><span style="font-size: 12pt;">Sharing CPU cycles efficiently is also called as &ldquo;Multi-Threading&rdquo;.</span></li>
<li><span style="font-size: 12pt;">The operating system allocates a set of as cles based on the priority(importance)of the process.</span></li>
</ol>
<p><span style="font-size: 12pt;">Ctrl+ Alt+ del</span></p>
<ol start="7">
<li><span style="font-size: 12pt;">Based on above statement, the os are divided into two types:-</span></li>
</ol>
<blockquote>
<p><em><strong>Interested in mastering .Net Training? Enroll now for a FREE demo on "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.Net Training</a></span>"</strong></em></p>
</blockquote>
<h3><span style="font-size: 12pt; color: #e67e23;">Single-Threaded</span></h3>
<p><span style="font-size: 12pt;">DOS UNIX </span></p>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-8424" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_743.png" alt="Screenshot_74" width="535" height="147" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">given to one app only<strong>&nbsp;</strong> &nbsp; &nbsp;</span></p>
<h2><span style="font-size: 12pt; color: #e67e23;">Multi-Threading</span></h2>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8425" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_753-460x257.png" alt="Screenshot_75" width="523" height="291" /> &nbsp; &nbsp;</span></p>
<ol start="8">
<li><span style="font-size: 12pt;">If o/s handles only one process at a time, then it is called as &ldquo;single thread os&rdquo;.</span></li>
<li><span style="font-size: 12pt;">Multi-thread os handles more than one process also</span></li>
<li><span style="font-size: 12pt;">To work with multi-threading, NET introduced</span></li>
</ol>
<p><span style="font-size: 12pt;">System. Threading namespace</span></p>
<ol>
<li><span style="font-size: 12pt;">Classes of system. Threading namespace</span></li>
<li><span style="font-size: 12pt;">a) <strong>Thread:</strong> Used to maintain the life aside of the threads</span></li>
<li><span style="font-size: 12pt;">b) <strong>Thread start:</strong> Used to create the threads.</span></li>
<li><span style="font-size: 12pt;">c) <strong>Mutex</strong>: Used in thread synchronization</span></li>
</ol>
<p><span style="font-size: 12pt;"><strong>&nbsp;</strong> <strong>&nbsp;</strong></span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Thread life cycle:-</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8426" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_763-460x289.png" alt="Screenshot_76" width="570" height="357" /> &nbsp; &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Four steps for writing threading applications:_</span></h3>
<ol>
<li><span style="font-size: 12pt;">Write a class with methods</span></li>
</ol>
<p><span style="font-size: 12pt;">Class test {</span></p>
<p><span style="font-size: 12pt;"> Public vaid print(){}</span></p>
<p><span style="font-size: 12pt;">}</span></p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .Net Tutorial</a></span></p>
<ol start="2">
<li><span style="font-size: 12pt;">Create an object for thread start delegate with the address of a function</span></li>
</ol>
<p><span style="font-size: 12pt;"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Syntax:- </strong></span></p>
<p><span style="font-size: 12pt;">Test t = new test(); </span></p>
<p><span style="font-size: 12pt;">Thread start ts=new thread start(t.print);</span></p>
<ol start="3">
<li><span style="font-size: 12pt;">Create a thread with the help of thread start object</span></li>
</ol>
<p><span style="font-size: 12pt;">Thread tr=new thread(ts); </span></p>
<p><span style="font-size: 12pt;">Start the thread Tr. start() &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Example1:-</span></h3>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-8427" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_138-460x211.png" alt="Screenshot_1" width="635" height="290" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">A program to execute two for loops simultaneously </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open console application project Using system. Threading; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />code in GD Class test</span></p>
<pre class="language-javascript"><code>{

Public static vold p1()

{

For (int i=1; i&lt;=10;i++)

{

Console. write(I+&rdquo;&rdquo;);

Thread . sleep(500);

}//for

}

//p1

Public static void p2()

{

For(int k=11;k&lt;20;k++)

{

Console. write link(k);

Thread. sleep(500)

//500 millisec

}//for

}

//p2 }//test  

</code></pre>
<p><span style="color: #e67e23;"><strong style="font-size: 12pt;">Code for the main method:-</strong></span></p>
<p><span style="font-size: 12pt;">Thread start ts1=new thread start (Test.p1) </span></p>
<p><span style="font-size: 12pt;">Thread start ts2=new thread start (Test.p2) </span></p>
<p><span style="font-size: 12pt;">Thread t1=new thread (ts1) </span></p>
<p><span style="font-size: 12pt;">Thread t2=new thread (ts1):</span></p>
<p><span style="font-size: 12pt;">//here </span></p>
<p><span style="font-size: 12pt;">ts1 T1.start() T2.start() Console.Read key();</span></p>
<p><span style="font-size: 12pt;"> T1.suspend(); Console. Read key(); </span></p>
<p><span style="font-size: 12pt;">T1.Resume(); Console. Read key (); </span></p>
<p><span style="font-size: 12pt;"><strong>o/p :</strong> 112233----2020 <strong>&nbsp;</strong></span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Thread synchronization:-</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8428" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_226-460x373.png" alt="Screenshot_2" width="584" height="473" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">1.Thread synchronization is the concept of allowing only one thread at a time into one process</span></p>
<p><span style="font-size: 12pt;"> 2.It process is busy, threads need to wait in the queue </span></p>
<p><span style="font-size: 12pt;">3.Waiting threads will be executed based on priority</span></p>
<ol start="4">
<li><span style="font-size: 12pt;">Mutex is a class which controls waiting for threads with the help of wait one() and release mutex()<strong>&nbsp;</strong></span></li>
</ol>
<p><span style="font-size: 12pt;"><strong>&nbsp;</strong> <strong>OBS:</strong> </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8429" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_320-460x314.png" alt="Screenshot_3" width="519" height="353" /> &nbsp;</span></p>
<p><span style="font-size: 12pt;"> 5.The code which is written in between wait one()and release mutex()is called a synchronized code. &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">A Program to print &rdquo;ALL THE BEST&rdquo;3 TIMES WITH THE HELP OF THREADING:</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8430" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_420-460x125.png" alt="Screenshot_4" width="581" height="157" /> </span></p>
<pre class="language-javascript"><code>{

Console. write(&ldquo;ALL&rdquo;);

Console. write(&ldquo;THE&rdquo;);

Console. write(&ldquo;Best&rdquo;);

}

</code></pre>
<p><img class="alignnone size-full wp-image-7854" style="font-size: 12pt;" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /><span style="font-size: 12pt;">open console application project Using system. Threading; </span><strong style="font-size: 12pt;">&nbsp;</strong><span style="font-size: 12pt;"> </span><strong style="font-size: 12pt;">&nbsp;</strong></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Code in GD</span></h3>
<pre class="language-javascript"><code>Class program

{

Static mutex m = new mutex();

Class test

{

Public static void print()

{

wait one();
console. write(&ldquo;ALL&rdquo;);

Thread. sleep(1000);

Consote. write(&ldquo;THE&rdquo;);

Thread .sleep(1000);

Console. write(&ldquo;BEST&rdquo;);

Thread. sleep(1000);

Console. Write line();

//for new line Thread. sleep(1000);

Release mutex();
}//print }//test  

</code></pre>
<p><span style="color: #e67e23;"><strong style="font-size: 12pt;">Code for the main method:-</strong></span></p>
<pre class="language-javascript"><code>{

Thread start ts=new thread start(test. print);

Thread start t1=new thread (ts);

Thread start t2=new thread (ts);

Thread start t3=new thread (ts);

T1.Start(); T2.Start();

T3.Start();

Console. Read key();

}  

</code></pre>
<p><strong style="font-size: 12pt;">Pointers:-</strong></p>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8431" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_520-460x161.png" alt="Screenshot_5" width="537" height="188" /> </span></p>
<p><span style="font-size: 12pt;">Why we use pointers? For fast accessing Fig(a) Accessing &rsquo;i&rsquo; value is fast when compared to the pointer variable, but it is not in this case fast. Char*p&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p><span style="font-size: 12pt;"> 2B Double*p&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Logic is m/c of o/s they are unmanaged code.</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />The size of the pointers varies or dependent on the o/s, so they are unmanaged code, so c#.net only supports pointers but not implemented.</span></p>
<ol>
<li><span style="font-size: 12pt;">Pointer holds the address of a variable.</span></li>
<li><span style="font-size: 12pt;">The pointer is unmanaged code in c#.net.</span></li>
<li><span style="font-size: 12pt;">The pointer is also called an unsafe code.</span></li>
</ol>
<p><span style="font-size: 12pt;">Unsafe is a keyword Pointers logic must be the part of the unsafe block only Pointer size varies from o/s to o/s Generally o/s are divided into 3 types <img class="alignnone wp-image-8432" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_618-460x207.png" alt="Screenshot_6" width="544" height="245" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">Unmanaged code is not all recommended In c# .net it we want to use in c# by using un sate keyword </span></p>
<p><span style="font-size: 12pt;"><strong>Ex:- </strong>&nbsp;</span></p>
<p><span style="font-size: 12pt;">Place a button on the form </span></p>
<p><span style="font-size: 12pt;">{</span></p>
<p><span style="font-size: 12pt;"> Un sate { Int iz 90; Int*p; P=&amp;I; </span></p>
<p><span style="font-size: 12pt;">Int k; K=*p**p; MBS(K+&rdquo;&rdquo;); </span></p>
<p><span style="font-size: 12pt;">} </span></p>
<p><span style="font-size: 12pt;">By pressing f5 it gives a warning that you are using un state code. Please inform to CLR to execute unsafe code. </span></p>
<p><span style="font-size: 12pt;">Go to project </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />properties</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />build&agrave;Check Menu &ldquo;Allow un sate code&rdquo; Check Box Execute the project Inter+ view</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /> Internal look-Behavior </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />subject</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />time sense</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Body language</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />confidence &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></p>12:Tbed6,<p>&nbsp;</p>
<h3><span style="font-size: 12pt; color: #e67e23;">Implicit type Declaration</span></h3>
<h3>&nbsp;</h3>
<h3><span style="font-size: 12pt;"><img class="alignnone wp-image-8403" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_617-460x158.png" alt="Screenshot_61" width="585" height="201" /> </span></h3>
<h3><strong><span style="font-size: 12pt;">&nbsp; Int SQL </span></strong></h3>
<h3><strong><span style="font-size: 12pt;">MBS(SQL);</span></strong></h3>
<h3><strong><span style="font-size: 12pt;"> (OR) </span></strong></h3>
<h3><strong><span style="font-size: 12pt;">MBS(SQL+&rdquo;&rdquo;); </span></strong></h3>
<h3><strong><span style="font-size: 12pt;">Int SQL; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></strong><strong><span style="font-size: 12pt;">var SQL;X var SQL=5000;</span></strong></h3>
<h3><strong><span style="font-size: 12pt;"> SQL=5000; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SQL=5000; MGS(SQL +&ldquo;&rdquo;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Msg(SQL +&ldquo;&rdquo;);</span></strong></h3>
<ol>
<li><span style="font-size: 12pt;">Var is a keyword</span></li>
<li><span style="font-size: 12pt;">Var is a new data type introduced in .net framework 3.5(C#.NET3.0)</span></li>
<li><span style="font-size: 12pt;">Var data type holds any type of data.</span></li>
<li><span style="font-size: 12pt;">Var variables must be initialized in the same line of declaration.</span></li>
<li><span style="font-size: 12pt;">Var data type can be used only in a local scope.</span></li>
<li><span style="font-size: 12pt;">Var variables are not allowed as function arguments.</span></li>
</ol>
<blockquote>
<p><em><span style="font-size: 12pt;"><strong>&nbsp;</strong> <strong>&nbsp;</strong></span><strong>Interested in mastering .Net Training? Enroll now for a FREE demo on "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.Net Training</a></span>".</strong></em></p>
</blockquote>
<h3><span style="font-size: 12pt; color: #e67e23;">Example on var</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Place a button on the form </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Code for Button1-click </span></p>
<pre class="language-javascript"><code>{

Var x = 1500;

Message box. show(X. Get Type().name);

}  

</code></pre>
<h3><span style="color: #e67e23; font-size: 12pt;">Working with auto-implemented properties</span></h3>
<ol>
<li><span style="font-size: 12pt;">A property is a collection of ser &amp; Get methods with logic.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; <strong>Property&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Auto Implemented property</strong> </span></p>
<p><span style="font-size: 12pt;">Data type var name;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Public data type Property name Public </span></p>
<p><span style="font-size: 12pt;">Data type pname&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { </span></p>
<p><span style="font-size: 12pt;">{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p><span style="font-size: 12pt;"> set&rdquo;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(no logic) Set{var name - value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Get: </span></p>
<p><span style="font-size: 12pt;">Get{return var name}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </span></p>
<p><span style="font-size: 12pt;">}</span></p>
<p><span style="font-size: 12pt;"> Auto implemented property is a&nbsp; collection of set and get methods without any logic. </span></p>
<p><span style="font-size: 12pt;">Auto implemented property are required for object initializes and collection initializes. &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Working with object initializes</span></h3>
<p><span style="font-size: 12pt;">Class em { </span></p>
<p><span style="font-size: 12pt;">Private int double SQL, Eno; </span></p>
<p><span style="font-size: 12pt;">Public string e name; </span></p>
<p><span style="font-size: 12pt;">Public emp(int){} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: 12pt;">Emp E1= new Emp(id) </span></p>
<p><span style="font-size: 12pt;">P Emp(string x){} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: 12pt;">Emp E2= new Emp(&lsquo;Teja&rsquo;) (double x)&hellip;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></p>
<p><span style="font-size: 12pt;">Emp E3 = NEW Emp(71.3) Emp </span></p>
<p><span style="font-size: 12pt;">E4 = NEW Emp(101,teja) </span></p>
<p><span style="font-size: 12pt;">------- =</span></p>
<p><span style="font-size: 12pt;"> NEW Emp()</span></p>
<ol>
<li><span style="font-size: 12pt;">Object initializers are bit similar to construction</span></li>
<li><span style="font-size: 12pt;">To work with object initializers, Auto- Implemented properties are required.</span></li>
<li><span style="font-size: 12pt;">Syntax to create an object with constructors.</span></li>
</ol>
<p><span style="font-size: 12pt;">EMP E1=new EMP(101,&rdquo;Teja&rdquo;); </span></p>
<p><span style="font-size: 12pt;">4.Syntax to create an object with object Initialize EMP E1=New EMP{Property name=value} Auto Implemented property 5. The main objective of the object Initializes to reduce the number of lines in the source. </span></p>
<p><span style="font-size: 12pt;"><strong>Code</strong></span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Example on object Initializers</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Place a button on the form </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />code in GD Class emp</span></p>
<pre class="language-javascript"><code>{

Public int eno

{

set;get;

}

Public string ename

{

set; get;

}

Public int SQL

{

set; get;

} }//Emp     

</code></pre>
<h3><span style="font-size: 12pt; color: #e67e23;">Code for button1click</span></h3>
<pre class="language-javascript"><code>{

Emp E1 New EMP{Eno=101, Ename=&rdquo;Bangaru&rdquo;, SQL=5000};

Message Box.show(E1.Eno+&rdquo;&rdquo;+E1.Ename+&rdquo;&rdquo; E.SQL);

}</code></pre>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-8404" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_624.png" alt="Screenshot_62" width="213" height="149" /> &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Working with collection Initializer</span></h3>
<ol>
<li><span style="font-size: 12pt;">It is an extension of object initialize</span></li>
</ol>
<p><span style="font-size: 12pt;">Int x; Int[] x= new int[10]</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">Collection Initializer works like an array</span></li>
<li><span style="font-size: 12pt;">If the class name is EMP then</span></li>
</ol>
<p><span style="font-size: 12pt;">EMP[]X=new EMP[10]; //Orcate an array with 10 elements but not with 10 objects If we want 10 objects.</span></p>
<ol start="4">
<li><span style="font-size: 12pt;">Collection Initializers must be stored in a generic data type is called a list</span></li>
<li><span style="font-size: 12pt;">Generic data types will be indicated with&lt;&gt;</span></li>
<li>&nbsp;</li>
</ol>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .Net Tutorial</a></span></p>
<p><span style="font-size: 12pt;"><strong>Example</strong> </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Place a button</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Code in GD Class EMP { Public int Eno {set; get;} Public string Ename{ set; get;} }//Emp &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Code for button1click</span></h3>
<pre class="language-javascript"><code>{

List&lt;Emp&gt;x=new List&lt;Emp&gt;

{

New Emp {Eno=101,Ename=&rdquo;Teja&rdquo;},

New Emp {Ename=&rdquo;ravi&rdquo;},

New Emp {Eno=203},

}//print the data For each

(EMP e1 in x) Message Box. Show (e1.Eno+&rdquo;&rdquo;+e1.Ename);

}    

</code></pre>
<h3><span style="font-size: 12pt; color: #e67e23;">Working with Anonymous types</span></h3>
<ul>
<li><span style="font-size: 12pt;">While creating anonymous types, CLR generates class automatically for these anonymous types we cannot see the internal problem.</span></li>
<li><span style="font-size: 12pt;">These auto-implemented classes are not visible to be programmers.</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Syntax to create anonymous types</span></h3>
<p><span style="font-size: 12pt;">Var x=new</span></p>
<p><span style="font-size: 12pt;">{eno=101,ename=&rdquo;teja&rdquo;}</span></p>
<p><span style="font-size: 12pt;"> Message box. show(x.eno+&rdquo;&rdquo;+x. ename); <strong>&nbsp;</strong></span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Extension Methods</span></h3>
<ol>
<li><span style="font-size: 12pt;">It is the concept of adding new functionality to an existing library(DLL files)</span></li>
<li><span style="font-size: 12pt;">It requires some new methods that can be added to existing data types also.</span></li>
<li><span style="font-size: 12pt;">Extension methods must be written in a. OUTLINE class</span></li>
</ol>
<p><span style="font-size: 12pt;">Class form1 { Class test{} Inline class }//form1 Class best{} outline class</span></p>
<ol start="4">
<li><span style="font-size: 12pt;">Extension methods must be declared as static</span></li>
<li><span style="font-size: 12pt;">Extension methods must be PART Of Static Classes Only</span></li>
<li><span style="font-size: 12pt;">Extension methods must contain at least one argument and the first argument must be specified with this keyword.</span></li>
</ol>
<p><span style="font-size: 12pt;"><strong>&nbsp;</strong></span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Example on extension methods</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Adding a new method to an existing data type int</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open windows forms application project </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Place a button </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /></span></p>
<pre class="language-javascript"><code>Code after form1 class { } }

//form1 Static class test

{

Public static void print(this int1)

{

Message box. show(i+&rdquo;&rdquo;);

}//print method

}

//test</code></pre>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /></span></p>
<pre class="language-javascript"><code>code for button1-click

{

Int x =10;

print();
}    </code></pre>
<h3><span style="font-size: 12pt; color: #e67e23;">Methods</span></h3>
<ol>
<li><span style="font-size: 12pt;">When a class needs to be implemented in multiple locations with the same name, then those classes needed to be declared as partial classes.</span></li>
<li><span style="font-size: 12pt;">Partial methods must be part of partial classes.</span></li>
<li><span style="font-size: 12pt;">By default partial methods are private.</span></li>
<li><span style="font-size: 12pt;">Hence to call a partial method, a public method must be written with in the class</span></li>
<li><span style="font-size: 12pt;">The partial method needs to be declared in one class and the same partial method needs to be defined (write the body) in another class.</span></li>
</ol>
<p><span style="font-size: 12pt;">Partial class test { Partial void print(); } Partial class test { Partial void print() { Message&nbsp; box. Show(&ldquo;from print&rdquo;); } Public void display { PRINT(); } &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Example on partial methods</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />place a button on the form </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />code in GD Partial class test </span></p>
<pre class="language-javascript"><code>{

Partial void print();

//declaration

}

Partial class test

{

Partial void print();

//default private

{

Message  box. Show(&ldquo;from print&rdquo;);

}

Public void display

{

PRINT();

}

}//test

</code></pre>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /></span><span style="font-size: 12pt;">Code for button1-click</span></p>
<pre class="language-javascript"><code>{

Test t = new test();

display();
}</code></pre>
<p><span style="font-size: 12pt;"> &nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Working with WPF(windows presentation foundation)</span></h3>
<ol>
<li><span style="font-size: 12pt;">WPF is a new programming concept developed in .NET Frame work 3.5</span></li>
<li><span style="font-size: 12pt;">WPF programming and silver light programming concepts are same.</span></li>
<li><span style="font-size: 12pt;">WPF is used to develop RICH INTERNACTIVE DESK TOP APPLICATIONS.</span></li>
<li><span style="font-size: 12pt;">WPF is used to develop</span></li>
</ol>
<p><span style="font-size: 12pt;">(a) Shapes (b) Graphics (c) Allows to use brushes (d)Transformations (e)Animations</span></p>
<ol start="5">
<li><span style="font-size: 12pt;">To develop WPF program, .NET introduced WPF Application project template.</span></li>
<li><span style="font-size: 12pt;">When WDF Application is opened, then by default a window will be displayed which contains 3 modes.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; &nbsp; <img class="alignnone size-full wp-image-8405" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_634.png" alt="Screenshot_63" width="378" height="122" /> &nbsp;</span></p>
<ol start="7">
<li><span style="font-size: 12pt;">XAML is a new programming concept introduced for WPF and Silver light programming.</span></li>
<li><span style="font-size: 12pt;">XAML &ndash; Extensible application markup language.</span></li>
</ol>
<p><span style="font-size: 12pt;">XAML is similar to XML Syntactically. &nbsp;</span></p>
<table style="height: 363px;" width="797">
<tbody>
<tr>
<td width="163"><span style="font-size: 12pt;"><strong>HTML</strong></span></td>
<td width="150"><span style="font-size: 12pt;"><strong>XML</strong></span></td>
<td width="150"><span style="font-size: 12pt;"><strong>XAML</strong></span></td>
</tr>
<tr>
<td width="163">
<ol>
<li><span style="font-size: 12pt;">Web application</span></li>
</ol>
</td>
<td width="150"><span style="font-size: 12pt;">To describe the data</span></td>
<td width="150"><span style="font-size: 12pt;">To develop WPF Applications</span></td>
</tr>
<tr>
<td width="163">
<ol start="2">
<li><span style="font-size: 12pt;">Not case sensitive</span></li>
</ol>
</td>
<td width="150"><span style="font-size: 12pt;">case sensitive</span></td>
<td width="150"><span style="font-size: 12pt;">case sensitive</span></td>
</tr>
<tr>
<td width="163">
<ol start="3">
<li><span style="font-size: 12pt;">Error free Language</span></li>
</ol>
</td>
<td width="150"><span style="font-size: 12pt;">Structured Language</span></td>
<td width="150"><span style="font-size: 12pt;">Structured Language</span></td>
</tr>
<tr>
<td width="163">
<ol start="4">
<li><span style="font-size: 12pt;">Collection of pre defined tags</span></li>
</ol>
</td>
<td width="150"><span style="font-size: 12pt;">Collection of&nbsp; user defined tags</span></td>
<td width="150"><span style="font-size: 12pt;">Collection of&nbsp; pre defined tags</span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 12pt;">&nbsp; &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Syntax of xml</span></h3>
<p><span style="font-size: 12pt;">&lt;peers&gt;<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /> Root element </span></p>
<p><span style="font-size: 12pt;">&lt;student&gt;<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />entity &lt;sno&gt;101</span></p>
<p><span style="font-size: 12pt;">&lt;/sno &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sub entities &lt;sno&gt; taja&lt;/sn&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (or) </span></p>
<p><span style="font-size: 12pt;">Attributes </span></p>
<p><span style="font-size: 12pt;">&lt;/stu&gt;</span></p>
<p><span style="font-size: 12pt;"> &lt;faculty &lt;FN&gt;Ravi&lt;/FN&gt;</span></p>
<p><span style="font-size: 12pt;"> &lt;SAL&gt;3800&lt;/SAL&gt;</span></p>
<p><span style="font-size: 12pt;"> &lt;/Faculty&gt;</span></p>
<p><span style="font-size: 12pt;"> &lt;/peers&gt; &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Syntax of XAML</span></h3>
<p><span style="font-size: 12pt;">&lt;Window&gt; </span></p>
<p><span style="font-size: 12pt;">&lt;GRID&gt;</span></p>
<p><span style="font-size: 12pt;"> &lt;Button&gt;------&lt; /Button &gt;</span></p>
<p><span style="font-size: 12pt;"> &lt;Label&gt;------&lt; /Label &gt;</span></p>
<p><span style="font-size: 12pt;"> &lt; /GRID &gt;</span></p>
<p><span style="font-size: 12pt;"> &lt;/Window&gt; &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Rules to be followed in XAML or XML</span></h3>
<ol>
<li><span style="font-size: 12pt;">Every opened tag must be closed.</span></li>
<li><span style="font-size: 12pt;">The document must contain a root element.</span></li>
<li><span style="font-size: 12pt;">The structure of the tags need to be maintained</span></li>
<li><span style="font-size: 12pt;">It is case sensitive.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">EX-1:- A WPF APPLICATION TO DISPLAY COMPANY TITLE WITH MUTTIPLE TEXT COLORS</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open WPF Application project. </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Write the following with in Grid tag. </span></p>
<pre class="language-javascript"><code>&lt; Grid &gt;

&lt;Text block text=&rdquo;MICROSOFT&rdquo;&gt;

&lt;Font size=&rdquo;40&rdquo; Font family=&rdquo;Arial&rdquo;&gt;

&lt;Text block. Fore ground&gt;

&lt;Linear Gradient brush&gt;

&lt; Gradient stop offset=&rdquo;.1&rdquo;color=&rdquo;Red&rdquo;/&gt;

&lt; Gradient stop offset=&rdquo;.3&rdquo;color=&rdquo;yellow&rdquo;/&gt;

&lt; Gradient stop offset=&rdquo;.5&rdquo;color=&rdquo;blue&rdquo;/&gt;

&lt; Gradient stop offset=&rdquo;.8&rdquo;color=&rdquo;Green&rdquo;/&gt;

&lt; / Linear gradient brush&gt;

&lt; / Text block. Fore ground&gt;

&lt; / Text block &gt;

&lt; / Grid &gt;  

</code></pre>
<p><strong style="font-size: 12pt;">Obs:-</strong></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />offset value must be in between 0 to1. </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />offset indicates the color starting point. </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />&lt;Grid&gt;is called a container. &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Working with containers</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />WPF Supports two types of containers GRID Container</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone wp-image-8408" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_643-460x308.png" alt="Screenshot_64" width="483" height="322" /> &nbsp; </span></p>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>Example on Grid with multiple rows and columns</strong> </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open WPF </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Write the following within Grid tag </span></p>
<pre class="language-javascript"><code>&lt;Grid&gt;

&lt;Grid. Row Definitions&gt;

&lt;Row Definition Height=&rdquo;150&rdquo;&gt;

&lt;/ Row Definitions&gt;

&lt;/Grid. Row Definitions&gt;

&lt;Grid. Column Definitions&gt;

&lt; Column Definitions width=&rdquo;150&rdquo;&gt;

&lt; /Column Definitions&gt;

&lt;/Grid. Column Definitions&gt;

&lt;Button Grid. Row =&rdquo;o&rdquo; Grid.  Column=&rdquo;o&rdquo;&gt;Click1&lt; /Button &gt;

&lt; Button Grid. Row =&rdquo;o&rdquo; Grid. Column=&rdquo;1&rdquo;&gt;Click1&lt; /Button &gt;

&lt;/Grid&gt;

&lt;/Grid. Row Definitions&gt;

&lt;Row Definitions Height=&rdquo;150&rdquo;&gt;

&lt;/ Row Definitions &gt;  

</code></pre>
<p><span style="color: #e67e23;"><strong style="font-size: 12pt;">Working with brushes</strong></span></p>
<p><span style="font-size: 12pt;">WPF supports 4 types of brushes </span></p>
<p><span style="font-size: 12pt;">&nbsp; <strong>Solid color Brush</strong> </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-8409" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_653.png" alt="Screenshot_65" width="144" height="102" /></span></p>
<p><span style="font-size: 12pt;"> <strong>Linear Gradient Brush</strong> </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-8410" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_663.png" alt="Screenshot_66" width="82" height="67" /> &nbsp;</span></p>
<p><span style="font-size: 12pt;"> <strong>Radial gradient Brush</strong> </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-medium wp-image-8411" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_672.png" alt="Screenshot_67" width="135" height="156" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Image Brush</strong> </span></p>
<p><span style="font-size: 12pt;">Technology &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Examples</span></h3>
<p><span style="font-size: 12pt;">Open WPF Application project Remove Grid tag and type canvas Type the following within canvas tag. </span></p>
<pre class="language-javascript"><code>&lt;canvas&gt;

&lt;Ellipse width=&rdquo;200&rdquo;Height=&rdquo;200&rdquo; Stroke=&rdquo;Red&rdquo; Stroke Think news=&rdquo;5&rdquo; Canvas. top=&rdquo;20&rdquo;canvas.left=&rdquo;40&rdquo;&gt;

&lt; Ellipse. Fill&gt;

&lt;solid color brush color=&rdquo;blue&rdquo;&gt;

&lt;/solid color brush&gt;

&lt; /Ellipse&gt;

&lt; Elliple. Fill&gt;

&lt; /Convas&gt;

&lt; Ellipse. Fill&gt;

&lt; Linear Gradient brush&gt;

&lt; Gradient stop offset =&rdquo;2&rdquo; color=&rdquo;Blue&rdquo;/ &gt;

&lt; Gradient stop offset =&rdquo;4&rdquo; color=&rdquo;yellow&rdquo;/ &gt;

&lt; Gradient stop offset =&rdquo;6&rdquo; color=&rdquo;Red&rdquo;/ &gt;

&lt; Gradient stop offset =&rdquo;7&rdquo; color=&rdquo;Green&rdquo;/ &gt;

&lt; Gradient stop offset =&rdquo;9&rdquo; color=&rdquo;Orange&rdquo;/ &gt;

&lt; /Linear Gradient brush&gt;

&lt;/ Ellipse. Fill&gt;

(or) &lt;Radial gradient Brush&gt;

&lt;/Radia L Gradient Brush&gt;  

</code></pre>
<p><span style="color: #e67e23;"><strong style="font-size: 12pt;">Example on Image Brush</strong></span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />open WPF Application project </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />View&agrave;Solution Explorer&agrave;Rt click on project Name</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Add<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Existing Item<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Choose an image Type the following within grid tag </span></p>
<pre class="language-javascript"><code>&lt;Grid&gt;

&lt;Text block Text=&rdquo;Microsoft&rdquo; Font family=&rdquo;Arial&rdquo; Font size=&rdquo;200&rdquo;&gt;

&lt;Text block. fore ground&gt;

&lt;Image brush Image source=&rdquo;Sybset.jpg&rdquo;&gt;

&lt;/Image brush&gt;

&lt;/Text block. fore ground&gt;

&lt;/text block&gt;

&lt;/Grid&gt;    

</code></pre>
<p><span style="color: #e67e23;"><strong style="font-size: 12pt;">Working with wpf transformations</strong></span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Trans formation is the concept of moving&nbsp; an object in a particular angle </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />WPF Supports 3 types of transformations. &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Rotate transformation</strong> </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-8412" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_683.png" alt="Screenshot_68" width="343" height="142" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Skew Transformation</strong> &nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-medium wp-image-8413" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_693.png" alt="Screenshot_69" width="300" height="94" /></span></p>
<p><span style="font-size: 12pt;"> &nbsp; <strong>Scale transformation</strong> &nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-medium wp-image-8414" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_704.png" alt="Screenshot_70" width="300" height="95" /> &nbsp;</span></p>
<h3><span style="font-size: 12pt;"><strong>Syntax of transformations</strong></span></h3>
<pre class="language-javascript"><code>&lt;control&gt;

&lt; control. Render Transform&gt;

&lt;Rotate Transform . . . . ./&gt;

&lt;/control. Render Transform &gt;

&lt;/control&gt;  

</code></pre>
<p><strong style="font-size: 12pt;">Obs</strong><span style="font-size: 12pt;"> Transformations must be the part of render transform tag.&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Example on Transformations</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open WPF Application project</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Replace Grid tag with canvas </span></p>
<pre class="language-javascript"><code>&lt; canvas&gt;

&lt;Button width=&rdquo;100&rdquo;Height=&rdquo;60&rdquo; Convas. Top=&rdquo;30&rdquo; Convas. Left=&rdquo;20&rdquo;&gt;

click

&lt;Button. Render. Transform&gt;

&lt;Rotate Transform  Angle=&rdquo;45&rdquo;&gt;

&lt;Rotate Transform&gt;

&lt;/Button. Render. Transform&gt;

&lt;/Button&gt;

&lt;/ Convas &gt;  

</code></pre>
<p><strong style="font-size: 12pt;">The syntax for skew Transformation</strong></p>
<p><span style="font-size: 12pt;">&lt;Skew Transform&nbsp; Angle x =&rdquo;50&rdquo;&gt;</span></p>
<p><span style="font-size: 12pt;"> Angle y =&rdquo;20&rdquo;&gt;&lt;/skew Transform &gt; &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Syntax for scale Transformation</span></h3>
<p><span style="font-size: 12pt;">&lt;canvas&gt; &lt;Button width=&rdquo;100&rdquo;Height=&rdquo;60&rdquo; &gt; &lt;Scale Transform scale x=&rdquo;2&rdquo; scale y=&rdquo;2&rdquo;&gt;&lt;/ scale Transform &gt;</span></p>
<ul>
<li><span style="font-size: 12pt;">Moring an an object in a particular angle continuously is called as &ldquo;Animation&rdquo;.</span></li>
<li><span style="font-size: 12pt;">Generally in c#, to develop animated programs, Timer control is required</span></li>
<li><span style="font-size: 12pt;">In WPF, a Story Board tag is introduced, which works similarly to a timer control.</span></li>
<li><span style="font-size: 12pt;">Storyboard tag must be the part of beginning storyboard tag in wpf events that are called triggers.</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Syntax to write animated programs</span></h3>
<p><span style="font-size: 12pt;">&lt;canvas&gt; </span></p>
<p><span style="font-size: 12pt;">&lt;Control----------&gt;</span></p>
<p><span style="font-size: 12pt;"> &lt;Controls. Triggers&gt;</span></p>
<p><span style="font-size: 12pt;"> &lt;Event&nbsp; Trigger------&gt; </span></p>
<p><span style="font-size: 12pt;">&lt;Begin story board&gt; </span></p>
<p><span style="font-size: 12pt;">&lt;Story board&gt; </span></p>
<p><span style="font-size: 12pt;">&lt;Double Animation --------&gt; </span></p>
<p><span style="font-size: 12pt;">&lt;/Story board&gt; </span></p>
<p><span style="font-size: 12pt;">&lt;/Begin Story board &gt;</span></p>
<p><span style="font-size: 12pt;"> &lt;/Control. Triggers&gt; </span></p>
<p><span style="font-size: 12pt;">&lt;/Control&gt; </span></p>
<p><span style="font-size: 12pt;">&lt;/Control&gt; &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Example:- Developing line animation</span></h3>
<p><span style="font-size: 12pt;">&agrave;Open WPF Application project. Replace Grid with canvas tag top</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-8419" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_7110.png" alt="Screenshot_71" width="186" height="80" /> </span></p>
<pre class="language-javascript"><code>&lt;canvas&gt;

Ellipse /

&lt;Line x1=&rdquo;10&rdquo; y1=&rdquo;10&rdquo;x2=&rdquo;50&rdquo;y2=&rdquo;10&rdquo; Stroke=&rdquo;RED&rdquo; Stroke Thickness =&rdquo;5&rdquo;&gt; X:Name =&rdquo;abc&rdquo;&gt;

Line object name

&lt;Line. Triggers&gt;

&lt;Event Triggers  Routed Event= &ldquo;Convas. Loaded&rdquo;&gt;

&lt;Begin story board&gt;

&lt;Story board &gt;

&lt;Double Animation Story board . Target name=&rdquo;abc&rdquo; Story board Target property=&rdquo;(canvas. left)&rdquo; From = &ldquo;o&rdquo; To =&rdquo;800&rdquo;&gt;

Auto reverse =&rdquo;True&rdquo; Repeat Behavior=&rdquo;Forever&rdquo; Duration=&rdquo;00:00:03&rdquo;&gt;

&lt;/Double animation&gt;

&lt;/ Story board &gt;

&lt;/Begin story board&gt;

&lt;/Event Trigger&gt;

&lt;/Line. Triggers&gt;

&lt;/Line&gt;

&lt;/Canvas&gt;  

</code></pre>
<p><strong style="font-size: 12pt;">Working with LINQ[Language integrated Query]</strong></p>
<p><span style="font-size: 12pt;">C#.NET &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: 12pt;">Oracle Int[]x=new int[] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: 12pt;">Works on tables {7,5,8,2,7,6,1} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p><span style="font-size: 12pt;"> All the records From I in x &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: 12pt;">select I; Select*from emp: select I; </span></p>
<p><span style="font-size: 12pt;">Select*from emp: Where SQL&gt;1000; &gt;5 From i in x where i&gt;5 Select i; </span></p>
<p><span style="font-size: 12pt;"><strong>Sorting</strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>SQL Ascending order</strong></span></p>
<p><span style="font-size: 12pt;"> From I in x&nbsp; order by I &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p><span style="font-size: 12pt;"> select * from emp Ascending select I; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: 12pt;">order by SQL ASC;</span></p>
<ol>
<li><span style="font-size: 12pt;">LINQ is bit similar to SQL Queries</span></li>
<li><span style="font-size: 12pt;">SQL is used to retrieve the data from the data bases</span></li>
<li><span style="font-size: 12pt;">LINQ is used to retrieve the data from .NET objects.</span></li>
<li><span style="font-size: 12pt;">LINQ Queries works on reference types only.</span></li>
<li><span style="font-size: 12pt;">Generally, the LINQ Query starts with a keyword called from and ends with a select keyword</span></li>
<li><span style="font-size: 12pt;">LINQ Supports Aggregate functions which are in traduced as extension methods.</span></li>
</ol>
<p><span style="font-size: 12pt;">SUM(),Average(),MAX(),Min() etc. &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Example on LINQ</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open windows form application project </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />place a button </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Code for Button 1-click </span></p>
<pre class="language-javascript"><code>{

Int[]x=new int[]{4,6,2,6,8,9,1,3};

Strings=&rdquo;&rdquo;;

//print the values which are&gt;5 Var v=from I in x where i&gt;5 select I;

//Sort the numbers in ascending order.

Var v = from I in x order by I ascending select I;

//printing distinct numbers

Var v=(from in x select i)Distinct();

//printing the sum of the numbers

Int total=x.sum();

Message box. show(total+&rdquo;&rdquo;);

//Printing the arrange of the numbers

Double total =x. average();

Message box. show(total+&rdquo;&rdquo;);

For each(int k in v) S=s+k+&rdquo;&rdquo;;

Message box. show(s);  

</code></pre>
<p><img class="alignnone size-full wp-image-7854" style="font-size: 12pt;" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /><span style="font-size: 12pt;">Place one more button(button2)</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />code for button2-click </span></p>
<pre class="language-javascript"><code>{

Int[]x=new int[]{4,6,2,6,8,9,1,3};

Strings=&rdquo;&rdquo;;

//print the values which are&gt;5 Var v=from I in x where i&gt;5 select I;

//Sort the numbers in ascending order.

Var v = from I in x order by I ascending select I;

//printing distinct numbers

Var v=(from in x select i)Distinct();

//printing the sum of the numbers

Int total=x.sum();

Message box. show(total+&rdquo;&rdquo;);

//Printing the arrange of the numbers

Double total =x. average();

Message box. show(total+&rdquo;&rdquo;);

For each(int k in v) S=s+k+&rdquo;&rdquo;;

Message box. show(s);  

</code></pre>
<p><strong style="font-size: 12pt;">Example: LINQ With a data set</strong></p>
<p><span style="font-size: 12pt;">Open windows form application project place a button and a data grid view Using system. </span></p>
<p><span style="font-size: 12pt;">Data. Sql client; </span></p>
<pre class="language-javascript"><code>Code for button1-click

{

Sql connection cn = new sql connection (user id=SQ;

Password=;database=north wind; Server = Local host&rdquo; );

SQL Data Adapter da=new Sql data Adapter (&ldquo;Select*from products&rdquo;,cn);

Data set ds= new  dataset(); Da. fill(ds, &rdquo;d&rdquo;); Data table dt=ds. Tables[&ldquo;d&rdquo;];

Innumerable&lt;data Row&gt;ie=dt. as Enumerable();

IQuery able&lt;data row&gt;dr=i.e. As Query able();

Dr=from I in dr select I;

Dr=from I in dr where i[&ldquo;Product name&rdquo;]. To string()==&rdquo;chai&rdquo; select I;

Dr=from I in dr where int. parle(i[&ldquo;product id&rdquo;]. To string())&lt;5 select I;

Data grid viewl. data sources= dr. copy to data table();

}          </code></pre>13:T765,<p>&nbsp;</p>
<h3><span style="font-size: 14pt; color: #e67e23;">.<strong>NET 3.5 Features:-</strong></span></h3>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">Implicit type Declaration</span></li>
<li><span style="font-size: 12pt;">Automatic properties (Auto- implemented properties)</span></li>
<li><span style="font-size: 12pt;">Object initialize</span></li>
<li><span style="font-size: 12pt;">Collection initialize</span></li>
<li><span style="font-size: 12pt;">Anonymous types</span></li>
<li><span style="font-size: 12pt;">Extension methods</span></li>
<li><span style="font-size: 12pt;">Partial methods</span></li>
<li><span style="font-size: 12pt;">LINQ Programming</span></li>
<li><span style="font-size: 12pt;">Wpf Programming</span></li>
</ol>
<blockquote>
<p><em><strong><span style="font-size: 12pt;">&nbsp; &nbsp; &nbsp;These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>"</span></strong></em></p>
</blockquote>
<p><span style="color: #e67e23;"><strong><span style="font-size: 12pt;">For in-depth knowledge on .Net Click on :</span></strong></span></p>
<ul>
<li><a href="net-tutorials" target="_blank" rel="noopener"><span style="font-size: 12pt;">.Net Tutorial</span></a></li>
<li><a href="design-patterns-in-net" target="_blank" rel="noopener">Design patterns in .net</a></li>
<li><a href="create-mvc-application-net-give-example" target="_blank" rel="noopener">Create MVC application in .NET</a></li>
<li><a href="c-net-data-type" target="_blank" rel="noopener">C#.net Data Types</a></li>
<li><a href="working-events-c-sharp-net-with-eaxmples" target="_blank" rel="noopener">Events in C# .Net</a></li>
</ul>14:T1ce1,<p>&nbsp;</p>
<h3><span style="font-size: 12pt; color: #e67e23;">Not Admin</span></h3>
<p><span style="font-size: 12pt;">Else </span></p>
<p><span style="font-size: 12pt;">{</span></p>
<p><span style="font-size: 12pt;"> Message&nbsp; box. show(&ldquo;not Admin&rdquo;);</span></p>
<p><span style="font-size: 12pt;"> new form().show ();</span></p>
<p><span style="font-size: 12pt;"> } &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Obs:- </span></h3>
<p><span style="font-size: 12pt;">Execute the project then roles.Exe will be created under D:c194Rolesbindebug. &nbsp;</span></p>
<p><span style="font-size: 12pt; color: #e67e23;">DEPLOYMENT:-</span></p>
<p><span style="font-size: 12pt;">(1)Windows XP &nbsp; <img class="alignnone wp-image-8396" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_563-460x107.png" alt="Screenshot_56" width="526" height="121" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">Main() { If(&ldquo;Hi&rdquo;);&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: 12pt;">Source code</span></p>
<p><span style="font-size: 12pt;"> }</span></p>
<ul>
<li><span style="font-size: 12pt;">Exe file is source code independent</span></li>
<li><span style="font-size: 12pt;">Exe file executes successfully</span></li>
</ul>
<blockquote>
<p><em><strong>These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>".</strong></em></p>
</blockquote>
<h3><span style="font-size: 12pt; color: #e67e23;">OBS:- </span></h3>
<p><span style="font-size: 12pt;">In the above diagram the copied exe file will be executed successfully in the client machine I,e the&nbsp; project is deployed successfully Same diag </span></p>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-8397" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_573.png" alt="Screenshot_57" width="245" height="232" /> &nbsp; }</span></p>
<ol>
<li><span style="font-size: 12pt;">In this class, the project is not deployed successfully because in open it contains a file in the open method</span></li>
<li><span style="font-size: 12pt;">In the bore diagram the copied exe file will not be executed as it depends on c:abc.txt file, hence along with exe file abc.txt also must be copied.</span></li>
</ol>
<ol>
<li><span style="font-size: 12pt;">Deployment is a process providing all the required resources in order to execute an application successfully in the client machine.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-8398" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_583-460x290.png" alt="Screenshot_58" width="554" height="349" /> &nbsp; &nbsp;</span></p>
<ul>
<li><span style="font-size: 12pt;">client machine must have CLR Software</span></li>
<li><span style="font-size: 12pt;">CLR Can be installed with the help of DOT NET FX35 Setup.exe file.</span></li>
<li><span style="font-size: 12pt;">CLR Software is Free &ndash; Distributable.</span></li>
</ul>
<p><span style="font-size: 12pt;">i.e, No License need to be purchased.</span></p>
<ol start="5">
<li><span style="font-size: 12pt;">White a project is deploying all the resources like text file, image files, xml files need to be included.</span></li>
<li><span style="font-size: 12pt;">To deploy the project. NET introduced</span></li>
</ol>
<p><span style="font-size: 12pt;">File<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /> new project<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /> other project Types<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /> Setup and Deployment <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Setup wizard template. &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Ex: A process to deploy Roles project</span></h3>
<ol>
<li><span style="font-size: 12pt;">Open Roles project(Previous Example) and execute the project</span></li>
</ol>
<p><span style="font-size: 12pt;"><span style="color: #e67e23;"><strong>Obs:-</strong></span></span></p>
<p><span style="font-size: 12pt;"><span style="color: #e67e23;"><strong> </strong></span>Roles.exe file will be created under D:C194 RolesBinDebug Folder</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">Open setup wizard with project name ROLE Based Security</span></li>
</ol>
<p><span style="font-size: 12pt;">(This name will be displayed in welcome screen) </span></p>
<p><span style="font-size: 12pt;">3.Then a wizard will be opened </span></p>
<p><span style="font-size: 12pt;">W1) Click next </span></p>
<p><span style="font-size: 12pt;">W2) Select &ldquo;Create a setup for a windows application&rdquo; and click next.</span></p>
<p><span style="font-size: 12pt;"> W3) Add the files like*.txt,*.jpg,*.xml etc, If required then click next </span></p>
<p><span style="font-size: 12pt;">W4) Click on finish </span></p>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-8399" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_593.png" alt="Screenshot_59" width="452" height="813" /> &nbsp;</span></p>
<p><span style="font-size: 12pt;"> &nbsp; &nbsp; Build the project(Build menu&agrave; Build solution) </span></p>
<p><span style="font-size: 12pt;">S:-Roles based security.msi and stup.exe files are created under</span></p>
<p><span style="font-size: 12pt;"> c194roles based security/debug folder </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Only these two files need to be given to the client &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Steps for oracle database deployment:- </span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-8400" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_603.png" alt="Screenshot_60" width="387" height="459" /> &nbsp; &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">U(Sers),(or)(3)(Tables):(2)U&gt;</span></li>
</ol>
<p><span style="font-size: 12pt;">Export grants(yes/no):yes&gt; </span></p>
<p><span style="font-size: 12pt;">Export table data&lt;yes/no: yes&gt;</span></p>
<p><span style="font-size: 12pt;"> Compress extents(yes/no): yes&gt;</span></p>
<p><span style="font-size: 12pt;"> C:oracleora90Bin&gt;imp d:abc.dmp &nbsp; &nbsp; &nbsp; &nbsp;</span></p>15:T57de,<p>&nbsp;</p>
<p><img class="alignnone wp-image-8377" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_419-460x359.png" alt="Screenshot_41" width="525" height="409" /> &nbsp;</p>
<ul>
<li>Distributed programming is a concept of sharing application logic over the network A collection of computers, which are connected together is called as a network</li>
<li>A collection of computers, which are connected together is called a network</li>
<li>To establish a network, a protocol is required protocol provides a set of rules, which need to be allowed while transferring the data over the network Generally network can be established with the help of TCP or HTTP Protocol.</li>
</ul>
<p>&nbsp; Generally distributed programming is required to develop3- Tier or N- Tier architectures.&nbsp;</p>
<p><em style="box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: bolder;">These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="box-sizing: border-box; color: #e03e2d;"><a style="box-sizing: border-box; color: #e03e2d; text-decoration: none; background-color: transparent; transition: all 0.2s linear 0s;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>".</span></em></p>
<p><img class="alignnone size-full wp-image-8378" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_425.png" alt="Screenshot_42" width="383" height="264" /> &nbsp; &nbsp;</p>
<h3><span style="color: #e67e23; font-size: 12pt;">Working with .NET Remoting</span></h3>
<ol>
<li>.NET Remoting helps to develop distributed programming architecture.</li>
<li>Distributed programming allows to share the logic over the network.</li>
<li>Distributed programming allows to develop secured applications.</li>
</ol>
<p>&nbsp; <img class="alignnone size-medium wp-image-8379" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_433.png" alt="Screenshot_43" width="300" height="295" /> &nbsp;</p>
<ol start="4">
<li>The connection between two computers is called a &ldquo;channel&rdquo;.</li>
<li>Remoting supports HTTP Channel and Tep channel</li>
<li>The communication in between two CLR&rsquo;s is also called as .NET remoting</li>
<li>To start the communication a PORT need to be reserved.</li>
<li>The starting point of a communication channel is called as PORT.</li>
<li>Os supports o to 65535 ports, from which some ports are PRE-RESERVED.</li>
</ol>
<p><strong>Ex:-</strong></p>
<p>HTTP---80 SMTP---25 FTP-----31 Web logic Servers-----7070,8080,9090</p>
<ol>
<li>.NET Remoting Architecture</li>
</ol>
<p>&nbsp; &nbsp; <img class="alignnone wp-image-8380" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_444-460x246.png" alt="Screenshot_44" width="548" height="292" /> &nbsp; &nbsp;</p>
<ol>
<li>Converting object stream into byte stream is called as &ldquo;Marshalling&rdquo; and vice versa is called as &ldquo;De- Marshalling&rdquo;.</li>
<li>Marshaling will be done with the help of STUB and De-Marshalling by the skeleton.</li>
<li>To work with .NET remoting, micro soft introduced system Run time. Remoting Assembly</li>
<li>Marshal By Ref object is a predefined class, which helps in Marshalling and De-Marshalling</li>
</ol>
<p>In order share the Logic, Some Reouree files need to be copied from the server machine into the client machine. &nbsp; &nbsp;</p>
<h3><span style="color: #e67e23; font-size: 12pt;">Steps for Developing Remoting Application:-</span></h3>
<p><strong>Step1:- </strong>Write an interface with a set of abstract methods and compile into a DLL file. &nbsp;</p>
<p><strong>Step2:-</strong> Write a server program by overriding Interface methods and Reserve a channel over a PORT. &nbsp;</p>
<p><strong>Step3:- </strong>Write a client program to create a connection with server and call interface methods. &nbsp;</p>
<p><strong>Step4:- </strong>Start server then start client programs &nbsp;</p>
<p><span style="color: #e67e23;"><strong>Obs:-</strong> </span></p>
<p>The interface DLL must be copied into both server and client machines. &nbsp;</p>
<h3><span style="color: #e67e23; font-size: 12pt;">Developing 3- Tier Architecture with Remoting:-</span></h3>
<p>&nbsp; <img class="alignnone wp-image-8381" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_454-460x329.png" alt="Screenshot_45" width="451" height="322" /> &nbsp;</p>
<p>&nbsp; <img class="alignnone wp-image-8382" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_464-460x325.png" alt="Screenshot_46" width="596" height="419" /></p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open oracle software and create a table with name users and with two columns used and pwd</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Create table users(Usid varchor2(20), Pwd varchar 2(10));</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Add two records as follows Insert into users values(&lsquo;teja&rsquo;, &rsquo;abc&rsquo;); Insert into users values(&lsquo;Ravu&rsquo;, &rsquo;xyz&rsquo;);</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Save or commit; &nbsp;</p>
<ol>
<li>
<h3><span style="color: #e67e23; font-size: 12pt;">Developing Interface with a let of abstract methods</span></h3>
</li>
</ol>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open class Library project with the project name Middle Interface. Namespace middle Interface { Public interface MI { Bool check user(String a, String b); }//HI }Middle Inter face</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Build the project(build menu</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /> Build solution)</p>
<p><strong>Obs:-</strong> Middle interface.dll is created under D:/C194/ Middle interfaceBinDebug folder &nbsp;</p>
<ol start="2">
<li>
<h3><span style="color: #e67e23; font-size: 12pt;">Developing server Application</span></h3>
</li>
</ol>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open console Application project with project name Middle server</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />&nbsp;project menu&agrave;add reference&agrave; System. Runtime. Remoting</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Project menu&agrave;Add reference&agrave;browse&agrave; Middle Interface.DLL</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Using system. Run time. Remoting;</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />&nbsp;Using system. Run time. Remoting. channels;</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Using system. Run time. Remoting channels. TCP;</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Using system. Data. oleDb;</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /></p>
<pre class="language-javascript"><code>Code in GD(Before Main)

{

Class M Server: Marsha L By Ret object, HI

{

Public bool check user(String a, string b)

{

String q=&rdquo; select* from users where Usid=&rsquo;&rdquo;+a+&rdquo;&rsquo; and pwd=&rsquo;&rdquo;+&rdquo;&rsquo;;

oleDb connection cn = new oleDb connection (&ldquo;user id = scott; password= tiger;provider=msdaora.1&rdquo;) Cn.open();

oleDb command cmd= new oleDb command(q.cn); object obj=cmd. Execute scalor();

H(OBJ==NULL) Return false; Else Return true;

}</code></pre>
<p>//check user method }//m server-class &agrave;code for</p>
<pre class="language-javascript"><code>main()

{

TCP channel t= new TCP channel(1600);

Channel Services. Register channel(t);

Remoting configuration. Register well known service type (type of (m server),&rdquo;abc&rdquo;, well known object mode Single call);

Console. write line(&ldquo;server is ready to use&rdquo;); Console. Read key();

}</code></pre>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Execute the project Then a TCP Server will be created with the following URL Tcp://Local host:1600/abc</p>
<ol start="3">
<li>
<h3><span style="color: #e67e23; font-size: 12pt;">Developing a client application</span></h3>
</li>
</ol>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />open a new .NET Window(start&agrave;run&agrave;devenr)</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />open WFAP with project name Middle client</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Project menu&agrave; Add Reference&agrave;Browse&agrave; Middle Interface.DLL</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Design the form as shown</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Using middle Interface;</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /></p>
<p>code for button1-click</p>
<pre class="language-javascript"><code>{

MI X=(MI)Activator. Get object(type of(MI)&rdquo;tcp://Local host:1600/abc&rdquo;);

BooL B= X. Check user (text box1.text,Text box2. text);

If(b==true) Message box. show(&ldquo;valid user&rdquo;);

Else Message box. show(&ldquo;not a valid user&rdquo;);

 }</code></pre>
<p><img class="alignnone wp-image-8384" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_474-460x274.png" alt="Screenshot_47" width="565" height="335" />&nbsp; &nbsp;&nbsp;</p>
<p><strong>Obs:-</strong> Remoting configuration. Register well-known service type() takes3 arguments &nbsp;</p>
<p><strong>Org 1)</strong> Type of the class, where interface methods are over rided . &nbsp;</p>
<p><strong>Org 2) </strong>Provide an alias name to the server &nbsp;</p>
<p><strong>Org3) </strong>Specifies the mode of the communication &nbsp; Remoting supports two types of communication model with the help of well-known object mode enum &nbsp; <img class="alignnone size-full wp-image-8385" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_485.png" alt="Screenshot_48" width="450" height="553" /> &nbsp; &nbsp;</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Single call is tastes in communication when compared with single ton</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />In single call, a separate object will be created for every client</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />In single ton, only one object will be created for all the clients When number of clients are limited then use single all other wise use single ton Activator class is used to open a connection with my specified URL 2 Developing an application like yahoo messenger&nbsp; with off line support and two consecutive messages quid not be same &nbsp;</p>
<p><img class="alignnone size-full wp-image-8386" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_494.png" alt="Screenshot_49" width="455" height="254" /> &nbsp;</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open class library project with project name yahoo Interface</p>
<p>{</p>
<p>Public Interface YI</p>
<p>{</p>
<p>String Get TEXT();</p>
<p>}</p>
<p>}</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Build the project(Build menu<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Build solution) &nbsp;</p>
<h3><span style="font-size: 12pt;"><strong>Obs:-</strong></span></h3>
<p>Yahoo Interface.dll is created under D:C194/Yahoo Interface/Bin/Debug folder</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open windows farms Application project with project name yahoo server</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Design the form as follows:-</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Project</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Add Reference</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /> System. Run time. Remoting</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />project menu</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /> Add Reference</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Browe</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /> Yahoo Interface.DLL</p>
<p>Using system. Runtime. Remoting;</p>
<p>Using system. Runtime. Remoting. channels;</p>
<p>Using system. Runtime. Remoting. Channels.TCP;</p>
<p>Using Yahoo Interface;</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Code in GD</p>
<p>Static string S;</p>
<pre class="language-javascript"><code>Class y server: Marshal By Ret Object.YI

{

Public string Get text()

{

Return Farm1.s;

}//Get Text

}//4 Server</code></pre>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" /></p>
<pre class="language-javascript"><code>Code for Button1-click(send)

{

Forml. s=text box2.text;

}

Code for farm1-load Event

{

TCP Channel=new TCP Channel(4829);

Channel Services. Register channel(t);

Remoting configuration. Register well known Service type(type of (4 Server),&rdquo;yahoo&rdquo;, well known object mode. single ton);

Text box1.text=&rdquo;server is Ready&rdquo;;

}</code></pre>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Execute the project &nbsp;</p>
<h3><strong>OBS:-</strong></h3>
<p>Then a tcp server will be created with the following URL Tcp://Local host:4829/yahoo</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Developing client application</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open a new .NET Window</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Open WFAP with project name yahoo client</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Place two text boxes, one button, and a timer control with enabled = false</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Project menu</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Add reference<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Browse<img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Yahoo Interface.dll</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />Using yahoo Interface; <img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />code in GD String s1,s2; YI X;</p>
<p><img class="alignnone size-full wp-image-7854" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/11/Screenshot_242.png" alt="Screenshot_24" width="34" height="14" />code for the formal &ndash; Load event</p>
<pre class="language-javascript"><code>{

X=(YI)Activator. Get Object(type of (yI) &ldquo;tcp://Local host:4829/yahoo&rdquo;);

Text box1.text=x. get text();

Timer1.Enabled=true;

}

&agrave;code for time:-1-tick event

{

S1-X.Get Text();

If(s1 !=s2)

Text box1.text=text box1.text+ Environment.  new line+s1;

S2=s1;

}</code></pre>
<p>F5 &nbsp;</p>
<h3><span style="font-size: 12pt; color: #e67e23;">Security:-</span></h3>
<p>&nbsp; <img class="alignnone wp-image-8387" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_503-460x219.png" alt="Screenshot_50" width="539" height="255" /></p>
<ol>
<li>Security is a concept of restricting Anonymous(unknown)accessibility.</li>
<li>C#.NET Supports security in two ways:-</li>
<li>Crypto Graphy</li>
<li>Role Based Security</li>
</ol>16:T1609,<h2><span style="font-size: 14pt; color: #e67e23;">OLEDB Connection Class:</span></h2>
<ol>
<li>This class is used to open<span style="font-size: 12pt;"> a connection with any type of database and also used to start transactions.</span></li>
<li><span style="font-size: 12pt;">This class is inherited from the System. Data. Common.Connection class,</span></li>
</ol>
<p><span style="font-size: 12pt;">Which is an abstract class.</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone wp-image-8337" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_195-460x313.png" alt="Screenshot_19" width="476" height="324" /> </span></p>
<p><span style="font-size: 12pt;">AS per the above observations, all types of connection classes will be having the same method names and same property names.</span></p>
<table style="border-collapse: collapse; width: 100.012%; height: 46.514px;" border="1px" cellpadding="10">
<tbody>
<tr style="height: 46.514px; background-color: #ecf0f1; border-color: #ced4d9; border-style: solid;">
<td style="width: 98.4573%; height: 46.514px; text-align: center;"><em><span data-sheets-value="{&quot;1&quot;:2,&quot;2&quot;:&quot;Do you want to enrich your career by learning Spring Boot? Then Enroll in \&quot;Spring Boot Training\&quot;, this course will help you to boost your career.&quot;}" data-sheets-userformat="{&quot;2&quot;:513,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0}">Do you want to enrich your career by learning .NET? Then Enroll in "<span style="color: #236fa1;"><strong><a style="color: #236fa1;" href="https://tekslate.com/net-training" target="_blank">.NET Training</a></strong></span>", this course will help you to boost your career.</span></em></td>
</tr>
</tbody>
</table>
<blockquote>
<p>&nbsp;</p>
</blockquote>
<h4><span style="color: #e67e23;">Properties:-</span></h4>
<ol>
<li><span style="font-size: 12pt;">Status:</span></li>
<li><span style="font-size: 12pt;">Server version:</span></li>
<li><span style="font-size: 12pt;">Connection String:</span></li>
<li><span style="font-size: 12pt;">Provider:</span></li>
</ol>
<h4><span style="color: #e67e23;">Methods:-</span></h4>
<ol>
<li><span style="font-size: 12pt;">open ()</span></li>
<li><span style="font-size: 12pt;">close ()</span></li>
<li><span style="font-size: 12pt;">Dispose ()</span></li>
<li><span style="font-size: 12pt;">Begin Transaction</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; &nbsp; Con. open (); Con . close (); Con.&nbsp; Open ();</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">About oledb command class :</span></h3>
<ul>
<li><span style="font-size: 12pt;">This class is used to execute DDL, DML, TCL, QL, and Stored procedures.</span></li>
</ul>
<table style="border-collapse: collapse; width: 100%; background-color: #ecf0f1; border-color: #ced4d9; border-style: solid; height: 50.4276px;" border="1px" cellpadding="5">
<tbody>
<tr style="height: 50.4276px;">
<td style="width: 98.4573%; height: 50.4276px; text-align: center;">Checkout our latest blog on <span style="color: #236fa1;"><em><strong><a style="color: #236fa1;" title=".Net Tutorial" href="https://tekslate.com/net-tutorials" target="_blank">.Net Tutorial</a></strong></em></span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 12pt;">&nbsp; DDL:&nbsp; create, alter, drop DML:&nbsp; insert, delete, update TCL: commit, rollback, savepoint QL: select &nbsp; Stored Procedure is a collection of SQL Statements. &nbsp; </span></p>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>Properties:-</strong></span></p>
<ol>
<li><span style="font-size: 12pt;">Connection</span></li>
<li><span style="font-size: 12pt;">Command Text</span></li>
<li><span style="font-size: 12pt;">Command Type</span></li>
<li><span style="font-size: 12pt;">Parameters</span></li>
</ol>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>Methods:-</strong></span></h3>
<ol>
<li><span style="font-size: 12pt;">Execute Non-Query ():- is used to execute DDL, DML, TCL, and stored procedure.</span></li>
<li><span style="font-size: 12pt;">Execute Reader (): need to be used when multiple records are expecting from a select statement.</span></li>
</ol>
<p><span style="font-size: 12pt;">Execute Reader ()&nbsp;&nbsp; returns Data reader.</span></p>
<ol start="3">
<li><span style="font-size: 12pt;">Execute Scalar (): Search only for the first match, its match is found, then only the first column value will be returned.</span></li>
</ol>
<p><span style="font-size: 12pt; color: #e67e23;">&nbsp; <strong>EMP</strong><strong>&nbsp;</strong> </span></p>
<p><span style="font-size: 12pt;">&nbsp; ENO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SAL </span></p>
<p><span style="font-size: 12pt;">1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ravi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5000</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">Teja 9000</span></li>
<li><span style="font-size: 12pt;">Raj 8000</span></li>
<li>&nbsp;</li>
<li><span style="font-size: 12pt;">.</span></li>
</ol>
<p><span style="font-size: 12pt;">1000 &nbsp; Select * from EMP ; </span></p>
<p><span style="font-size: 12pt;">Execute Reader&nbsp; () </span><span style="font-size: 12pt;">ALL</span></p>
<p><span style="font-size: 12pt;"> Execute Scalar ()&nbsp; ALL &nbsp; &nbsp;</span></p>17:T1acc,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Working with Delegates in C# .net</span></h2>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-7704" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_1014-460x687.png" alt="Screenshot_10" width="401" height="602" /> &nbsp; &nbsp; &nbsp;</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">Delegates hold the address of one function or address of many functions.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp;</span><em style="font-family: quicksand, sans-serif; font-size: 15px; text-align: justify; box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: bolder;">Interested in mastering .NET? Learn more about "<span style="box-sizing: border-box; color: #e03e2d;"><a style="box-sizing: border-box; color: #e03e2d; text-decoration-line: none; transition: all 0.2s linear 0s;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>" in this blog post.</span></em></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Delegates are divided into two types:-</span></h3>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;"><strong>Single cast Delegate </strong></span></li>
</ol>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-8330" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_1016.png" alt="Screenshot_10" width="205" height="303" /></span></p>
<h3>&nbsp;</h3>
<h3>&nbsp;</h3>
<h3><span style="font-size: 12pt; color: #e67e23;">Multicast delegate</span></h3>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-8331" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_1113.png" alt="Screenshot_11" width="395" height="342" /></span></p>
<ul>
<li><span style="font-size: 12pt;">SCD holds the address of one function only.</span></li>
<li><span style="font-size: 12pt;">MCD allows holding the address of many functions.</span></li>
</ul>
<p><span style="font-size: 12pt;"><strong>&nbsp;</strong></span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">4.Steps to crates a Delegate:-</span></h3>
<p><span style="font-size: 12pt;"><strong>Step 1.</strong>&nbsp; Write a class with a method </span></p>
<p><span style="font-size: 12pt;"><strong>Syntax:-</strong>&nbsp;</span></p>
<p><span style="font-size: 12pt;"> Class Test {</span></p>
<p><span style="font-size: 12pt;"> Public void Print ()</span></p>
<p><span style="font-size: 12pt;"> {</span></p>
<p><span style="font-size: 12pt;">logic ;</span></p>
<p><span style="font-size: 12pt;">}</span></p>
<p><span style="font-size: 12pt;"> }</span></p>
<p><span style="font-size: 12pt;"> <strong>Step 2.</strong> Create a Delegate <strong>&nbsp;</strong></span></p>
<p><span style="font-size: 12pt;"><strong>Syntax :-</strong> public delegate void D name ();</span></p>
<ul>
<li><span style="font-size: 12pt;">Keyword</span></li>
<li><span style="font-size: 12pt;">Delegate name</span></li>
</ul>
<p><span style="font-size: 12pt;"><strong>Step 3 .</strong> create an object for the delegate with the address of a method. </span></p>
<p><span style="font-size: 12pt;"><strong>Syntax :-</strong></span></p>
<p><span style="font-size: 12pt;"> Test t&nbsp; = new Test () </span></p>
<p><span style="font-size: 12pt;">D name&nbsp; d = new D name&nbsp; (t. print); <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong></span></p>
<p><span style="font-size: 12pt;"><strong>Step 4.</strong> Call the Delegate <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span></p>
<p><span style="font-size: 12pt;"><strong>Syntax :-</strong>&nbsp; d (); <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong></span></p>
<p><span style="font-size: 12pt;"><strong>Example on SCD :-</strong></span></p>
<ul>
<li><span style="font-size: 12pt;">Open console Application Project</span></li>
<li><span style="font-size: 12pt;">Code in GD (before Main ())</span></li>
</ul>
<pre class="language-javascript"><code>{

Class Test

{

Public void Print ()

{

Console .Write (&ldquo;From Print&rdquo;);

}

}

//test  

Public delegate void D name ();  

Code in main ()

Test t  = new Test ();

D name d = new D name (t. print);

D();

Console. Read Line ();  

</code></pre>
<p><span style="color: #e67e23;"><strong style="font-size: 12pt;">OBS:-</strong></span></p>
<p><span style="font-size: 12pt;">Delegates encapsulate some information like class name and method names. &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">&nbsp;Working with Multicast Delegates:-</span></h3>
<ol>
<li><span style="font-size: 12pt;">MCD holds the addresses of many functions.</span></li>
<li><span style="font-size: 12pt;">MCD holds the sequence of functions</span></li>
<li><span style="font-size: 12pt;">MCD supports arithmetic + and _ operations.</span></li>
<li><span style="font-size: 12pt;">&lsquo;+&rsquo; operator add a function in to the sequence.</span></li>
<li><span style="font-size: 12pt;">&lsquo;_&rsquo; operator removes a function from the sequence.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; </span></p>
<p><span style="font-size: 12pt;"><span style="color: #e67e23;"><strong>OBS:</strong></span> &nbsp;</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone wp-image-7712" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_129-460x366.png" alt="Screenshot_12" width="447" height="355" /> </span></p>
<p><span style="font-size: 12pt;">D6= D5 &ndash; D3 &ndash; D2 = GM&nbsp; GA&nbsp; - GM&nbsp; GA&nbsp; - GA = GM &nbsp; &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>&nbsp;&nbsp;&nbsp;&nbsp; Example on MCD :-</strong></span></h3>
<ul>
<li><span style="font-size: 12pt;">open console Application Project</span></li>
<li><span style="font-size: 12pt;">Code for GD (before Main ())</span></li>
</ul>
<pre class="language-javascript"><code> Class Test

{

Public void M1 ()

{

Console . Write (&ldquo;GM     &rdquo;);

}

//M1

Public void M2 ()

{

Console . Write Line (&ldquo;GA&rdquo;);

}

//M2

}

// Test  

Public delegate void XYZ ();

Static void Main  (Strings []  args)  

</code></pre>
<pre class="language-javascript"><code>Code in main ()

{

Test t = new Test ();

XYZ  = d1, d2, d3,d4,d5,d6;

D1 = new XYZ (t. M1);

D2 = new XYZ (t.M2);

D3 = d1 + d2; Console. Write line (&ldquo;From D3 :&rdquo;);

D3 ();

D4 = d3 +d3;

Console. Write line (&ldquo;From D4 :&rdquo;);

D4 ();

D5 = d4- d1;

Console. Write line (&ldquo;From D5:&rdquo;); D5 ();

D6 =d5-d3-d2;

Console. Write line (&ldquo;From D6 :&rdquo;);

D6 ();

Console. Read  line  ();

}  </code></pre>18:T2b76,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">&nbsp;ADO.NET:-</span></h2>
<h3><span style="font-size: 12pt; color: #e67e23;">Database programming with ADO.net:- &nbsp;</span></h3>
<ol>
<li><span style="font-size: 12pt;">Generally, the output of the program will be stored in RAM.</span></li>
<li><span style="font-size: 12pt;">RAM is volatile, that is after every execution RAM memory will be cleared.</span></li>
<li><span style="font-size: 12pt;">To store the data permanently, .net is providing two ways</span></li>
</ol>
<ul>
<li><span style="font-size: 12pt;">File handling</span></li>
<li><span style="font-size: 12pt;">Database handling</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Problems with File handling while storing real-time data:-</span></h3>
<p><span style="font-size: 12pt;">&nbsp; 101&nbsp;&nbsp;&nbsp;&nbsp; teja&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 12pt;">5000 </span></p>
<p><span style="font-size: 12pt;">102&nbsp;&nbsp;&nbsp;&nbsp; raviteja&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2000 </span></p>
<p><span style="font-size: 12pt;">102&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ravi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xyz </span></p>
<p><span style="font-size: 12pt;">103&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ravi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6000 &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">The number of columns is not restricted.</span></li>
<li><span style="font-size: 12pt;">The type of data is not allowed.</span></li>
<li><span style="font-size: 12pt;">Possibility for data redundancy.</span></li>
<li><span style="font-size: 12pt;">Different to manipulate the data.</span></li>
<li><span style="font-size: 12pt;">No security for the data.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp;</span><span style="font-family: quicksand, sans-serif; text-align: justify; box-sizing: border-box; font-size: 12pt;">&nbsp;</span><em style="font-family: quicksand, sans-serif; font-size: 15px; text-align: justify; box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: bolder;">Interested in mastering .NET? Learn more about "<span style="box-sizing: border-box; color: #e03e2d;"><a style="box-sizing: border-box; color: #e03e2d; text-decoration-line: none; transition: all 0.2s linear 0s;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>" in this blog post.</span></em></p>
<ul>
<li><span style="font-size: 12pt;">To overcome these problems, ANSI introduced database concepts</span></li>
</ul>
<ul>
<li><span style="font-size: 12pt;">A collection of interrelated data is called as databases are divided into three types</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-8339" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_136-460x290.png" alt="Screenshot_13" width="544" height="343" /> &nbsp;</span></p>
<ul>
<li><span style="font-size: 12pt;">Create table EMP ( eno number, ename varchar 2 (10),&hellip;&hellip;&hellip;&hellip;..)</span></li>
<li><span style="font-size: 12pt;">Create table XYZ</span></li>
</ul>
<h3><span style="font-size: 12pt; color: #e67e23;">&nbsp; ADO.NET (Active X Data objects for .net) &nbsp;</span></h3>
<ol>
<li><span style="font-size: 12pt;">ADO.NET is an object library that is used to communicate with any database.</span></li>
<li><span style="font-size: 12pt;">Object library means a set of predefined class (a set of the namespace)</span></li>
<li><span style="font-size: 12pt;">ADO.NET is used to develop client Server Applications.</span></li>
</ol>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8340" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_145-460x247.png" alt="Screenshot_14" width="473" height="254" /> </span></p>
<p><span style="font-size: 12pt;">&nbsp; &nbsp; &nbsp;C/S Architecture</span></p>
<ol>
<li><span style="font-size: 12pt;">NET supports 2 types of connection</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-8341" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_156-460x256.png" alt="Screenshot_15" width="562" height="311" /> &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">Managed Connection</span></li>
<li><span style="font-size: 12pt;">Unmanaged Connection</span></li>
</ol>
<h4><span style="color: #e67e23;">&nbsp;Managed connection:</span></h4>
<p><span style="font-size: 12pt;"> Managed connections work with the help of the TDS&nbsp; (Tabular data String) Protocol. &nbsp; </span></p>
<h4><span style="color: #e67e23;">Unmanaged Connection: </span></h4>
<p><span style="font-size: 12pt;">Unmanaged connections work with the help of OLEDB(object linking and Embedding &nbsp;&nbsp;Databases ) provides.</span></p>
<ul>
<li><span style="font-size: 12pt;">OLEDB providers are DLL files, which are COM components As Com is platform-dependent, hence connection on OLEDB are called an Unmanaged connection.</span></li>
</ul>
<h4><span style="color: #e67e23;">Managed connections are faster in data accessing. </span></h4>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-8342" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_166-460x262.png" alt="Screenshot_16" width="499" height="283" /></span></p>
<ol>
<li><span style="font-size: 12pt;">To work with ADO.net, Microsoft introduced System. Data Assembly, which contains 8 &nbsp;Namespaces.</span></li>
<li><span style="font-size: 12pt;">these Namespaces are divided into 5 Groups.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; <strong>Group 1:-</strong> </span></p>
<p><span style="font-size: 12pt;">common namespace</span></p>
<ol>
<li><span style="font-size: 12pt;">System. Data</span></li>
<li><span style="font-size: 12pt;">System.Data.Common</span></li>
</ol>
<ol start="3">
<li><span style="font-size: 12pt;">System. Data. SQL Types<strong>&nbsp;</strong></span></li>
</ol>
<p><span style="font-size: 12pt;"><strong>&nbsp;</strong> <strong>Group 2:-</strong></span></p>
<p><span style="font-size: 12pt;"> Unmanaged Name Spaces 4.System. Data. OLEDB (Supports all type of databases) &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Group 3:-</strong> </span></p>
<p><span style="font-size: 12pt;">Managed Namespaces</span></p>
<ol start="5">
<li><span style="font-size: 12pt;">System. Data. SQL client (SQL Server only)</span></li>
<li><span style="font-size: 12pt;">System. Data. oracle client (for oracle only ) (2.0)</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; <strong>Group 4:- </strong></span></p>
<p><span style="font-size: 12pt;">ODBC Namespace</span></p>
<ol start="7">
<li><span style="font-size: 12pt;">System. Data. ODBC (supports all Databases)</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; <strong>Group 5:-</strong></span></p>
<p><span style="font-size: 12pt;"> LINQ Related Name Spaces</span></p>
<ol start="8">
<li><span style="font-size: 12pt;">System. Data. LINQ</span></li>
</ol>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .Net Tutorial</a></span></p>
<p><span style="font-size: 12pt; color: #e67e23;">&nbsp; <strong>EX 1:- With oracle over Unmanaged connection</strong></span></p>
<ol start="9">
<li><span style="font-size: 12pt;">A program to create a table in oracle</span></li>
</ol>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-8343" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_175-460x140.png" alt="Screenshot_17" width="544" height="165" /> </span></p>
<p><span style="font-size: 12pt;">A procedure to find provider names automatically. &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">Open notepad, save the file with the name</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; &ldquo;one. UDL&rdquo; and close it File name&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;extension universal data Linker</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">Double click on One .Udl file</span></li>
<li><span style="font-size: 12pt;">Select provider</span></li>
<li><span style="font-size: 12pt;">Choose &ldquo;Micro-soft oledb provider for oracle &rdquo; and click Next</span></li>
<li><span style="font-size: 12pt;">Provide User name and password of oracle and click ok.</span></li>
<li><span style="font-size: 12pt;">Right-click on one.udl &agrave;open with &agrave; note pad</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<ul>
<li><span style="font-size: 12pt;">Open WFAP</span></li>
<li><span style="font-size: 12pt;">Place a button</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; Using System. Data. Oledb; &nbsp;</span></p>
<ul>
<li>
<pre class="language-javascript"><code>Code for Button 1 _click
{

Oledb connection con  = new oledb connection  

(&ldquo;User id = Scott ; password = tiger; provider = msdaora.1&rdquo;);

Con. open ();

Message Box .show  (&ldquo;Connections is ok&rdquo;);

String q  = &ldquo;Create Table c 194  (Eno number,  E name varchar 2 (10), Sql number)&rdquo;;

Oledb command cmd = new oledb command  (q, con);

Try {

cmd. Execute Non query ()

Message Box. Show (&ldquo;Table is created &rdquo;);

}

Catch (oledb Exception oe)

{

Message Box. Show  (oe. Message e );

}  </code></pre>
</li>
</ul>
<h2><span style="font-size: 14pt; color: #e67e23;">ADO.NET:-</span></h2>
<h3><span style="font-size: 12pt; color: #e67e23;">Program to add records into c 194 table:-</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-8344" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_185.png" alt="Screenshot_18" width="370" height="279" /> </span></p>
<p><span style="font-size: 12pt;">Insert into c 194 value&nbsp; (101, &lsquo;Teja&rsquo;, 5000) &nbsp;</span></p>
<ul>
<li><span style="font-size: 12pt;">Open windows Forms Application Project</span></li>
<li><span style="font-size: 12pt;">Design the form as shown Using System. Data . oledb</span></li>
<li><span style="font-size: 12pt;">Code for Button 1_ click</span></li>
</ul>
<pre class="language-javascript"><code>String  s = &ldquo;Insert in to c 194 values  (&ldquo; + text box1.Text  + &ldquo;, &lsquo; &ldquo; + text box2. Text + &ldquo;, &lsquo; &ldquo; + text box 3.text +&rdquo;)&rdquo;;

Message Box .show (s); Oledb _connection con = new loedb connection (&ldquo;provider  = ms da or a.1 ; user id = scott;  password = tiger &ldquo;);

Con. Open (); Oledb command cmd = new oledb command  (s, con);

cmd. Execute  Non query (); Message Box. Show (&ldquo;Record is added&rdquo;);

}        </code></pre>19:T706b,<p>&nbsp;</p>
<h3><span style="font-size: 12pt;">1Q) What is .NET Framework?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><span style="color: #e03e2d;"><strong>Ans:</strong></span>.NET Framework is a complete environment that allows developers to develop, run, and deploy the following applications:</span></p>
<ul style="text-align: justify;">
<li><span style="font-size: 12pt;">Console applications</span></li>
<li><span style="font-size: 12pt;">Windows Forms applications</span></li>
<li><span style="font-size: 12pt;">Windows Presentation Foundation (WPF) applications</span></li>
<li><span style="font-size: 12pt;">Web applications (ASP.NET applications)</span></li>
<li><span style="font-size: 12pt;">Web services</span></li>
<li><span style="font-size: 12pt;">Windows services</span></li>
<li><span style="font-size: 12pt;">Service-oriented applications using Windows Communication Foundation (WCF)</span></li>
<li><span style="font-size: 12pt;">Workflow-enabled applications using Windows Workflow Foundation (WF)</span></li>
</ul>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">.NET Framework also enables a developer to create sharable components to be used in distributed computing architecture. NET Framework supports the object-oriented programming model for multiple languages, such as Visual Basic, Visual C#, and Visual C++. .NET Framework supports multiple programming languages in a manner that allows language interoperability. This implies that each language can use the code written in some other language.</span></p>
<h3><span style="font-size: 12pt;">2Q) What are the main components of .NET Framework?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>.NET Framework provides enormous advantages to software developers in comparison to the advantages provided by other platforms. Microsoft has united various modern as well as existing technologies of software development in .NET Framework. These technologies are used by developers to develop highly efficient applications for modern as well as future business needs. The following are the key components of .NET Framework:</span></p>
<ul style="text-align: justify;">
<li><span style="font-size: 12pt;">.NET Framework Class Library</span></li>
<li><span style="font-size: 12pt;">Common Language Runtime</span></li>
<li><span style="font-size: 12pt;">Dynamic Language Runtimes (DLR)</span></li>
<li><span style="font-size: 12pt;">Application Domains</span></li>
<li><span style="font-size: 12pt;">Runtime Host</span></li>
<li><span style="font-size: 12pt;">Common Type System</span></li>
<li><span style="font-size: 12pt;">Metadata and Self-Describing Components</span></li>
<li><span style="font-size: 12pt;">Cross-Language Interoperability</span></li>
<li><span style="font-size: 12pt;">.NET Framework Security</span></li>
<li><span style="font-size: 12pt;">Profiling</span></li>
<li><span style="font-size: 12pt;">Side-by-Side Execution</span></li>
</ul>
<h3><span style="font-size: 12pt;">3Q) List the new features added in .NET Framework 4.0.</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>The following are the new features of .NET Framework 4.0:</span></p>
<ul style="text-align: justify;">
<li><span style="font-size: 12pt;">Improved Application Compatibility and Deployment Support</span></li>
<li><span style="font-size: 12pt;">Dynamic Language Runtime</span></li>
<li><span style="font-size: 12pt;">Managed Extensibility Framework</span></li>
<li><span style="font-size: 12pt;">Parallel Programming framework</span></li>
<li><span style="font-size: 12pt;">Improved Security Model</span></li>
<li><span style="font-size: 12pt;">Networking Improvements</span></li>
<li><span style="font-size: 12pt;">Improved Core ASP.NET Services</span></li>
<li><span style="font-size: 12pt;">Improvements in WPF 4</span></li>
<li><span style="font-size: 12pt;">Improved Entity Framework (EF)</span></li>
<li><span style="font-size: 12pt;">Integration between WCF and WF</span></li>
</ul>
<blockquote>
<p><em><strong><span style="font-size: 16px;">Interested in mastering .NET? Learn more about "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>" in this blog post.</span></strong></em></p>
</blockquote>
<h3><span style="font-size: 12pt;">4Q) What is IL?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Intermediate Language is also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code is compiled to IL. IL is then converted to machine code at the point where the software is installed, or at run-time by a Just-In-Time (JIT) compiler.</span></p>
<h3><span style="font-size: 12pt;">5Q) What is Manifest?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Assembly metadata is stored in Manifest. Manifest contains all the metadata needed to do the following things</span></p>
<ul style="text-align: justify;">
<li><span style="font-size: 12pt;">A version of the assembly.</span></li>
<li><span style="font-size: 12pt;">Security identity.</span></li>
<li><span style="font-size: 12pt;">Scope of the assembly.</span></li>
<li><span style="font-size: 12pt;">Resolve references to resources and classes.</span></li>
</ul>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">The assembly manifest can be stored in a PE file either (an .exe or) .dll with Microsoft intermediate language (MSIL code with Microsoft intermediate language (MSIL) code or in a stand-alone PE file, that contains only assembly manifest information.</span></p>
<h3><span style="font-size: 12pt;">6Q) What are the code contracts?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Code contracts help you to express the code assumptions and statements stating the behavior of your code in a language-neutral way. The contracts are included in the form of pre-conditions, post-conditions, and object-invariants. The contracts help you to improve-testing by enabling run-time checking, static contract verification, and documentation generation.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">The&nbsp;System.Diagnostics.Contracts&nbsp;namespace contains static classes that are used to express contracts in your code.</span></p>
<h3><span style="font-size: 12pt;">7Q) Name the classes that are introduced in the system. Numerics namespace?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>The following two new classes are introduced in the System. Numerics namespace:</span></p>
<ul style="text-align: justify;">
<li><span style="font-size: 12pt;">BigInteger&nbsp;- Refers to a non-primitive integral type, which is used to hold a value of any size. It has no lower and upper limit, making it possible for you to perform arithmetic calculations with very large numbers, even with the numbers which cannot hold by double or long.</span></li>
<li><span style="font-size: 12pt;">Complex&nbsp;- Represents complex numbers and enables different arithmetic operations with complex numbers. A number represented in the form&nbsp;a + bi, where&nbsp;a&nbsp;is the real part, and&nbsp;b&nbsp;is the imaginary part, is a complex number.</span></li>
</ul>
<h3><span style="font-size: 12pt;">8Q) What is a managed extensibility framework?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Managed extensibility framework (MEF) is a new library that is introduced as a part of .NET 4.0 and Silverlight 4. It helps in extending your application by providing greater reuse of applications and components. MEF provides a way for the host applications to consume external extensions without any configuration requirement.</span></p>
<h3><span style="font-size: 12pt;">9Q) Explain memory-mapped files?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Memory-mapped files (MMFs) allow you to map the content of a file to the logical address of an application. These files enable the multiple processes running on the same machine to share data with each Other. TheMemoryMappedFile.CreateFromFile() method is used to obtain a MemoryMappedFile object that represents a persisted memory-mapped file from a file on disk.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">These files are included in the&nbsp;System.IO.MemoryMappedFiles&nbsp;namespace. This namespace contains four classes and three enumerations to help you access and secure your file mappings.</span></p>
<h3><span style="font-size: 12pt;">10Q) What is the Common Type System (CTS)?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>CTS is the component of CLR through which .NET Framework provides support for multiple languages because it contains a type system that is common across all the languages. Two CTS-compliant languages do not require type conversion when calling the code written in one language from within the code written in another language. CTS provides a base set of data types for all the languages supported by.NET Framework. This means that the size of integer and long variables is the same across all .NET-compliant programming languages. However, each language uses aliases for the base data types provided by CTS. For example, CTS uses the data type system. int32 to represent a 4-byte integer value; however, Visual Basic uses the alias integer for the same; whereas, C# uses the alias int. This is done for the sake of clarity and simplicity.</span></p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .Net Tutorial</a></span></p>
<h3><span style="font-size: 12pt;">11Q)Give a brief introduction on side-by-side execution. Can two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executables?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Side-by-side execution enables you to run multiple versions of an application or component and CLR on the same computer at the same time. As versioning is applicable only to shared assemblies and not to private assemblies, two applications, one using a private assembly and the other using a shared assembly, cannot be stated as side-by-side executables.</span></p>
<h3><span style="font-size: 12pt;">12Q) Which method do you use to enforce garbage collection in .NET?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>The&nbsp;System.GC.Collect()&nbsp;method.</span></p>
<h3><span style="font-size: 12pt;">13Q) State the differences between theDispose()and&nbsp;Finalize().</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>CLR uses the Dispose and Finalize methods to perform garbage collection of run-time objects of .NET applications.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">The&nbsp;Finalize&nbsp;method is called automatically by the runtime. CLR has a garbage collector (GC), which periodically checks for objects in heap that are no longer referenced by any object or program. It calls the Finalize method to free the memory used by such objects. The&nbsp;Dispose&nbsp;method is called by the programmer.&nbsp;Dispose&nbsp;is another method to release the memory used by an object. The Dispose method needs to be explicitly called in code to dereference an object from the heap. The&nbsp;Dispose&nbsp;method can be invoked only by the classes that implement the&nbsp;IDisposableinterface.</span></p>
<h3><span style="font-size: 12pt;">14Q) What is code access security (CAS)?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Code access security (CAS) is part of the .NET security model that prevents unauthorized access of resources and operations, and restricts the code to perform particular tasks.</span></p>
<h3><span style="font-size: 12pt;">15Q) Differentiate between managed and unmanaged code?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Managed code is the code that is executed directly by the CLR instead of the operating system. The code compiler first compiles the managed code to intermediate language (IL) code, also called as MSIL code. This code doesn't depend on machine configurations and can be executed on different machines.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">Unmanaged code is the code that is executed directly by the operating system outside the CLR environment. It is directly compiled to native machine code which depends on the machine configuration. In the managed code, since the execution of the code is governed by CLR, the runtime provides different services, such as garbage collection, type checking, exception handling, and security support. These services help provide uniformity in platform and language-independent behavior of managed code applications. In the unmanaged code, the allocation of memory, type safety, and security is required to be taken care of by the developer. If the unmanaged code is not properly handled, it may result in a memory leak. Examples of unmanaged code are ActiveX components and Win32 APIs that execute beyond the scope of native CLR.</span></p>
<h3><span style="font-size: 12pt;">16Q) What are tuples?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Tuple is a fixed-size collection that can have elements of either the same or different data types. Similar to arrays, a user must have to specify the size of a tuple at the time of declaration. Tuples are allowed to hold up from 1 to 8 elements and if there are more than 8 elements, then the 8th element can be defined as another tuple. Tuples can be specified as a parameter or return type of a method.</span></p>
<h3><span style="font-size: 12pt;">17Q) How can you turn-on and turn-off CAS?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>YOU can use the Code Access Security Tool (Caspol.exe) to turn security on and off.</span></p>
<ul>
<li style="text-align: justify;"><span style="font-size: 12pt;">To turn off security, type the following command at the command prompt: caspol -security off</span></li>
<li style="text-align: justify;"><span style="font-size: 12pt;">To turn on security, type the following command at the command prompt: caspol -security on</span></li>
</ul>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">In the .NET Framework 4.0, for using Caspol.exe, you first need to set the&nbsp;&lt;LegacyCasPolicy&gt;&nbsp;element to&nbsp;true.</span></p>
<h3><span style="font-size: 12pt;">18Q)Define garbage collection? Explain the difference between garbage collections in .NET 4.0 and earlier versions?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Garbage collection prevents memory leaks during the execution of programs. A garbage collector is a low-priority process that manages the allocation and deallocation of memory for your application. It checks for the unreferenced variables and objects. If GC finds any object that is no longer used by the application, it frees up the memory from that object.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">GC has changed a bit with the introduction of .NET 4.0. In .NET 4.0, the&nbsp;GC.Collect()&nbsp;method contains the following overloaded methods:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">GC.Collect(int)</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">GC.Collect(int, GCCollectionMode) Another new feature introduced in .NET is to notify you when the GC.Collect() method is invoked and completed successfully by using different methods. The .NET 4.0 supports a new background garbage collection that replaces the concurrent garbage collection used in earlier versions. This concurrent GC allocates memory while running and uses current segment (which is 16 MB on a workstation) for that. After that, all threads are suspended. In the case of background GC, a separate ephemeral GC - gen0 and gen1 can be started, while the full GC - gen0, 1, and 2 - is already running.</span></p>
<h3><span style="font-size: 12pt;">19Q) How do CAS works?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>There are two key concepts of CAS security policy- code groups and permissions. A code group contains assemblies in it in a manner that each .NET assembly is related to a particular code group and some permissions are granted to each code group. For example, using the default security policy, a control downloaded from a Web site belongs to the Zone, Internet code group, which adheres to the permissions defined by the named permission set. (Normally, the named permission set represents a very restrictive range of permissions.)</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">Assembly execution involves the following steps:</span></p>
<ul>
<li><span style="font-size: 12pt;">Evidence is gathered about assembly.</span></li>
<li><span style="font-size: 12pt;">Depending on the gathered evidence, the assembly is assigned to a code group.</span></li>
<li><span style="font-size: 12pt;">Security rights are allocated to the assembly, depending on the code group.</span></li>
<li><span style="font-size: 12pt;">Assembly runs as per the rights assigned to it.</span></li>
</ul>
<h3><span style="font-size: 12pt;">20Q) What is the Difference between NameSpace and Assembly?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Following are the differences between namespace and assembly:</span></p>
<ul style="text-align: justify;">
<li><span style="font-size: 12pt;">Assembly is a physical grouping of logical units, Namespace, logically group classes.</span></li>
<li><span style="font-size: 12pt;">A namespace can span multiple assemblies.</span></li>
</ul>
<h3><span style="font-size: 12pt;">21Q) Mention the execution process for managed code?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>A piece of managed code is executed as follows:</span></p>
<ul style="text-align: justify;">
<li><span style="font-size: 12pt;">Choosing a language compiler</span></li>
<li><span style="font-size: 12pt;">Compiling the code to MSIL</span></li>
<li><span style="font-size: 12pt;">Compiling MSIL to native code</span></li>
<li><span style="font-size: 12pt;">Executing the code.</span></li>
</ul>
<h3><span style="font-size: 12pt;">22Q) Is there a way to suppress the finalize process inside the garbage collector forcibly in .NET?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Use the&nbsp;GC.SuppressFinalize()&nbsp;method to suppress the finalize process inside the garbage collector forcibly in .NET.</span></p>
<h3><span style="font-size: 12pt;">23Q) How can you instantiate a tuple?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>The following are two ways to instantiate a tuple:</span></p>
<ul style="text-align: justify;">
<li><span style="font-size: 12pt;">Using the&nbsp;new&nbsp;operator. For example,</span></li>
</ul>
<p style="text-align: justify;"><span style="font-size: 12pt;">Tuple&lt;String, int&gt; t = new Tuple&lt;String, int&gt; ("Hellow", 2);</span></p>
<ul style="text-align: justify;">
<li><span style="font-size: 12pt;">Using the&nbsp;Create&nbsp;factory method available in the Tuple class. For example,</span></li>
</ul>
<p style="text-align: justify;"><span style="font-size: 12pt;">Tuple&lt;int, int, int&gt; t = Tuple.Create&lt;int, int, int&gt; (2, 4, 5);</span></p>
<h3><span style="font-size: 12pt;">24Q) Which is the root namespace for fundamental types in .NET Framework?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>System.Object&nbsp;is the root namespace for fundamental types in .NET Framework.</span></p>
<h3><span style="font-size: 12pt;">25Q) What are the improvements made in CAS in .NET 4.0?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>The CAS mechanism in .NET is used to control and configure the ability of managed code. Earlier, as this policy was applicable for only native applications, the security guarantee was limited. Therefore, developers used to look for alternative solutions, such as operating system-level solutions. This problem was solved in .NET Framework 4 by turning off the machine-wide security. The shared and hosted Web applications can now run more securely. The security policy in .NET Framework 4 has been simplified using the transparency model. This model allows you to run the Web applications without concern about the CAS policies.</span></p>
<p style="text-align: justify;"><span style="font-size: 12pt;">As a result of security policy changes in .NET Framework 4.0, you may encounter compilation warnings and runtime exceptions, if your try to use the obsolete CAS policy types and members either implicitly or explicitly. However, you can avoid the warnings and errors by using the&nbsp;&lt;NetFx40_LegacySecurityPolicy&gt;&nbsp;configuration element in the runtime settings schema to opt into the obsolete CAS policy behavior.</span></p>
<h3><span style="font-size: 12pt;">26Q) What is Microsoft Intermediate Language (MSIL)?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>The .NET Framework is shipped with compilers of all .NET programming languages to develop programs. There are separate compilers for the Visual Basic, C#, and Visual C++ programming languages in .NET Framework. Each .NET compiler produces an intermediate code after compiling the source code. The intermediate code is common for all languages and is understandable only to .NET environment. This intermediate code is known as MSIL.</span></p>
<h3><span style="font-size: 12pt;">27Q) What is lazy initialization?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Lazy initialization is a process by which an object is not initialized until it is first called in your code. The .NET 4.0 introduces a new wrapper class,&nbsp;System.Lazy&lt;T&gt;, for executing the lazy initialization in your application. Lazy initialization helps you to reduce the wastage of resources and memory requirements to improve performance. It also supports thread-safety.</span></p>
<h3><span style="font-size: 12pt;">28Q) How many types of generations are there in a garbage collector?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>Memory management in the CLR is divided into three generations that are build up by grouping memory segments. Generations enhance garbage collection performance. The following are the three types of generations found in a garbage collector:</span></p>
<ul style="text-align: justify;">
<li><span style="font-size: 12pt;">Generation 0 - When an object is initialized, it is said to be in generation 0.</span></li>
<li><span style="font-size: 12pt;">Generation 1 - The objects that are under the garbage collection process are considered to be in generation 1.</span></li>
<li><span style="font-size: 12pt;">Generation 2 - Whenever new objects are created and added to the memory, they are added to generation 0 and the old objects in generation 1 are considered to be in generation 2.</span></li>
</ul>
<h3><span style="font-size: 12pt;">29Q) Explain covariance and contra-variance in .NET Framework 4.0. Give an example for each?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>In .NET 4.0, the CLR supports covariance and contravariance of types in generic interfaces and delegates. Covariance enables you to cast a generic type to its base types, that is, you can assign an instance of type IEnumerable&lt;Tl&gt; to a variable of type IEnumerable&lt;T2&gt; where T1 derives from T2. For example,</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">IEnumerable&lt;string&gt; str1= new List&lt;string&gt; ();</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">IEnumerable&lt;object&gt; str2= str1; Contravariance allows you to assign a variable of&nbsp;Action&lt;base&gt;&nbsp;to a variable of type&nbsp;Action&lt;derived&gt;. For example,</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">IComparer&lt;object&gt; obj1 = GetComparer()</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">IComparer&lt;string&gt; obj2 = obj1; .NET framework 4.0 uses some language keywords (out and in) to annotate covariance and contra-variance. Out is used for covariance, while in is used for contra-variance.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">Variance can be applied only to reference types, generic interfaces, and generic delegates. These cannot be applied to value types and generic types.</span></p>
<h3><span style="font-size: 12pt;">30Q) How do you instantiate a complex number?</span></h3>
<p style="text-align: justify;"><span style="font-size: 12pt;"><strong style="color: #e03e2d;">Ans: </strong>The following are the different ways to assign a value to a complex number:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">Bypassing two Double values to its constructor. The first value represents the real, and the second value represents the imaginary part of a complex number. For example,</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">Complex c1 = new Complex(5, 8); /* It represents (5, 8) */ By assigning a Byte, SByte, Intl6, UIntl6, Int32, UInt32, Int64, UInt64, Single, or Double value to a complex object. The assigned value represents the real part of the complex number, and its imaginary part becomes0. For example,</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">Complex c2 = 15.3; /* It represents (15.3, 0) */ By casting a&nbsp;Decimal&nbsp;or&nbsp;BigInteger&nbsp;value to a&nbsp;Complex&nbsp;object. For example,</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">Complex c3 = (Complex) 14.7; /* It represents (14.7, 0) */ Assigning the value returned by an operator to a&nbsp;Complex&nbsp;variable. For example,</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="font-size: 12pt;">Complex c4 = c1 + c2; /* It represents (20.3, 8) */</span></p>
<p style="text-align: justify;"><span style="font-size: 12pt;">Our design of course tutorials and interview questions is practical and informative. At TekSlate, we offer resources to help you learn various IT courses. We avail of both written material and demo video tutorials. For in-depth knowledge and practical experience explore <a href="https://tekslate.com/asp-dot-net-training/" target="_blank" rel="noopener">Online&nbsp; ASP.NET Training</a>.</span></p>1a:T4248,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Working with Windows Service:-</span></h2>
<ol>
<li><span style="font-size: 12pt;">Service means a program.</span></li>
</ol>
<p><span style="font-size: 12pt;">A program, which is under the control of windows OS is called as Windows Service.</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">Windows Service is used to develop Background processes.</span></li>
<li><span style="font-size: 12pt;">Windows Service contains only Application logic BUT NOT GUI.</span></li>
<li><span style="font-size: 12pt;">The controls which are not visible at run time can be placed in the Windows Service project.</span></li>
</ol>
<p><span style="font-size: 12pt;"><strong>&nbsp;&nbsp;&nbsp; &nbsp;Ex:-</strong> Timer, Event log, File System Watcher</span></p>
<ol start="5">
<li><span style="font-size: 12pt;">To develop Windows Service, .net introduced</span></li>
</ol>
<p><span style="font-size: 12pt;">File <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />New<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Project<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Visual C # &nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Windows <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Windows Service project template. &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Note:-</strong> Windows Service project template is available in Professional Edition. it is not available in &nbsp;Standard Edition.</span></p>
<ol start="6">
<li><span style="font-size: 12pt;">To work with Windows Service, .net introduced System. Service Process Assembly.</span></li>
<li><span style="font-size: 12pt;">Windows Service are not Executable directly by pressing F5</span></li>
<li><span style="font-size: 12pt;">Windows Service is a class, which must be inherited from the Service base class.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7700" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_517-460x235.png" alt="Screenshot_5" width="363" height="185" /> &nbsp; &nbsp; &nbsp;</span></p>
<ol start="9">
<li><span style="font-size: 12pt;">Every Windows Service by default hare two events</span></li>
</ol>
<p><span style="font-size: 12pt;">(a) On Start () will be executed when service is about to start. (b)On Stop () will be executed when service is about to stop. &nbsp;</span></p>
<p>&nbsp;</p>
<blockquote>
<p><em><strong>Interested in mastering .NET? Learn more about "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>" in this blog post.</strong></em></p>
</blockquote>
<ol>
<li><span style="font-size: 12pt;">All the Windows Service will be located at</span></li>
</ol>
<p><span style="font-size: 12pt;">Start <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Settings &nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Control panel <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Performance and Maintenance&nbsp; <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Administrative tools <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Services &nbsp; (or) Start<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Run &nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Service. MSC</span></p>
<ol start="4">
<li><span style="font-size: 12pt;">Steps for developing windows Service</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; <strong>Step 1:</strong> Open windows service Project Template and write the code as required. </span></p>
<p><span style="font-size: 12pt;"><strong>Step 2:-</strong> Add the installers and build the project to get an Exe file. </span></p>
<p><span style="font-size: 12pt;"><strong>Step 3:</strong> Install the exe file with the help of INSTALLUTIL TOOL. </span></p>
<p><span style="font-size: 12pt;"><strong>Step 4:</strong> Open Service and start the service &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Example 1 on Windows Service</span></h3>
<p><span style="font-size: 12pt;"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</strong>Develop a service to restrict the accessibility of calculator software, if the user trying to open the calculator then display a message like &ldquo; Your System is effected with virus Please shut down&rdquo; </span></p>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>OBS:</strong>- &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">By default Message Box class is not in the scope of Windows service Project, hence System Windows. Forms assembly needs to be added.</span></li>
<li><span style="font-size: 12pt;">The default Timer control is not supported by Windows service.</span></li>
<li><span style="font-size: 12pt;">Especially for Windows service, a new Timer Control is developed, which needs to be added into the toolbox.</span></li>
<li><span style="font-size: 12pt;">When software is opened, then that software&rsquo;s exe file name is added into processes (Ctrl&nbsp; + alt + del &agrave; Processes)</span></li>
</ol>
<p><span style="font-size: 12pt;">Open windows service project with project name WSI</span></p>
<ul>
<li><span style="font-size: 12pt;">Project menu <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Add Reference <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Windows.Forms</span></li>
</ul>
<p><span style="font-size: 12pt;">Adding Timer Control into tool Box. &nbsp; </span></p>
<p><span style="font-size: 12pt;">Open Tool Box</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Right click inside of General Tab </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp; choose Items</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Timer&nbsp; (System. Timers) Place Timer in Windows service with Enabled&nbsp; = false; </span></p>
<p><span style="font-size: 12pt;">Using System. Windows.Forms;</span></p>
<pre class="language-javascript"><code>Code for Timer 1_ Elapsed event

{

Process [] p = process . Get Process ();

For (int  I = 0; I &lt; p. length; I ++)

{

If (p [i].Process Name . To Upper () = = &ldquo;CALC&rdquo;)

{

P[i].KILL();

Message Box.Show (&ldquo;Your System is effected with virus please shutdown&rdquo;);

Break;

}

}

</code></pre>
<p><span style="font-size: 12pt;">//for &nbsp; Code for On Start ()</span></p>
<pre class="language-javascript"><code>Event

{

Timer 1.Enabled = true;

}

Code for On Stop () Event

{

Timer 1.Enabled = false;

}  </code></pre>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>Adding the installers:-</strong></span></h3>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7701" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_615-460x244.png" alt="Screenshot_6" width="589" height="312" /> &nbsp; &nbsp; &nbsp;</span></p>
<p><span style="font-size: 12pt;"> Build the Project&nbsp; (build&nbsp; menu &nbsp; <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Build Solution ) </span></p>
<p><span style="font-size: 12pt; color: #e67e23;">&nbsp;<strong>OBS:-</strong> </span></p>
<p><span style="font-size: 12pt;">WS1 .exe&nbsp; is created under D: / C194 / WS1 / Bin/Debug folder with a Service called as ABC 1 Installing the Service Open.net command prompt Debug&nbsp; &gt; install util &ndash; I ws1.exe The transacted install completed Service is installed&nbsp; with the name ABC 1 Staring the service Open Service&nbsp; (Start <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;run &nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />service.MSC)</span></p>
<ol>
<li><span style="font-size: 12pt;">right-click on ABC 1 <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Properties <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;login <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />check &ldquo;Allow Service to interact with desktop&rdquo; checkbox &nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> ok</span></li>
</ol>
<p><span style="font-size: 12pt;"><strong>Note:-</strong> This step is required only when Service Contains a Message box.</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">Right-click on ABC1 <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Start</span></li>
</ol>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>Adding Installers:-</strong> </span></p>
<p><span style="font-size: 12pt;">Open Service 1. Cs [Design]</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Right-click inside the body</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Add Installer </span></p>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>OBS:-</strong></span></p>
<p><span style="font-size: 12pt;"> Two controls will be added Service Process Installer </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Properties <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Account&nbsp; = Local System Service Installer &nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />properties <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Service name = abc 2 Build the project&nbsp; (Build <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;build Solution) <strong>OBS:-</strong> Ws2.exe is created under D: / C 194 /ws2/bin/Debug &nbsp;folder with a Service called as ABC 2 Open. </span></p>
<p><span style="font-size: 12pt;">Net command prompt Change to D:/c 194 /ws2/bin/Debug folder Install Util &ndash; I ws2.exe Open service&nbsp; (Start <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;run <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />services.msc) Sight click on ABC 2 <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />start Then check C:/INET PUB/mail Root/Queue folder for a mail at 12:30</span></p>
<ul>
<li><span style="font-size: 12pt;">A program to Access and Controlling Windows Service Applications.</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-7703" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_718.png" alt="Screenshot_7" width="363" height="260" /> &nbsp;</span></p>
<p><span style="font-size: 12pt;"> To access the service, a service controller class is required, which is the part of the Service process Assembly. Methods of the service controller class</span></p>
<ol>
<li><span style="font-size: 12pt;">Get Service (); // Returns all the Service names from Local computer.</span></li>
<li><span style="font-size: 12pt;">Get Services (computer name); //Returns all the Service names from Specified computer</span></li>
<li><span style="font-size: 12pt;">Start ()</span></li>
<li><span style="font-size: 12pt;">Stop ()</span></li>
<li><span style="font-size: 12pt;">Service name</span></li>
</ol>
<ul>
<li><span style="font-size: 12pt;">Open WEAP</span></li>
<li><span style="font-size: 12pt;">Place two buttons and a List box as shown</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; Project Menu<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Add Reference <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;System. Service Process &nbsp; </span></p>
<p><span style="font-size: 12pt;">Using System. Service Process; &nbsp; </span></p>
<p><span style="font-size: 12pt;">Code for GD Service Controller [] x;</span></p>
<pre class="language-javascript"><code>Code for  Formal_ load event

{

X = Service Controller . get Service ();

For (int I = 0; I &lt; x. length; I ++)

List Box1.Items .Add (x [i]. Service. Controller);

}  

Code for start button

{

Int I = list box1. Selected Index; X [i].Start ();

}

Code for stop button

{

Int I = list box1. Selected Index;

X [i].Stop();

}

  (Or)

X [I = List Box 1. Selected Index]  .Stop ();  </code></pre>1b:T48db,<p>&nbsp;</p>
<ol>
<li><span style="font-size: 12pt;">A DLL file is called as an Assembly.</span></li>
</ol>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7688" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_128.png" alt="Screenshot_1" width="362" height="486" /> &nbsp;</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">Assembly contains reusable code in the format of byte code.</span></li>
<li><span style="font-size: 12pt;">A collection of classes is called namespace</span></li>
<li><span style="font-size: 12pt;">Collection on namespaces is an assembly</span></li>
<li><span style="font-size: 12pt;">Collection of Assemblies is FCL (Framework Class Library)</span></li>
<li><span style="font-size: 12pt;">Assembly supports language interoperability</span></li>
</ol>
<p><span style="font-size: 12pt;">That is the assembly developed in C #.net can be used in Vb .net and ASP.net also and vice versa.</span></p>
<ol start="7">
<li><span style="font-size: 12pt;">In some cases, C #.net assembly may not work in VB.Net</span></li>
<li><span style="font-size: 12pt;">To add an assembly</span></li>
</ol>
<p>&nbsp;</p>
<blockquote>
<p><em><strong>Interested in mastering .NET? Learn more about "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>" in this blog post.</strong></em></p>
</blockquote>
<p><span style="font-size: 12pt;">Go to project menu &nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Add reference <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp; Browse <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;choose a DLL file</span></p>
<ol start="9">
<li><span style="font-size: 12pt;">To import the classes of namespace &ldquo;using&rdquo; keyword is required.</span></li>
<li><span style="font-size: 12pt;">DLL <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;System. DATA <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;System. DATA. OLEDB</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">Assemblies are divided into two types</span></li>
<li><span style="font-size: 12pt;">Private</span></li>
<li><span style="font-size: 12pt;">Shared</span></li>
</ol>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7689" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_219.png" alt="Screenshot_2" width="310" height="611" /> &nbsp; &nbsp; &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">In private assemblies, all the referred DLLS will be copied automatically into LOCAL projects debug folder.</span></li>
<li><span style="font-size: 12pt;">In shared assemblies, the referred DLLS will not be copied into LOCAL project debug folder.</span></li>
<li><span style="font-size: 12pt;">Private assemblies occupies more memory when these are referred from many projects.</span></li>
<li><span style="font-size: 12pt;">When many projects to be developed for the same client, then shared assemblies are recommended. if only one project is required for a client, then private assemblies are best.</span>&nbsp; &nbsp;</li>
</ol>
<h3><span style="font-size: 12pt; color: #e67e23;">Example on Private Assembly:-</span></h3>
<p><span style="font-size: 12pt;">&nbsp; <strong>Note: -</strong> To develop assemblies .net introduced class library project template</span></p>
<ul>
<li><span style="font-size: 12pt;">Open a class library project with the project</span></li>
<li><span style="font-size: 12pt;">Private test (output will be a private test. dll)</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; <strong>Note:-</strong> DLL files are not executable, only it contains reusable code. &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">OBS: -</span></h3>
<p><span style="font-size: 12pt;">For every project, by default, a namespace will be created with the name of the project. &nbsp; </span></p>
<p><span style="font-size: 12pt;">Namespace private e test</span></p>
<pre class="language-javascript"><code>{

Public class test

{

Public string M1 ()

{

Return &ldquo;form M1&rdquo;;

}

//M1

}

//test

}  

Namespace sub private Test

{

Public class test 2

{

Public String Print ()

{

Return &ldquo;from print&rdquo;;

}

//print

Public string PRINT ()

{

Return &ldquo;from PRINT&rdquo;;

}

//print

}

//test2

}//sub private test

}</code></pre>
<p><span style="font-size: 12pt;">//private test &nbsp; Build the project&nbsp; (build menu </span><img class="alignnone size-full wp-image-7566" style="font-size: 12pt;" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /><span style="font-size: 12pt;">build solution)&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>OBS:-</strong></span></h3>
<p><span style="font-size: 12pt;">&nbsp; Private test. DLL is created under D:/C194 /private test / bin / debug folder with the following Structure &nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7690" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_318.png" alt="Screenshot_3" width="353" height="203" /> &nbsp; &nbsp; </span></p>
<p><span style="font-size: 12pt;">Similar to System. Io</span></p>
<ul>
<li><span style="font-size: 12pt;">Calling private Test. DLL from a C #.net Windows Application Project</span></li>
</ul>
<ul>
<li><span style="font-size: 12pt;">Open WFAP with project name c Test (C test or any name)</span></li>
<li><span style="font-size: 12pt;">Go to project menu <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Add reference<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Browse <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;private Test .dll</span></li>
<li><span style="font-size: 12pt;">Place a button</span></li>
</ul>
<p><span style="font-size: 12pt;">Using private test;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 12pt;">&nbsp; </span></p>
<p><span style="font-size: 12pt;">both should be returned if one write, Using private test. Sub private Test;&nbsp;</span></p>
<p><span style="font-size: 12pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then only that namespace classes all user &nbsp; </span></p>
<p><span style="font-size: 12pt;">// code for button </span></p>
<pre class="language-javascript"><code>{

Test t = new test ();

Message Box . show (t. M1());

Test 2 S = new Test 2 ();

Message Box . show (S. Print ());

Message Box . show (S. Print ());

}  

</code></pre>
<h3><span style="font-size: 12pt; color: #e67e23;">Execute the Project (f5):-</span></h3>
<p><span style="font-size: 12pt;">&nbsp; When the project is executed then private Test. DLL is copied into C :/c 194/Ctest/Bin/debug folder, hence private Test. DLL is a private assembly.</span></p>
<ul>
<li><span style="font-size: 12pt;">Calling Private Test.Dll from VB.net</span></li>
<li><span style="font-size: 12pt;">Windows Application Project</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />open vb.net windows Application Project with name V Test. &nbsp;</span></p>
<p><span style="font-size: 12pt;"> Project Menu </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Add reference</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Browse</span></p>
<p><span style="font-size: 12pt;">&nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Private Test. </span></p>
<p><span style="font-size: 12pt;">DLL Place a button Imports Private Test &nbsp; </span></p>
<p><span style="font-size: 12pt;">Imports Private Test. Sub Private Test //code for b1_click Dim t As New Test Message Box (t1. M1()) Dim S As New Test2 Message Box (S. print ())//can not be called. </span></p>
<p><span style="font-size: 12pt;"><strong>Note: -</strong> Test 2 is having two methods with name print and PRINT where the only case is different. This type of method is not accessible from VB.net because VB.net is not case sensitive. &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">&nbsp; &nbsp;&nbsp;Working with Shared Assemblies:-</span></h3>
<p><span style="font-size: 12pt;">C:/Windows/Assembly &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">ALL DLL file which is registered with GAC is called a shared Assembly.</span></li>
</ol>
<p><span style="font-size: 12pt;">GAC &ndash; Global Assembly cache</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">C:/windows/Assembly folder is called as GAC.</span></li>
<li><span style="font-size: 12pt;">Assembly folder a secured folder where copy and paste is not allowed.</span></li>
<li><span style="font-size: 12pt;">A DLL, which contains a strong name can be registered with GAC.</span></li>
<li><span style="font-size: 12pt;">A strong name is also called a public key token, which provides a unique identifier, to as an assembly.</span></li>
<li><span style="font-size: 12pt;">Syntax to create a Strong name</span></li>
</ol>
<p><span style="font-size: 12pt;">Sn &ndash; K abc.snk &nbsp; Small case &nbsp;</span></p>
<ol start="7">
<li><span style="font-size: 12pt;">A DLL with strong name can be registered with GAC with the help of GacUtil tool.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; Gacutil&nbsp; -I&nbsp; dll file</span></p>
<ul>
<li><span style="font-size: 12pt;">Small</span></li>
<li><span style="font-size: 12pt;">Install</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; -u <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;uninstall</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>Example on shared Assembly:-</strong></span></h3>
<ul>
<li><span style="font-size: 12pt;">Open class library project with project name asc 123</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; Namespace ABC 123 { Public Class Test { Public String Get Test () { Return &ldquo;from get text&rdquo;; }//get text }//text }//ABC 123 &nbsp; &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Steps to create a Strong name in C# .net</span></h3>
<ul>
<li><span style="font-size: 12pt;">Open .net command prompt</span></li>
</ul>
<p><span style="font-size: 12pt;">(Start <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Programs <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Microsoft Visual Studio 2008 <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Visual Studio Tools <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;visual Studio 2008 command prompt ) D: enter key</span></p>
<ul>
<li><span style="font-size: 12pt;">Cd c 1194</span></li>
<li><span style="font-size: 12pt;">C 194 &gt; cd abs 123</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; Abc 123 &gt;cd bin Abc 123/bin &gt; cd debug &nbsp; </span></p>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>OBS:-</strong></span></p>
<p><span style="font-size: 12pt;"> &nbsp; Abc.snk file is created with a strong name linking abc.snk in the current project Project menu</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Abc 123 Properties </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Signing</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />check the &ldquo;Sign the assembly&rdquo; checkbox</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Select &ldquo;browse&rdquo; from the combo box</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;choose ABC.snk file</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Providing Meta Information&nbsp; (optional):</span></h3>
<p><span style="font-size: 12pt;">Project menu </span></p>
<p><span style="font-size: 12pt;">&nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />ABC 123 Properties </span></p>
<p><span style="font-size: 12pt;">&nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Application</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Click on the Assembly Information button and type some information. &nbsp; </span></p>
<p><span style="font-size: 12pt;">Build the project &nbsp;(build<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> build Solution) &nbsp; </span></p>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>OBS:-</strong></span></p>
<p><span style="font-size: 12pt;"> ABC 123. DLL is created under D:/c194 /ABC 123 / Bin /Debug folder Open .net command prompt and type as follows Gacutil &ndash; I abc 123.dll &nbsp; </span></p>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>OBS:-</strong> </span></p>
<p><span style="font-size: 12pt;">ABC 123. DLL is registered with GAC (C :/windows/Assembly)&nbsp; hence it is called as shared Assembly. </span></p>
<p><span style="font-size: 12pt;">Open windows Forms Application Project&nbsp; with Project name WINTEST Project menu </span></p>
<p><span style="font-size: 12pt;">&nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Add reference</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Browse</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Abc 123.dll Place a Button Using ABC 123 Namespace WINTEST</span></p>
<p><span style="font-size: 12pt;"> Code for Button1_click</span></p>
<p><span style="font-size: 12pt;"> {</span></p>
<p><span style="font-size: 12pt;"> Test t&nbsp; = new Test ();</span></p>
<p><span style="font-size: 12pt;"> Message Box. Show&nbsp; (t. Get Text ()); </span></p>
<p><span style="font-size: 12pt;">}</span></p>
<p><span style="font-size: 12pt;"> Execute the Project&nbsp; (f5) &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>OBS:-</strong></span></h3>
<p><span style="font-size: 12pt;">&nbsp; ABC123.DLL is not copied into D :/ c194/WINTEST/bin /Debug folder, hence Abc 123.DLL is a Shared Assembly &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>Note:-</strong></span></h3>
<p><span style="font-size: 12pt;">&nbsp; All predefined assemblies are shared assemblies</span></p>1c:T1ef4,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Exception handling&nbsp;</span></h2>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7680" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_801.png" alt="Screenshot_80" width="215" height="185" /> &nbsp; </span></p>
<pre class="language-javascript"><code>Try

{

Int s = int Parse  (t1. text)

S = S + 1000;

MBS  (S + &ldquo;&rdquo;);

}  </code></pre>
<ol>
<li><span style="font-size: 12pt;">Compile Time Problems are called errors.</span></li>
</ol>
<p><span style="font-size: 12pt;">EX: - Syntax errors &nbsp;</span></p>
<ol start="2">
<li><span style="font-size: 12pt;">Runtime problems are called an exception.</span></li>
<li><span style="font-size: 12pt;">An exception is a run time condition which stops the normal execution of a program abnormally.</span></li>
<li><span style="font-size: 12pt;">Generally, Exceptions will be raised</span></li>
</ol>
<blockquote>
<p><em><strong><span style="font-size: 12pt;">&nbsp;</span>Interested in mastering .NET? Learn more about "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>" in this blog post.</strong></em></p>
</blockquote>
<ol>
<li><span style="font-size: 12pt;">While Typecasting</span></li>
<li><span style="font-size: 12pt;">While working with Files</span></li>
<li><span style="font-size: 12pt;">While working with Databases</span></li>
<li><span style="font-size: 12pt;">While managing the memory</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; &nbsp; &nbsp; 5.To work with exception handling .net introduced 4 keywords &nbsp; &nbsp; Try, Catch, finally and throw &nbsp;</span></p>
<ol start="6">
<li><span style="font-size: 12pt;">When an exception is expected from a block of code, then recommended writing this logic within the try block.</span></li>
</ol>
<ol start="7">
<li><span style="font-size: 12pt;">The syntax for a try, catch, finally</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; Try{ &nbsp; --- --- --- -- } </span></p>
<p><span style="font-size: 12pt;">Catch&nbsp; (Type of exception obj)</span></p>
<p><span style="font-size: 12pt;"> { } </span></p>
<p><span style="font-size: 12pt;">Catch (Type of exception obj)</span></p>
<p><span style="font-size: 12pt;"> { }</span></p>
<p><span style="font-size: 12pt;"> Finally</span></p>
<p><span style="font-size: 12pt;"> { }</span></p>
<ol start="8">
<li><span style="font-size: 12pt;">Try block must be followed either with one catch, many catches, or ONE finally or ALL.</span></li>
</ol>
<ol start="9">
<li><span style="font-size: 12pt;">The catch will be executed only when an exception is raised.</span></li>
<li><span style="font-size: 12pt;">Finally will be executed always irrespective of exception.</span></li>
<li><span style="font-size: 12pt;">In an exception is raised in line 2 then lines 3 and 4 will not be executed.</span></li>
<li><span style="font-size: 12pt;">To handle the exception, Micro-soft introduced &ndash; 400 predefine classes.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; <strong>&nbsp;</strong> <strong>&nbsp;<img class="alignnone wp-image-7681" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_813-460x361.png" alt="Screenshot_81" width="440" height="345" /></strong> </span></p>
<p><span style="color: #e67e23;"><strong>&nbsp; &nbsp;Exception class Hierarchy &nbsp;</strong></span></p>
<p><span style="font-size: 12pt;"> &nbsp; <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />File not formatted exception </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Invalid&nbsp;&nbsp; formatted exception &nbsp; &nbsp; &nbsp; &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>Example on Exception handling where multiple catches and finally:-</strong></span></h3>
<ul>
<li><span style="font-size: 12pt;">Open WFAP</span></li>
<li><span style="font-size: 12pt;">Place a text box and a Button</span></li>
<li><span style="font-size: 12pt;">Code for Button1 _ click</span></li>
</ul>
<pre class="language-javascript"><code>{

Try

{

Int  S = int . Parse (text Box1.Text)

S =s + 1000;

Message Box. Show (&ldquo;Salary  is  &rdquo;  + s);

String [] X = new String [] 

{

&ldquo;C #&rdquo;, &ldquo;VB&rdquo;

};

Message Box. Show (X [0]);

Message Box. Show (X [1]);

Message Box. Show (X [2]);

}

//try     Catch  (Format Exception fe)

{

Message Box. Show ( fe. Message);

}

Catch (Exception cd)

{

Message Box. Show (ed. Message );

}

Finally

{

Message Box. Show (&ldquo;From  finally&rdquo;);

}  

</code></pre>
<h3><span style="color: #e67e23; font-size: 12pt;">Working with File handling</span></h3>
<ol>
<li><span style="font-size: 12pt;">&nbsp;Working with System. Io namespace is called &ldquo;File handling&rdquo;</span></li>
<li><span style="font-size: 12pt;">Generally, File handling is used</span></li>
</ol>
<ul>
<li><span style="font-size: 12pt;">To find Drives Information</span></li>
<li><span style="font-size: 12pt;">To find Directory and files Information.</span></li>
<li><span style="font-size: 12pt;">To create and delete files and directories.</span></li>
<li><span style="font-size: 12pt;">To manipulate Files and folders.</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<ol start="3">
<li><span style="font-size: 12pt;">Classes of System. Io namespace</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<ul>
<li><span style="font-size: 12pt;">Directory: used to find Drives information</span></li>
<li><span style="font-size: 12pt;">Directory info: To find the metadata of a directory or drive</span></li>
<li><span style="font-size: 12pt;">File: used to do to operations like copy, delete, etc&hellip;.</span></li>
<li><span style="font-size: 12pt;">File Info</span></li>
<li><span style="font-size: 12pt;">Stream Reader</span></li>
<li><span style="font-size: 12pt;">Stream writer</span></li>
</ul>
<p><span style="font-size: 12pt; color: #e67e23;">&nbsp;<strong>Methods of directory class</strong> &nbsp; </span></p>
<p><span style="font-size: 12pt;">Directory. Get Logical Drive&nbsp; () &agrave; returns all drive names. Directory. Get&nbsp; Directories&nbsp; (path) &agrave; returns all directory names. Directory. Get Files&nbsp; (path) &agrave; returns all files names. &nbsp; &nbsp; &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>Example of Directory class:-</strong></span><span style="font-size: 12pt;">&nbsp;</span></h3>
<ul>
<li><span style="font-size: 12pt;">Place a combo box and two List Boxes on the form</span></li>
<li><span style="font-size: 12pt;">Using System.Io;</span></li>
<li><span style="font-size: 12pt;">Code for form 1 _ load Event</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; String&nbsp; []&nbsp; X = Directory . Get Logical Drives (); </span></p>
<p><span style="font-size: 12pt;">For&nbsp; (int&nbsp; I = 0; I &lt; x. length ; I ++) </span></p>
<p><span style="font-size: 12pt;">Combo Box 1. Items . Add (X [1] )</span></p>
<p><span style="font-size: 12pt;"> &nbsp; &agrave; Code for combo Box 1 Selected Index changed event &nbsp; </span></p>
<pre class="language-javascript"><code>List Box 1.Items . Clear ();

String  P = Combo box 1. Selected Item . To string  ();

Try

{

String [] x = Directory. Get Directories (p);

For (int I = 0; I &lt; x. length ; I ++)

List box1. Items a Add (X[i]);

}

Catch  (Io Exception)

{

Message Box. Show (I .e Message) ;

}</code></pre>1d:T2742,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Key Related Events</span></h2>
<ol>
<li><span style="font-size: 12pt;">KeyPress</span></li>
<li><span style="font-size: 12pt;">Key down</span></li>
<li><span style="font-size: 12pt;">Key Up</span></li>
</ol>
<p><span style="color: #e67e23;"><span style="font-size: 12pt;">&nbsp;</span><span style="font-size: 12pt;"><strong>The difference between Keypress and Key down:</strong></span></span></p>
<ul>
<li><span style="font-size: 12pt;">In key press, logic will be executed Before displaying a character</span></li>
<li><span style="font-size: 12pt;">In key down, logic will be executed After displaying a character</span></li>
<li><span style="font-size: 12pt;">Key board character are divided into two types:-</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7668" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_703-460x208.png" alt="Screenshot_70" width="511" height="230" /> &nbsp; </span></p>
<p>&nbsp;</p>
<blockquote>
<p><em><strong>Interested in mastering .NET? Learn more about "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training </a></span>"in this blog post.</strong></em></p>
</blockquote>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>Example of developing a Ball and Bat game:</strong></span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7665" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_716.png" alt="Screenshot_71" width="340" height="284" /> &nbsp; &nbsp;</span></p>
<ul>
<li><span style="font-size: 12pt;">Open WFAP</span></li>
<li><span style="font-size: 12pt;">Place a Label control <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;properties&nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /></span></li>
</ul>
<p><span style="font-size: 12pt;">Back&nbsp; Color = black Auto Size&nbsp; = false Location&nbsp; = 202, 440 Left,&nbsp;&nbsp;&nbsp; top</span></p>
<ul>
<li><span style="font-size: 12pt;">Place a Picture Box Control <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Properties&nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /></span></li>
</ul>
<p><span style="font-size: 12pt;">Image = Select an image Size mode&nbsp; = Stretch image Location&nbsp; = 13, 200 Left,&nbsp;&nbsp;&nbsp; top</span></p>
<ul>
<li><span style="font-size: 12pt;">Place a Timer with Enabled = true;</span></li>
<li><span style="font-size: 12pt;">Place one more Timer with Enabled = false</span></li>
<li><span style="font-size: 12pt;">Code for Form1_Keydown event</span></li>
</ul>
<pre class="language-javascript"><code>{

Int I = (int) e.  keycode;

//Message Box. Show (I + &ldquo;&rdquo;);

If ((I = = 37)  &amp;&amp; Label1.left &gt; 0 )

Label 1.left = Label1.left -3;

If ((I = = 39)  &amp;&amp; Label1.left &lt; this. Width - 100 )

Label 1.left = Label1.left +3;

}</code></pre>
<ul>
<li><span style="font-size: 12pt;">Code for Timer 1 _ Tick Event</span></li>
</ul>
<pre class="language-javascript"><code>{

Picture Box. Top = Picture Box 1. Top &ndash; 15;

If (Picture Box. Top  &lt; 0)

{

Timer 1. Enabled = false;

Timer 1. Enabled = true;

}

</code></pre>
<p><span style="font-size: 12pt;">Code for Timer 2 _ Tick Event</span></p>
<pre class="language-javascript"><code>{

Picture Box1. Top = Picture Box 1. Top +5;

Picture Box2. Left = Picture Box 1. Left +1;

If  (Picture Box1. Top = Label1.Top &amp;&amp; Picture Box1.left  &gt;Label1.left &amp;&amp; Picture Box1. Left  &lt; Label1.right )

{

Timer 1.enabled = true;

Timer 2.enabled = false;

}</code></pre>
<p><span style="font-size: 12pt;"> &nbsp; <img class="alignnone size-full wp-image-7669" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_723.png" alt="Screenshot_72" width="452" height="557" /> &nbsp; &nbsp; </span></p>
<p><span style="font-size: 12pt;">2.Every item will be identified with a unique index number which tarts always from zero. &nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7670" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_733.png" alt="Screenshot_73" width="349" height="185" /> &nbsp;</span></p>
<ol start="3">
<li><span style="font-size: 12pt;">Como box allows to select only one item at a time</span></li>
<li><span style="font-size: 12pt;">The list box allows to select multiple items also.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .Net Tutorial</a></span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Common Properties and methods of list box and combo box:-&nbsp;</span></h3>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>Properties:-</strong> <strong>&nbsp;</strong></span></p>
<ol>
<li><span style="font-size: 12pt;">Items <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />used to add items at design time</span></li>
<li><span style="font-size: 12pt;">Selected item</span></li>
<li><span style="font-size: 12pt;">Selected Index</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; <span style="color: #e67e23;"><strong>Methods: - </strong></span></span></p>
<p><span style="font-size: 12pt;"><strong>&nbsp;</strong> <img class="alignnone wp-image-7671" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_742.png" alt="Screenshot_74" width="329" height="36" /> &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">Combo box1. Items Add (String)</span></li>
<li><span style="font-size: 12pt;">Combo box1. Items Insert(index, String)</span></li>
<li><span style="font-size: 12pt;">Combo box1. Items Remove(String)</span></li>
<li><span style="font-size: 12pt;">Combo box1. Items Remove(index)</span></li>
<li><span style="font-size: 12pt;">Combo box1. Items clear();</span></li>
<li><span style="font-size: 12pt;">Combo box1. Items Index of (String)</span></li>
<li><span style="font-size: 12pt;">Combo box1. Items Count&agrave;(property)</span></li>
<li><span style="font-size: 12pt;">Combo box1. Items Get Enumerator ();&nbsp;<strong>&nbsp;</strong></span></li>
</ol>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>&nbsp;</strong></span><span style="font-size: 12pt;"><strong><span style="color: #e67e23;">Example on combo box:</span>-</strong></span></p>
<p><span style="font-size: 12pt;">A program to change the shape of&nbsp; a FORM </span></p>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-7672" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_752.png" alt="Screenshot_75" width="221" height="640" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">Namespace <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />System Drawing. Drawing 2 D</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7673" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_762.png" alt="Screenshot_76" width="278" height="383" /></span></p>
<ul>
<li><span style="font-size: 12pt;">Open WFAP</span></li>
<li><span style="font-size: 12pt;">Place a combo box <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />properties <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Items = add</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<ul>
<li><span style="font-size: 12pt;">Using System . Drawing . Drawing 2 D;</span></li>
<li><span style="font-size: 12pt;">Code for combo box 1 _ Selected Index changed Event</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; Graphics path g = new Graphics path ();</span></p>
<p><span style="font-size: 12pt;"> Int I = combo box 1. Selected index; </span></p>
<p><span style="font-size: 12pt;">If&nbsp; (I = = 0) //circle</span></p>
<ol>
<li><span style="font-size: 12pt;">Add Ellipse (10, 10, 150, 150) ;</span></li>
</ol>
<p><span style="font-size: 12pt;">else if (i ==1 ) //ellipse</span></p>
<ol>
<li><span style="font-size: 12pt;">Add Ellipse (10, 10, 150, 400) ;</span></li>
</ol>
<p><span style="font-size: 12pt;">else //triangle {</span></p>
<ol>
<li><span style="font-size: 12pt;">Add Line (10, 10, 200, 300) ;</span></li>
<li><span style="font-size: 12pt;">Add Line (200, 300, 100, 150) ;</span></li>
<li><span style="font-size: 12pt;">Add Line (100, 150, 10,10) ;</span></li>
</ol>
<p><span style="font-size: 12pt;">} <img class="alignnone size-full wp-image-7675" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_782.png" alt="Screenshot_78" width="326" height="320" /> &nbsp; &nbsp;</span></p>1e:T1f98,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Events</span></h2>
<p><span style="font-size: 12pt;">Action on control is called an &ldquo;Event&rdquo;. </span></p>
<p><span style="font-size: 12pt;">In C #. Net, always events take two arguments</span></p>
<p><span style="font-size: 12pt;"> Always the first argument will be an object but the second argument type may vary from event to event. C #.net events are divided into 4 groups</span></p>
<p style="padding-left: 30px;"><span style="font-size: 12pt;">Mouse Related events</span></p>
<p style="padding-left: 30px;"><span style="font-size: 12pt;">Focus Related events</span></p>
<p style="padding-left: 30px;"><span style="font-size: 12pt;">Drag Related events</span></p>
<p style="padding-left: 30px;"><span style="font-size: 12pt;">Key Related events</span></p>
<p><span style="font-size: 12pt;"><strong>Mouse Related Events</strong></span></p>
<p><span style="font-size: 12pt;"> Click</span></p>
<p><span style="font-size: 12pt;"> Double click</span></p>
<p><span style="font-size: 12pt;"> Mouse up</span></p>
<p><span style="font-size: 12pt;"> Mouse Down </span></p>
<p><span style="font-size: 12pt;">House leave</span></p>
<p><span style="font-size: 12pt;"> House enter</span></p>
<p><span style="font-size: 12pt;"> Mouse More</span></p>
<p><span style="font-size: 12pt;"> Mouse Mover: </span><span style="font-size: 12pt;">this event will be fired when the mouse pointer placed on the control for some time.</span></p>
<blockquote>
<p><em><strong>Interested in mastering .NET? Learn more about "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>" in this blog post.</strong></em></p>
</blockquote>
<p><strong style="font-size: 12pt;">A program to use the company logo as the mouse pointer</strong></p>
<p><span style="font-size: 12pt;">Open windows form Application Project </span></p>
<p><span style="font-size: 12pt;">Place a picture Box control &agrave;properties</span></p>
<p><span style="font-size: 12pt;"> Image = Select an Image.</span></p>
<p><span style="font-size: 12pt;"> Size &nbsp;Mode = Stretch Image</span></p>
<p><span style="font-size: 12pt;"> Code for Form1 Mouse More Event</span></p>
<p><span style="font-size: 12pt;"> {</span></p>
<p><span style="font-size: 12pt;"> Picture Box 1. Location = new Point&nbsp; (e. x, e. y);</span></p>
<p><span style="font-size: 12pt;"> Cursor . Hide ();</span></p>
<p><span style="font-size: 12pt;"> }</span></p>
<p><span style="font-size: 12pt;"> Developing Animated Text</span></p>
<p style="padding-left: 30px;"><span style="font-size: 12pt;">Open Windows Forms Application Project</span></p>
<p style="padding-left: 30px;"><span style="font-size: 12pt;">Form &agrave;Properties &agrave;Back color&nbsp; = Black</span></p>
<p style="padding-left: 30px;"><span style="font-size: 12pt;">Place a button</span></p>
<p style="padding-left: 30px;"><span style="font-size: 12pt;">Place a Timer with Enabled = false</span></p>
<p><span style="font-size: 12pt;">&nbsp; Using System. Drawing.Drawing 2D &nbsp; Code in GD</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7656" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_662.png" alt="Screenshot_66" width="238" height="385" /> </span></p>
<p><span style="font-size: 12pt;">String S = &ldquo;MICRO SOFT TECHNOLOGIES&rdquo;</span></p>
<p><span style="font-size: 12pt;"> Font f = new &nbsp;Font&nbsp; (&ldquo;Arial &rdquo;, 50);</span></p>
<p><span style="font-size: 12pt;"> Linear Gradient Brush &nbsp;b = new&nbsp;&nbsp; Linear&nbsp; Gradient Brush&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: 12pt;">(new point&nbsp; (100, 100), new Point&nbsp; (200, 300), color. Red, color .yellow ); </span></p>
<p><span style="font-size: 12pt;">Int x =5; Graphics g;</span></p>
<p><span style="font-size: 12pt;"> // abstract class </span></p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .Net Tutorial</a></span></p>
<pre class="language-javascript"><code>  Code for Button 1_ click

{

g = this .create Graphics ();

Draw String (S, f,b 10,10);

Timer 1. Enabled = true;

}

  Code for Timer 1_Tick event

{

X = X+3;

If (X &gt; 300) X= 0;  

Linear Gradient Brush   b1 = new  Linear  Gradient Brush    

(new point  (100, 100), new Point  (x, 300), color. Red, color .yellow );

);

draw String (S, f,b, 10, 10);</code></pre>
<p><span style="font-size: 12pt;"> &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Focus Related Events</span></h3>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-7657" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_671.png" alt="Screenshot_67" width="407" height="263" /> </span></p>
<p><span style="font-size: 12pt;"><strong>Leave:</strong> This event will be executed while the cursor is coming out from control.</span></p>
<p><span style="font-size: 12pt;"> <strong>Enter:</strong> This event will be executed while the cursor is Entering into control. </span></p>
<p><span style="font-size: 12pt;"><strong>Note:-</strong> Generally these events will be used in Data Validations &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Example on Leave Event&nbsp;</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-7658" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_682-460x215.png" alt="Screenshot_68" width="519" height="242" /> &nbsp;</span></p>
<p><span style="font-size: 12pt;"> Open Windows Forms Application Project</span></p>
<p><span style="font-size: 12pt;"> Place two Labels and two text boxes as shown </span></p>
<p><span style="font-size: 12pt;">Place error Provider control &agrave;Properties &agrave;Back Style = Always Blink </span></p>
<pre class="language-javascript"><code>Code for Text Box1 Leave Event {

If (text Box1. Text = &ldquo;&rdquo;)

Error Provider1. Set Error (text Box 1,&rdquo; Eno should not be Empty &ldquo;);

Else Error Provider1. Set Error (text Box 1,&rdquo; &ldquo; .);

// No Space

}

</code></pre>
<h3><span style="color: #e67e23; font-size: 12pt;">Observations</span></h3>
<p><span style="font-size: 12pt;">Error Provider1. Set Error () takes two arguments</span></p>
<p><span style="font-size: 12pt;"> Arg 1: The control Name, after which a blinking&nbsp; Icon needs to be displayed. </span></p>
<p><span style="font-size: 12pt;">Arg 2: Error Message, if this is empty, then blinking&nbsp; Icon will Will not be displayed. &nbsp;</span></p>
<h2><span style="font-size: 12pt; color: #e67e23;">Drag Related Events</span></h2>
<p><span style="font-size: 12pt;">C # supports four Types of Drag Related Events </span></p>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7661" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_692-460x227.png" alt="Screenshot_69" width="489" height="241" /> &nbsp;</span></p>
<p><span style="font-size: 12pt;"> To work with Drag Related Events, ALLOW DROP property must be set to true. </span></p>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>Example: -</strong> </span></p>
<p><span style="font-size: 12pt;">A program for dragging the data from MS &ndash; word into .net text box. </span></p>
<p><span style="font-size: 12pt;">Open WFAP Place a text box <strong>- - &gt;&nbsp;</strong>&nbsp;properties <strong>- - &gt; &nbsp;</strong>Allow drop = true Multiline = true scroll bars = both </span></p>
<pre class="language-javascript"><code>Code for Text Box 1 Drag Enter Event

{

If  (e. data. Get data present  (Data Formats .Text)  == true)

  {

String s = (String) . e. Data . Get Data (Data Formats. Text) ;

Text Box 1.Text = s;

}

else

Message Box. Show (&ldquo;Not valid&rdquo;);</code></pre>1f:T3068,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">&nbsp;Working with windows programming [GUI programming]:-</span></h2>
<ol>
<li><span style="font-size: 12pt;">working with from and controls is called as GUI programming.</span></li>
<li><span style="font-size: 12pt;">Windows programming supports to develop disk top applications, games, animations, Rich interactive, applications, etc,&hellip;&hellip;&hellip;&hellip;</span></li>
<li><span style="font-size: 12pt;">Formworks like a container, where any number of controls can be placed.</span></li>
<li><span style="font-size: 12pt;">The form is also called as WIN FORM (Windows form)</span></li>
<li><span style="font-size: 12pt;">Every Form is a class that must be inherited from a predefined class called FROM.</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; Class Test: Form </span></p>
<p><span style="font-size: 12pt;">{</span></p>
<p><span style="font-size: 12pt;"> &nbsp; } </span></p>
<p><span style="font-size: 12pt;">&nbsp; Test <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />form name </span></p>
<p><span style="font-size: 12pt;">Form<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />predefined class &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>Example :</strong></span></h3>
<p><span style="font-size: 12pt;">Developing a user-defined from at the run time. &nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />open windows form application project</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />place a button </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />code in GD &nbsp; </span></p>
<p><span style="font-size: 12pt;">Class Test: Form </span></p>
<p><span style="font-size: 12pt;">Code for Button 1_ click </span></p>
<p><span style="font-size: 12pt;">Test t = new Test ();</span></p>
<ol>
<li><span style="font-size: 12pt;">Back color = color. Green;</span></li>
<li><span style="font-size: 12pt;">show ();</span></li>
</ol>
<blockquote>
<p><em><strong><span style="font-size: 12pt;">&nbsp;</span>Interested in mastering .NET? Learn more about "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>" in this blog post.</strong></em></p>
</blockquote>
<h3><span style="font-size: 12pt; color: #e67e23;">Every Form will be associated with three files </span></h3>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7646" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_614-460x74.png" alt="Screenshot_61" width="513" height="82" /> &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;"> Working with FORM properties:-&nbsp; (F4) &nbsp;</span></h3>
<ol>
<li><span style="font-size: 12pt;">Name: - this property changes object names with controls and class name with Forms</span></li>
<li><span style="font-size: 12pt;">Back color: Background color changes</span></li>
<li><span style="font-size: 12pt;">Fore color:-</span></li>
<li><span style="font-size: 12pt;">Font:-</span></li>
<li><span style="font-size: 12pt;">Background Image</span></li>
<li><span style="font-size: 12pt;">Background Image Layout</span></li>
<li><span style="font-size: 12pt;">Opacity (transparent): when this value is decreasing then the transparency ratio will be increasing&nbsp; (2&hellip;&hellip;&hellip;&hellip;&hellip;..100)</span></li>
<li><span style="font-size: 12pt;">Transparency key:- this value must be the same as form back color.</span></li>
</ol>
<p><span style="font-size: 12pt;">Then except form, the border and controls body remaining port will be displayed fully transparent.</span></p>
<ol start="9">
<li><span style="font-size: 12pt;">Form border-style : none</span></li>
<li><span style="font-size: 12pt;">Window state : normal / Minimize / Maximize</span></li>
</ol>
<h3><span style="font-size: 12pt; color: #e67e23;">Developing a Screen Saver :-</span></h3>
<p><span style="font-size: 12pt;">&nbsp; Generally, Screen saves are.SCR files,&nbsp; which will be under&nbsp; c:/windows/system 32 folder Open windows forms application project with project name Abcd&nbsp; (output file will be abcd. exe) </span></p>
<p><span style="font-size: 12pt;">&nbsp; Form <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />properties&nbsp; (F4) and set Back color = black Form border style&nbsp; = none. Window state = maximize &nbsp;</span></p>
<ul>
<li><span style="font-size: 12pt;">Place a picture Box control <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;properties<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />image = select an Image</span></li>
<li><span style="font-size: 12pt;">Place a timer control &agrave;properties <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;enabled = true</span></li>
<li><span style="font-size: 12pt;">Code in GD. Int x = 0;</span></li>
<li><span style="font-size: 12pt;">Code for Timer 1_Tick</span></li>
</ul>
<ul>
<li>
<pre class="language-javascript"><code>{

X = x +5;

If (x &gt; 400) X = 0;

Picture box 1. Location = new point (x, x);

}  

</code></pre>
<span style="font-size: 12pt;">Code for Form 1 key press event ( Form 1 &agrave;properties &agrave;click on yellow colored Icon (events)&agrave;double click on key press )</span></li>
</ul>
<p><span style="font-size: 12pt;">{</span></p>
<p><span style="font-size: 12pt;"> Application .Exit (); </span></p>
<p><span style="font-size: 12pt;">}</span></p>
<p><span style="font-size: 12pt;"> Execute the Project (F5) &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e03e2d;">OBS:-</span></h3>
<p><span style="font-size: 12pt;"><strong>&nbsp;</strong> Abcd .exe file will be created under &nbsp; </span></p>
<p><span style="font-size: 12pt;">D:/c 194/abcd/bin/debug Folder &nbsp; </span></p>
<p><span style="font-size: 12pt;">Rename Abcd .exe with Abcs.Scr &nbsp;</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />copy Abcd .Scr in to C :/windows / system 32 folder; Then check box desktop properties</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Screen saver &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Form Properties continuation:-</span></h3>
<p><span style="color: #e67e23;"><span style="font-size: 12pt;"><strong>&nbsp;</strong></span><span style="font-size: 12pt;"><strong>Context menu Strip :</strong></span></span></p>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-7647" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_623-460x183.png" alt="Screenshot_62" width="464" height="184" /> &nbsp; &nbsp;</span></p>
<ul>
<li><span style="font-size: 12pt;">The Associated context menu strip control will be displayed when right-clicked on an object.</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Example on context menu strip:-</span></h3>
<p><span style="font-size: 12pt;"><strong>&nbsp;</strong> Display an Icon in Systems along with context menu strip. &nbsp;</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-medium wp-image-7648" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_633-460x200.png" alt="Screenshot_63" width="300" height="130" /> &nbsp;</span></p>
<ul>
<li><span style="font-size: 12pt;">Open windows form application project</span></li>
<li><span style="font-size: 12pt;">Place a color &ndash; dialog control</span></li>
<li><span style="font-size: 12pt;">Place a context menu strip control on the form</span></li>
<li><span style="font-size: 12pt;">Design context menu strip with the following options</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7651" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_642-460x79.png" alt="Screenshot_64" width="482" height="82" /> &nbsp; &nbsp;</span></p>
<ul>
<li style="list-style-type: none;">
<ul>
<li><span style="font-size: 12pt;">Code for colors menu Item ( double click on colors)</span></li>
</ul>
<span style="font-size: 12pt;">{ </span></li>
<li style="list-style-type: none;"><span style="font-size: 12pt;">Color Dialog 1. Show Dialog ();</span></li>
<li style="list-style-type: none;"><span style="font-size: 12pt;"> this. Back color = color Diaglog1. Color; </span></li>
<li style="list-style-type: none;"><span style="font-size: 12pt;">} &nbsp;</span>
<ul>
<li><span style="font-size: 12pt;">Code for Exit menu Item</span></li>
</ul>
<span style="font-size: 12pt;">{</span></li>
<li style="list-style-type: none;"><span style="font-size: 12pt;"> Application .Exit ();</span></li>
<li style="list-style-type: none;"><span style="font-size: 12pt;"> } &nbsp;</span>
<ul>
<li><span style="font-size: 12pt;">Place a notify Icon control &agrave; properties &agrave; Icon = select icon file</span></li>
<li><span style="font-size: 12pt;">Context menu strip = context menu strip 1 &agrave; name of the control.</span></li>
</ul>
<span style="font-size: 12pt;">&nbsp; &nbsp; &nbsp; Execute the project (F5) Then observe the system&rsquo;s tray for a new icon</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Form properties Continuation </span></h3>
<ol start="2">
<li><span style="font-size: 12pt;">Accept button: the Associated button will be executed when pressed &ldquo;Enter key&rdquo;</span></li>
<li><span style="font-size: 12pt;">Cancel Button: the associated button will be executed when pressed &ldquo;Escape key&rdquo;</span></li>
</ol>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7653" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_652.png" alt="Screenshot_65" width="367" height="310" /> &nbsp; &nbsp; </span></p>
<p><span style="font-size: 12pt;">&nbsp; <strong>Example:-</strong> &nbsp; </span></p>
<p><span style="font-size: 12pt;">&agrave;Open windows form Application project &agrave;Place five text boxes and two buttons &nbsp;</span></p>
<pre class="language-javascript"><code>Code for button 1 _ click
{

This. Back color = color .Green ;

}

  &agrave;  code for button2_ click (clearing the text boxes)

{

For each (control c in this. controls)

{

If (c. Get type (). Name == &ldquo;Text box&rdquo;)

text = &ldquo;&rdquo;;
}  </code></pre>
<ul>
<li><span style="font-size: 12pt;">Choose from properties</span></li>
</ul>
<p><span style="font-size: 12pt;">Accept Button = Button 1 </span></p>
<p><span style="font-size: 12pt;">Cancel Button = Button 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></p>20:T274e,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Working with Stream Reader and Stream Writer class:-</span></h2>
<ol>
<li><span style="font-size: 12pt;">Stream Reader is used to read the data from a file.</span></li>
<li><span style="font-size: 12pt;">Stream Writer is used to write the data information in to file.</span></li>
</ol>
<h3><span style="font-size: 12pt; color: #e67e23;">Methods of Stream Reader and Stream Writer classes:-</span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-7685" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/136-460x190.png" alt="1" width="561" height="230" /> &nbsp; &nbsp; </span></p>
<p><span style="font-size: 12pt;">String S = &ldquo;String /n ;&nbsp;</span></p>
<p><span style="font-size: 12pt;"> String /n&hellip;&hellip;&hellip;..&rdquo; Write (&ldquo;abc&rdquo;); </span></p>
<p><span style="font-size: 12pt;">Write (&ldquo;xyz&rdquo;); </span></p>
<p><span style="font-size: 12pt;">Abc&nbsp; xyz &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">What is DOCK?</span></h3>
<ol>
<li><span style="font-size: 12pt;">This is a property, which is available for all visible controls.</span></li>
<li><span style="font-size: 12pt;">Dock property resizes a control Relatively with form Size.</span></li>
</ol>
<h3><span style="font-size: 12pt; color: #e67e23;">What is the Anchor?</span></h3>
<ol>
<li><span style="font-size: 12pt;">Anchor property repositions a control relatively with form size</span>&nbsp;</li>
</ol>
<ul>
<li><span style="font-size: 12pt;">Developing An application like a notepad</span></li>
<li><span style="font-size: 12pt;">Options required in note pad</span></li>
</ul>
<p><span style="font-size: 12pt;">&nbsp; File&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Edit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Format&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Help </span></p>
<p><span style="font-size: 12pt;">New&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select All&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fonts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Help topics </span></p>
<p><span style="font-size: 12pt;">Open&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cut&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Colors&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; About</span></p>
<p><span style="font-size: 12pt;"> Save&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy </span></p>
<p><span style="font-size: 12pt;">Print&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Paste</span></p>
<p><span style="font-size: 12pt;"> Exit &nbsp; </span></p>
<p><span style="font-size: 12pt;">&nbsp; The following controls are required to develop a notepad &nbsp;</span></p>
<ol>
<li><span style="font-size: 12pt;">Text Box</span></li>
<li><span style="font-size: 12pt;">Menu Strip</span></li>
<li><span style="font-size: 12pt;">Open File Dialog</span></li>
<li><span style="font-size: 12pt;">Save File Dialog</span></li>
<li><span style="font-size: 12pt;">Print Dialog</span></li>
<li><span style="font-size: 12pt;">Color Dialog</span></li>
<li><span style="font-size: 12pt;">Font Dialog</span></li>
</ol>
<p><span style="font-size: 12pt;">&nbsp; &nbsp;</span><em style="font-size: 15px; text-align: justify; background-color: #ffffff; color: #333333; font-family: quicksand, sans-serif; box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: bolder;">Interested in mastering .NET? Learn more about "<span style="box-sizing: border-box; color: #e03e2d;"><a style="box-sizing: border-box; color: #e03e2d; text-decoration-line: none; background-color: transparent; transition: all 0.2s linear 0s;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>" in this blog post.</span></em></p>
<ul>
<li><span style="font-size: 12pt;">Open windows Forms Application Project name my note</span></li>
<li><span style="font-size: 12pt;">Place all above 7 controls on the form</span></li>
<li><span style="font-size: 12pt;">Choose text box <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />properties<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /></span></li>
</ul>
<p><span style="font-size: 12pt;">Multiline = true</span></p>
<p><span style="font-size: 12pt;"> Dock = fill </span></p>
<p><span style="font-size: 12pt;">Scrollbars = both </span></p>
<p><span style="font-size: 12pt;">Allow </span><span style="font-size: 12pt;">drop = true</span></p>
<ul>
<li><span style="font-size: 12pt;">Select Menu strip control and design it with the above-discussed options</span></li>
</ul>
<ul>
<li><span style="font-size: 12pt;">Assigning an Icon &nbsp;&nbsp;to a menu item</span></li>
</ul>
<p><span style="font-size: 12pt;">Right click on new <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />set Image <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />choose an image</span></p>
<ul>
<li><span style="font-size: 12pt;">Assigning a short &ndash; cut key</span></li>
</ul>
<p><span style="font-size: 12pt;">Right click on cut <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;properties <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;short cut key</span></p>
<ul>
<li><span style="font-size: 12pt;">Select a combination</span></li>
</ul>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .Net Tutorial</a></span></p>
<pre class="language-javascript"><code>{

Using System . Io;

Using System . Drawing .Printing

}  

Code for new menu Item  (double click on new)

{

Text Box1. Text = &ldquo;&rdquo;;

}

Code for  open menu Item

{

Open File Dialog 1. Show Dialog ();

String p = Open File Dialog 1. File Name;

Message box. Show  (p);

Stream Reader sr = new Stream Reader  (p);

Text box 1 .text = sr. Read To end ();

Sr. close ();

}

Code for save menu item

{

Save File Dialog 1. Show Dialog ();

String p = Save File Dialog 1 .File Name;

Stream Writer sw = new Stream Writer (p);

Sw. Write  (text box1. text);

Sw. Flush ();

Sw. Close ();

}

Code for Print

{

Printer Setting ps = new Printer Settings ();

Print Dialog 1 .Printer Strings = ps;

Print Dialog1. Show Dialog ();

}

Code for exit {

Application .Exit ();

}

Code for Select ALL

{

Text box1.Select ALL();

}    

</code></pre>
<p><span style="font-size: 12pt;">Code for cut</span></p>
<p><span style="font-size: 12pt;">text box 1.cut ();</span></p>
<ul>
<li><span style="font-size: 12pt;">Code for copy</span></li>
</ul>
<p><span style="font-size: 12pt;">text box1.copy ();</span></p>
<ul>
<li><span style="font-size: 12pt;">Code for paste</span></li>
</ul>
<p><span style="font-size: 12pt;">textbox1.paste ();</span></p>
<ul>
<li><span style="font-size: 12pt;">Code for Fonts</span></li>
</ul>
<p><span style="font-size: 12pt;">Font Dialog1.Show Dialog (); Text box 1. Font = font Dialog1. Font;</span></p>
<ul>
<li><span style="font-size: 12pt;">Code for colors</span></li>
</ul>
<p><span style="font-size: 12pt;">{ Color Dialog1. Show Dialog (); Text Box 1.fore color Dialog1. Color; }</span></p>
<ul>
<li><span style="font-size: 12pt;">Code for Help Topics</span></li>
</ul>
<pre class="language-javascript"><code>{

Label L =new label ();

Dock = Dock Style .Fill ;
Font = new Font (&ldquo;Arial&rdquo;, 20)
Text = &ldquo; Type Help messages here&rdquo; ;
Form f = new Form ();

control S .Add (L);
Show Dialog ();
}</code></pre>
<p><span style="font-size: 12pt;"> &nbsp;</span></p>
<p><span style="font-size: 12pt;"> View menu <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Solution Explorer <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />right-click on my note (project name) <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />add &agrave; new item<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />About box and provide the name test &nbsp; </span></p>
<pre class="language-javascript"><code>Code for About
{

Test t = new Test ();

Show ();
}          </code></pre>21:T1902,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Abstract Classes and Interface</span></h2>
<p><span style="font-size: 12pt;">&nbsp; An abstract is a keyword </span></p>
<p><span style="font-size: 12pt;">When a class is not providing full functionality as per the requirement to declare that classes as &ldquo;Abstract&rdquo;. </span></p>
<p><span style="font-size: 12pt;">A method without a body is called an &ldquo;Abstract method&rdquo;. Abstract methods is also called Rules. </span></p>
<p><span style="font-size: 12pt;">When a class contains at least one Abstract method, then the class must be declared as &ldquo;Abstract method&rdquo;. </span></p>
<p><span style="font-size: 12pt;">that is Abstract class contains methods with Body and methods with our body also, then these are called &ldquo;partial Abstract class&rdquo;. </span></p>
<p><span style="font-size: 12pt;">All Abstract methods must be overridden in the derived classes. An abstract class provides a set of Rules (Abstract method), which must be followed (override) in derived classes. </span></p>
<p><span style="font-size: 12pt;">An abstract class is not insatiable (an object cannot be created), but a reference can be created. </span></p>
<p><span style="font-size: 12pt;">Test t = new test () </span></p>
<p><span style="font-size: 12pt;">// object </span></p>
<p><span style="font-size: 12pt;">Test x;</span></p>
<p><span style="font-size: 12pt;"> //reference &nbsp;</span></p>
<p><span style="font-size: 12pt;"> &lsquo;t&rsquo; contains its own memory but &lsquo;x&rsquo; does not contain its own memory. </span></p>
<p><span style="font-size: 12pt;">Always reference work based on child class memory. </span></p>
<p><span style="font-size: 12pt;">Shape&nbsp; s = new circle (); &nbsp;</span></p>
<blockquote>
<p><em><strong>Interested in mastering .NET? Learn more about "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>" in this blog post.</strong></em></p>
</blockquote>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>Example of Abstract class</strong></span></h3>
<p><span style="font-size: 12pt;"><strong>&nbsp;</strong> Open windows form application project. Place a button Code in GD &nbsp; </span></p>
<pre class="language-javascript"><code>Abstract class shape

{

Private int x = 10;

y = 20;

Public  void print ()

{

Message Box . Show (X + &ldquo;&rdquo; y);

}

//print

Public Abstract void find area ();

}

//shape

Class circle : shape

{

Provide int r = 10;

Public override  void find area ()

{

Double x = 3.14 * r* r;

Message Box. Show (&ldquo;Area is &rdquo; + X);

}

// find Area

Public void Display ()

{

Message Box. Show (&ldquo;thanks&rdquo;);

}

}

//circle &agrave;code for Button 1_ click

Private void button1 _ click (object sender, event prgs e)

{

Circle c = new click ();

print ();
find Area ();
Display () ;
Shape s = new circle ();

print ();
find area ();
}  

</code></pre>
<h2><span style="font-size: 14pt; color: #e67e23;">Interface</span></h2>
<p><span style="font-size: 12pt;">&nbsp; The interface is similar to Abstract classes. </span></p>
<p><span style="font-size: 12pt;">The interface contains only abstract methods. </span></p>
<p><span style="font-size: 12pt;">The interface supports a structure like multiple inheritance Syntax to write an interface &nbsp;</span></p>
<p><span style="font-size: 12pt;"> Interface int name </span></p>
<p><span style="font-size: 12pt;">{ </span></p>
<p><span style="font-size: 12pt;">Void read ();</span><span style="font-size: 12pt;">&nbsp; &agrave; CLR-&agrave;public abstract &agrave;void Read ()</span></p>
<p><span style="font-size: 12pt;"> Void Print (); </span></p>
<p><span style="font-size: 12pt;">}</span></p>
<p><span style="font-size: 12pt;"> All interface methods are by default public abstract methods. <strong>&nbsp;</strong></span></p>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>Syntax to use Interface in classes&nbsp;</strong></span></h3>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-7641" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_582.png" alt="Screenshot_58" width="183" height="442" /></span></p>
<p><span style="font-size: 12pt;"> &nbsp; <img class="alignnone size-full wp-image-7643" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_592.png" alt="Screenshot_59" width="275" height="469" /> </span></p>
<p><span style="font-size: 12pt;">&nbsp; &nbsp; <img class="alignnone size-full wp-image-7642" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_602.png" alt="Screenshot_60" width="299" height="706" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">Partial class Test </span></p>
<p><span style="font-size: 12pt;">{</span></p>
<p><span style="font-size: 12pt;"> Programmer 1</span></p>
<p><span style="font-size: 12pt;"> }</span></p>
<p><span style="font-size: 12pt;"> &nbsp; Partial class Test </span></p>
<p><span style="font-size: 12pt;">{</span></p>
<p><span style="font-size: 12pt;"> Programmer 2</span></p>
<p><span style="font-size: 12pt;"> } &nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Partial Classes</span></h3>
<p><span style="font-size: 12pt;">&ldquo;Partial&rdquo; is a keyword. </span></p>
<p><span style="font-size: 12pt;">When a class needs to be implemented in multiple locations with the same class name, then their classes need to be declared as partial classes. &nbsp; </span></p>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>Example of Interface and Partial classes&nbsp;</strong> &nbsp; </span></p>
<p><span style="font-size: 12pt;">Open windows form Application project Place a button Code in GD &nbsp; </span></p>
<pre class="language-javascript"><code>Interface i1

{

Void read ()

}

  Interface i2 :i1

{

Void Print ();

}

Partial class test : i2

{

Public void read ()

// overriding method

{

Message Box. Show (&ldquo;From read&rdquo;);

}

}

//Test Partial class T

est // : i2 not must

{

Public void Print ();

{

Message Box. Show (&ldquo;From print&rdquo;);

}

}

//test *F5   Code for Button 1 _ click

{

Test t = new Test ();

read ();
print ();
i2X = new Test ();

read ();
print ();
  *F5</code></pre>22:T2c50,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Inheritance</span></h2>
<p><span style="font-size: 12pt;">Inheritance is a concept of deriving the features from one class to another class. </span></p>
<p><span style="font-size: 12pt;">An inheritance leads to code reusability. </span></p>
<p><span style="font-size: 12pt;">Inheritance also saves memory. </span></p>
<p>&nbsp;</p>
<p><span style="font-size: 12pt;"><strong>Observation</strong> </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7626" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_473.png" alt="Screenshot_47" width="381" height="179" /></span></p>
<blockquote>
<p><em><strong>These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online"<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener"> .NET Training</a></span>"</strong></em></p>
</blockquote>
<pre class="language-javascript"><code>  Class EMP

{

P in temp no (or) Private int  ENO;

Private String EName;

Private int Sal;

}

  Class worker (wrk)

{

28 bytes

}

Class manager : wrk

{

12 bytes

}  

</code></pre>
<h3><span style="font-size: 14pt; color: #e67e23;">Types of Inheritance</span></h3>
<h4><span style="font-size: 12pt; color: #e67e23;"><strong>Single Inheritance</strong></span></h4>
<p><span style="font-size: 12pt;">Class A</span></p>
<p><span style="font-size: 12pt;"> { }</span></p>
<p><span style="font-size: 12pt;"> Class B: A </span></p>
<p><span style="font-size: 12pt;">{ } &nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7629" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_484.png" alt="Screenshot_48" width="268" height="195" /></span></p>
<p><span style="font-size: 12pt;">Class A </span></p>
<p><span style="font-size: 12pt;">{ </span></p>
<p><span style="font-size: 12pt;">P1 ()</span></p>
<p><span style="font-size: 12pt;"> } </span></p>
<p><span style="font-size: 12pt;">Class B:A</span></p>
<p><span style="font-size: 12pt;"> { </span></p>
<p><span style="font-size: 12pt;">P2 ()</span></p>
<p><span style="font-size: 12pt;"> } &nbsp; </span></p>
<h4><span style="color: #e67e23;">Multiple Inheritance</span></h4>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7630" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_493.png" alt="Screenshot_49" width="103" height="301" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">Class A Base class</span></p>
<p><span style="font-size: 12pt;"> </span><span style="font-size: 12pt;">{</span></p>
<p><span style="font-size: 12pt;"> } </span></p>
<p><span style="font-size: 12pt;">Class B: A derived class </span></p>
<p><span style="font-size: 12pt;">{</span></p>
<p><span style="font-size: 12pt;"> }</span></p>
<p><span style="font-size: 12pt;"> Class C:B derived class</span></p>
<p><span style="font-size: 12pt;"> {</span></p>
<p><span style="font-size: 12pt;"> } </span></p>
<h4><span style="font-size: 12pt; color: #e67e23;">&nbsp; <strong>Hierarchical Inheritance</strong> &nbsp;</span></h4>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7631" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_502.png" alt="Screenshot_50" width="359" height="155" /> &nbsp; &nbsp;</span></p>
<h4><span style="color: #e67e23;"> Multiple Inheritance </span></h4>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7632" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_516-460x207.png" alt="Screenshot_51" width="471" height="212" /> </span></p>
<p><span style="font-size: 12pt;">&nbsp; &nbsp; Class c : A, B</span></p>
<p><span style="font-size: 12pt;"> C obj = new c ()</span></p>
<p><span style="font-size: 12pt;"> Obj .P1 () </span></p>
<p><span style="font-size: 12pt;">Not possible&nbsp; (or)&nbsp; supported in .net. &nbsp;</span></p>
<h2><span style="font-size: 14pt; color: #e67e23;">Types of Inheritance</span></h2>
<p><span style="font-size: 12pt;">Multiple inheritances is not supported directly in C #.net. </span></p>
<p><span style="font-size: 12pt;">But a similar structure is supported with the help of Inheritance. </span></p>
<h4><span style="font-size: 12pt; color: #e67e23;">&nbsp; <strong>Hybrid Inheritance</strong> &nbsp;</span></h4>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7633" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_524.png" alt="Screenshot_52" width="369" height="242" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">It is not supported</span></p>
<p><span style="font-size: 12pt;"> It contains multiple Inheritance &nbsp; </span></p>
<h4><span style="color: #e67e23;">Logical Diagram in Inheritance concept</span></h4>
<p><span style="font-size: 12pt;"> B obj = new B() &nbsp;</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone wp-image-7634" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_533-460x199.png" alt="Screenshot_53" width="456" height="196" /> </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-7635" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_543.png" alt="Screenshot_54" width="308" height="674" /> &nbsp; &nbsp; </span></p>
<p><span style="font-size: 12pt;">Private data is accessible only from the class where these are declared. </span></p>
<p><span style="font-size: 12pt;">Protected data is accessible from ALL SUBCLASSES (derived class )also. </span></p>
<p><span style="font-size: 12pt;">Class B : Private A -&agrave; C ++ Concept </span></p>
<p><span style="font-size: 12pt;">Public data is accessible in the derived class as well as from objects &nbsp;</span></p>
<p><span style="font-size: 12pt;"> <strong>Ex 1:-</strong> </span></p>
<p><span style="font-size: 12pt;">A company gives Bonus, when they are reaching the target, then calculate the total salary. </span></p>
<p><span style="font-size: 12pt;">ENO</span></p>
<p><span style="font-size: 12pt;"> SAL</span></p>
<p><span style="font-size: 12pt;"> BONUS </span></p>
<p><span style="font-size: 12pt;">%S (Total Salary) &nbsp; </span></p>
<p><span style="font-size: 12pt;">Open windows forms application project Place a button Code in GD &nbsp; &nbsp;</span></p>
<pre class="language-javascript"><code>Class EMP

{

Private int ENO = 101;

Protected  int Sal = 5000;

Public void print ()

{

Message. Box. Show   (E no + &ldquo;&rdquo; + Sal);

}

//print

}

// class (EMP)  

Class bonus  : EMP

{

Private int b, ts;

Public void calculate (int n)

{

B = n;

Print ();

Ts = Sal +b;

Message  Box. Show (&ldquo;Total&rdquo;  + ts);

}

}

</code></pre>
<p><span style="font-size: 12pt;">//Bonus Code for</span></p>
<pre class="language-javascript"><code>Button1_click

{

Dialog Result dr;

  Dr =  Message Box . show (&ldquo;R u getting bonus&rdquo;, &ldquo;Peers&rdquo;, Message Box Buttons. Yes No, Message Box Icon .Question );

If (dr = = Dialog Result .yes)

{

Bonus obj = new bonus ();

Obj. Calculate (3000);

}

Else {

EMP X = new EMP ();

print ();

}

 (or) new EMP ().Print (); // name less object

}  

</code></pre>
<h4><span style="color: #e67e23;">Working with overriding (Runtime Polymorphism)</span></h4>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7637" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_562.png" alt="Screenshot_56" width="79" height="198" /> &nbsp; </span></p>
<pre class="language-javascript"><code>Public void Print ()

{

MB.S (&ldquo;A&rdquo;)

}

Public void show ()

{

MB.S (&ldquo;B&rdquo;);

Print ();

}

B obj = new B ();

Obj. Show () Obj. Print ()

</code></pre>
<p><span style="font-size: 12pt;"> Overriding is a concept of having two methods with the same name and the same arguments in Base and derived classes.</span></p>
<p><span style="font-size: 12pt;"> In overriding by default the priority will be given to local class methods. </span></p>
<p><span style="font-size: 12pt;">In overriding, in order to access parent class method s, </span></p>
<p><span style="font-size: 12pt;">the &ldquo;base&rdquo; keyword is required. &rdquo;base&rdquo; keyword can be used with methods, fields, and constructors also. &nbsp;</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7638" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_572.png" alt="Screenshot_57" width="275" height="224" /> &nbsp;</span></p>
<pre class="language-javascript"><code>{

MBS (&ldquo;A&rdquo;);

}

{

MBS (&ldquo;B&rdquo;);

}

base. show ();

{

MBS (&ldquo;C&rdquo;);

}

base. Show ();

New c () .show ();

</code></pre>
<p><strong><span style="color: #e67e23;">Example on overriding Fields</span></strong></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />open window forms application project </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />place a button </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />code in GD </span></p>
<pre class="language-javascript"><code>Class A

{

Public int x = 10;

}

Class B :A

{

Private int x = 100;

Public void print (int x)

{

Message Box. Show (This. x + &ldquo;&rdquo;) ;

//100

Message Box. Show (base. x + &ldquo;&rdquo;) ;

//10

Message Box. Show (This. x + &ldquo;&rdquo;) ;

//1000

}

}

Code for Button 1_click

{

B obj = new B ();

Obj. print (1000);

Message Box .Show (obj . x + &ldquo;&rdquo;);

//10

}

</code></pre>
<h4><span style="color: #e67e23;">Working with Sealed classes</span></h4>
<p><span style="font-size: 12pt;">Sealed classes are not inheritable Sealed is a keyword When a class is providing full functionality as per the requirements, then recommended to declare that classes as &ldquo;sealed class&rdquo;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;"><strong>Example of a sealed class&nbsp;</strong></span></h3>
<p><span style="font-size: 12pt;">Open windows forms application project Place a button Code in GD &nbsp; Sealed </span></p>
<pre class="language-javascript"><code>class test

{

Public void divide (Sting s)

{

String [] x = s. split (&ldquo;&rdquo;);

For (I =0; I &lt; x. length; I ++)

Message Box. Show (x [i]);

}

// divide

Class abc : test

{

// gives an error

}  

Code for Button1 _ click

Private void Button1_click (----)

{

Test t = new test ();

Divide (&ldquo;this is for test&rdquo;);

}</code></pre>23:Tcdc,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Steps for Debugging a project</span></h2>
<p><span style="font-size: 12pt;">&nbsp; Place a breakpoint (Right-click on any line on the source code, select breakpoint, insert breakpoint). </span></p>
<p><span style="font-size: 12pt;">Press F5 for execution. </span></p>
<p><span style="font-size: 12pt;">Click on button 1. </span></p>
<p><span style="font-size: 12pt;">The execution will be stopped at a breakpoint. </span></p>
<p><span style="font-size: 12pt;">To continue line by line execution press F11. </span></p>
<p><span style="font-size: 12pt;">To observe the value of a variable, right-click on a variable name, Add watch.&nbsp;</span></p>
<p>&nbsp;</p>
<p style="box-sizing: border-box; margin: 10px 0px; font-weight: 400; font-family: quicksand, sans-serif; font-size: 15px; text-align: justify; color: #333333; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;">&nbsp;</p>
<p style="box-sizing: border-box; margin: 10px 0px; font-weight: 400; font-family: quicksand, sans-serif; font-size: 15px; text-align: justify; color: #333333; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;">&nbsp;</p>
<p>&nbsp;</p>
<blockquote style="box-sizing: border-box; margin: 0px 0px 1rem; border-left: none; padding: 15px; line-height: 36px; color: #333333; font-family: quicksand, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;">
<p style="box-sizing: border-box; margin: 10px 0px; font-weight: 400; font-family: quicksand, sans-serif; font-size: 15px; text-align: justify;"><em style="box-sizing: border-box;"><strong style="box-sizing: border-box; font-weight: bolder;">These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="box-sizing: border-box; color: #e03e2d;"><a style="box-sizing: border-box; color: #e03e2d; text-decoration: none; background-color: transparent; transition: all 0.2s linear 0s;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>"</strong></em></p>
<p style="box-sizing: border-box; margin: 10px 0px; font-weight: 400; font-family: quicksand, sans-serif; font-size: 15px; text-align: justify;">&nbsp;</p>
<p style="box-sizing: border-box; margin: 10px 0px; font-weight: 400; font-family: quicksand, sans-serif; font-size: 15px; text-align: justify;">&nbsp;</p>
</blockquote>24:Tf9f,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Operator Overloading</span></h2>
<p>&nbsp; int a = 10; b = 20;,c;</p>
<p>C= a + b-<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />30&nbsp; (Addition)</p>
<p>String S1 = &lsquo;ABC&rsquo;, S2 = &lsquo;XYZ&rsquo;,S3;</p>
<p>S3 = S1+S2<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Abc xyz&nbsp; (concatenation)</p>
<p>Assume that test is a class and t1,t2,t3 are objects then</p>
<p>T3 = t1+t2</p>
<p>gives an error &lsquo;+&rsquo; operator is developed to use with numbers and string only BUT NOT WITH OBJECTS. &nbsp;</p>
<p>Operator overloading is a concept of extending the functionality of an Existing operator.</p>
<p>All the operators are overloadable except those contains a.</p>
<blockquote>
<p><em><strong>These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>"</strong></em></p>
</blockquote>
<p>That is the following operators are not overloadable.</p>
<p>&nbsp; <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp; member Access operator</p>
<p>:: Ternary or conditional operator</p>
<p>:: property access operator</p>
<p>: &nbsp;&nbsp;Inheritance operator</p>
<p>While overloading relational operators, these must be overloaded in &lsquo;PAIR&rsquo;. &nbsp;</p>
<p>To overload &gt;, &lt; must be overloaded</p>
<p>To overload &gt;=, &lt;= must be overloaded.</p>
<p>To overload ==,!= must be overloaded. &nbsp;</p>
<p>An overloaded operator must be declared as static.</p>
<p>Operator is a keyword.</p>
<p>Syntax to overloaded an operator &nbsp;</p>
<p>Public static return type&nbsp; operator + (args)</p>
<p>{</p>
<p>Logic;</p>
<p>} <strong>&nbsp;</strong></p>
<p><strong>Example:-</strong>&nbsp; on overloading + operator for adding the objects &nbsp;</p>
<p>Class EMP {</p>
<p>Private int Sal;</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>}</p>
<p>E1</p>
<p>&nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> Sal (5000) E2</p>
<p><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Sal (8000) E3 &nbsp;</p>
<p><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Sal (2700) &nbsp;</p>
<p>E1+E2+E3 = EMP(Data type) &nbsp;</p>
<p>Open windows forms Application project &agrave; Place a button</p>
<p><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;Code in GD &nbsp;</p>
<pre class="language-javascript"><code>Class EMP

{

Private int Sal;

Public EMP (int x  )

// constructor

{

Sal = X;

}

Public EMP ()

// Default constructor

{}

Public void Print ()

{

Message Box. Show (Sal);

}

  //overloading  + public static EMP operator  +  (EMP X , EMP y)

{

EMP t = new EMP ();

Sal = X. Sal + Y. Sal;

return t;

}

operator overloading

  }// EMP class  

Code for Button 1_click

{

EMP e1 = new EMP (5000);

EMP e2 = new EMP (8000);

EMP e3 = new EMP (5000);

EMP total  = new EMP ();

Total = e1 +e2+e3 ;

Total .Print ();

}  </code></pre>25:T1e39,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Working with Static Keyword</span></h2>
<p><span style="font-size: 12pt;">Class Circle { Private int x, y, z; Private Static double pi = 3.14;. } Static is a keyword. Static keyword can be used with fields, constructors, methods, and classes. Static Fields will be created only once while the class is loaded into the memory. Instance Variables will be created separately with every object. Static variables create common memory which is sharable by all the objects. If the Static variable is public, then it can be accessed directly with the class name But NOT WITH OBJECTS.</span></p>
<p><span style="font-size: 12pt;"> <strong>Observations</strong> </span></p>
<pre class="language-javascript"><code>Class Test

{

Public int I;

Public Static int S;

}

Test I = 10;

wrong Test s =20;

correct Test t = new Test ()

I = 10; correct

t.s = 20;

wrong  

</code></pre>
<p><span style="font-size: 12pt;">A static constructor can access only static variables.</span></p>
<p><span style="font-size: 12pt;">Static constructor will be executed only once, While class is loading into the memory.</span></p>
<blockquote>
<p><em><strong>Interested in mastering .NET? Learn more about "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener"><span style="color: #e03e2d;">.NET Training</span></a></span>" in this blog post.<span style="font-size: 12pt;">&nbsp;</span></strong></em></p>
</blockquote>
<p><span style="font-size: 12pt;"> <strong>Example of static variables and static constructor</strong></span></p>
<p><span style="font-size: 12pt;"> Open windows form Application Project <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /></span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Place a button </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Code in GD</span></p>
<pre class="language-javascript"><code>Class Test

{

Private int I;

Private Static int s;

Static Test ()

// Static constructor

{

S= 0;

}

Public Test ()

//Normal Constructor

{

I = I +1;

S = s+1;

Message Box&gt;show  (I + &ldquo;&rdquo; +s);

}

}

//Test   Code for button 1_ click

{

Test t1 = new Test ();

Test t2 = new Test ();

Test t3 = new Test ();

}

</code></pre>
<p><span style="font-size: 12pt;"> S=0 </span></p>
<p><span style="font-size: 12pt;">T1</span><span style="font-size: 12pt;">&nbsp; I =0</span></p>
<p><span style="font-size: 12pt;"> I=0 +1 </span></p>
<p><span style="font-size: 12pt;">I =1 </span></p>
<p><span style="font-size: 12pt;">S=1 &nbsp;</span></p>
<p><span style="font-size: 12pt;"> I&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 12pt;">s</span></p>
<p><span style="font-size: 12pt;"> 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 &nbsp; </span></p>
<p><span style="font-size: 12pt;">&nbsp; T2&nbsp; &nbsp;I =0 </span></p>
<p><span style="font-size: 12pt;">I = 0+1</span></p>
<p><span style="font-size: 12pt;"> I =1 </span></p>
<p><span style="font-size: 12pt;">S =s +1 </span></p>
<p><span style="font-size: 12pt;">S =I +1 </span></p>
<p><span style="font-size: 12pt;">S= 2 </span></p>
<p><span style="font-size: 12pt;">&nbsp; I&nbsp;&nbsp;&nbsp;&nbsp; s</span></p>
<p><span style="font-size: 12pt;"> I&nbsp;&nbsp;&nbsp; &nbsp;2&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="font-size: 12pt;">t2&nbsp; </span></p>
<p><span style="font-size: 12pt;">I&nbsp; &nbsp;</span><span style="font-size: 12pt;">s </span></p>
<p><span style="font-size: 12pt;">I&nbsp;&nbsp; &nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 12pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t3&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt;">Observations</span></h3>
<p><span style="font-size: 12pt;"><strong>&nbsp;</strong> Class JA&nbsp; (Joint account) {</span></p>
<p><span style="font-size: 12pt;"> Private string Name () &nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7620" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_453.png" alt="Screenshot_45" width="340" height="280" /> &nbsp;</span></p>
<h2><span style="font-size: 14pt; color: #e67e23;">Static Method and Static Classes</span></h2>
<p><span style="font-size: 12pt;">&nbsp; Class Test </span></p>
<p><span style="font-size: 12pt;">{ </span></p>
<p><span style="font-size: 12pt;">Public Static void P1 ()</span></p>
<p><span style="font-size: 12pt;">{} </span></p>
<p><span style="font-size: 12pt;">Public Static void P2 ()</span></p>
<p><span style="font-size: 12pt;">{}</span></p>
<p><span style="font-size: 12pt;"> } </span></p>
<p><span style="font-size: 12pt;">&nbsp; A static method can access only static data. The static method needs to be called with the class name. &nbsp; &nbsp; </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7621" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_463.png" alt="Screenshot_46" width="326" height="116" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">When a class contains all static methods only. Then recommended to declare that class as static. Static class are not intangible (creation of an object is not allowed)<strong>&nbsp;</strong> <strong>&nbsp;</strong></span></p>
<p><span style="font-size: 12pt;"> <strong>Example of static method and static classes</strong> </span></p>
<p><span style="font-size: 12pt;">Open windows Application Project &agrave;Place a text box and a button</span></p>
<h3><span style="font-size: 12pt;"><strong>Note</strong></span></h3>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />In this program, a predefined class called a process is required.</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Process class is a &nbsp;part of the System. Diagnostics namespace. </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />In order to use process classes, this namespace needs to be imported with the help of the &ldquo;using&rdquo; &nbsp;keyword. </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Code in GD Static classes software { Public static void open (string s) { Process. start (s); }//open }//software class</span></p>
<p><span style="font-size: 12pt;"><img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />code for Button 1-cilck { Software. open (text Box1.text); } &nbsp;</span></p>26:Tbef,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Constructors</span></h2>
<p><span style="font-size: 12pt;">A constructor is a special type of method, will be executed automatically while an object is about to create. De Constructors is a special type of method, will be executed automatically while an object is about to destroy. Constructors name must be the same as a class name without &ldquo;RETURN TYPE&rdquo; </span></p>
<p><span style="font-size: 12pt;"><strong>Syntax</strong> </span></p>
<p><span style="font-size: 12pt;">Public CL_Name () { &nbsp; } </span></p>
<p><span style="font-size: 12pt;">De Constructor name must be the same as a class name without a field&nbsp; ( ~) Prefix and without return type and access specifier. </span></p>
<p><span style="font-size: 12pt;"><strong>Syntax</strong> &nbsp;</span></p>
<p><span style="font-size: 12pt;"> CL_ Name () { } Constructors are over loadable. </span></p>
<p><span style="font-size: 12pt;">De -Constructors are not overloadable. Generally, constructors will be used to initialize the fields, to open connections or Files, etc.. Generally, deconstructors will be used to De Allocate the memory and to close the connections and files, etc.&nbsp; </span></p>
<p><em style="box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: bolder;"><span style="box-sizing: border-box; font-size: 12pt;">&nbsp;</span>These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="box-sizing: border-box; color: #e03e2d;"><a style="box-sizing: border-box; color: #e03e2d; text-decoration: none; background-color: transparent; transition: all 0.2s linear 0s;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>".</span></em></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Example on Constructors</span></h3>
<p><span style="font-size: 12pt;">Open windows form Application Project &agrave; Place a button &agrave; Code in GD</span></p>
<p><span style="font-size: 12pt;">&nbsp;</span></p>
<pre class="language-javascript"><code>Class Test

{

Public Test ()

//Constructor

{

Message Box. Show (&ldquo;From  Constructor &rdquo;);

}

~ Test ()

// De- Constructor

{

Message Box. Show  (&ldquo;From  De -Constructor&rdquo;)

}

  }

/Test  

Code for Button 1_click

{

Test t1 = new Test ();

Test t2 = new Test ();

Test t3 = new Test ();

}

  Execute the project

</code></pre>
<p><span style="font-size: 12pt;">&nbsp;&nbsp;</span><strong style="font-size: 12pt;">Observations</strong></p>
<p><span style="font-size: 12pt;">When the above project is executed, then 3 times the constructor and 3 times de-constructor will be executed. After a project is terminated (closed), then within 2 sec Garbage collector will be loaded into the memory. Garbage collector Reclaims (clears), the memory allocated for the current project. The garbage collector can be invoked programmatically also with the help of GC. Collect () &nbsp; &nbsp;</span></p>27:T1003,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Function Overloading</span></h2>
<p><span style="font-size: 12pt;">Function overloading is a concept of writing more than one function with the same name and with different types of arguments. </span></p>
<p><span style="font-size: 12pt;">&nbsp;<strong>Observations</strong></span></p>
<table style="width: 696px; height: 322px;" border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td><span style="font-size: 12pt;"><strong><span style="text-decoration: underline;"><span style="line-height: 115%; font-family: Calibri, sans-serif;">Proto type</span></span></strong></span></td>
<td><span style="font-size: 12pt;"><strong><span style="text-decoration: underline;"><span style="line-height: 115%; font-family: Calibri, sans-serif;">possible to overload</span></span></strong></span></td>
</tr>
<tr>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">Public void Print ()</span></td>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">1 &amp; 2&nbsp; Not possible</span></td>
</tr>
<tr>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">Private Void Print ()</span></td>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">1 &amp; 3 Not possible</span></td>
</tr>
<tr>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">Public int Print ()&nbsp;</span></td>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">1&amp; 4 Yes</span></td>
</tr>
<tr>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">Public void Print (Int x)</span></td>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">&nbsp;4 &amp; 5 NO</span></td>
</tr>
<tr>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">Public void Print (int y)&nbsp;</span></td>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">4 &amp; 6&nbsp;&nbsp; Yes&nbsp;</span></td>
</tr>
<tr>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">Public void Print (ref int x)</span></td>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">4 &amp; 7&nbsp; Yes</span></td>
</tr>
<tr>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">Public Void Print&nbsp; (out int x)&nbsp;</span></td>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">6 &amp; 7 No</span></td>
</tr>
<tr>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">Public void Print&nbsp; ()&nbsp;</span></td>
<td><span style="font-size: 12pt; line-height: 115%; font-family: Calibri, sans-serif;">1 &amp;8&nbsp; Yes [Not overloading concept]</span></td>
</tr>
</tbody>
</table>
<blockquote>
<p><em><strong><span style="font-size: 12pt;">&nbsp;</span>These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>".</strong></em></p>
</blockquote>
<p><span style="font-size: 12pt;"><strong>Example on function overloading</strong> </span></p>
<p><span style="font-size: 12pt;">Open Window forms Application Project Place a Button Code in GD </span></p>
<pre class="language-javascript"><code> Class Test

{

Public void print  ( float x)

{

Message. Box. Show  (&ldquo;From float :&rdquo;  + X);

}

Public void Print  (double X)

{

Message. Box. Show  (&ldquo;From double:&rdquo;  + X);

}

Public void Print  (decimal X)

{

Message. Box. Show  (&ldquo;From decimal:&rdquo;  + X);

}

}

//test   Code for button1_click   Test t = new Test ();  

Print (4.0) ;//
//t. Print (4); error

Print (4f);//float
Print (4m);//decimal
Print (4d);//double
       </code></pre>28:T14cd,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Working with Instance and Local variables</span></h2>
<p><span style="font-size: 12pt;">The variable created within the class is called &ldquo;Instance variables&rdquo;. The variables created within a function are called &ldquo;local variables&rdquo;. When instance variables names and local variable names are the same then by default priority will be given to the local variables In the above case in order to access instance variables this keyword is required. This keyword always points to the currents class. This will be created at run time. Example of &ldquo;this&rdquo; keyword with instance and local variables</span><span style="font-size: 12pt;">.</span></p>
<p><span style="font-size: 12pt;">&nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Place a button</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Code in GD &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Code&nbsp;</strong><strong>&nbsp;</strong> </span></p>
<pre class="language-javascript"><code>Class EMP

{

Private int Sal = 5000;

Public void incr (int Sal)

{

This Sal = this. Sal + Sal ;

}

Public void print ()

{

Message Box. Show (&ldquo;Sal = &rdquo; + Sal)

}

</code></pre>
<p><strong style="font-size: 12pt;">Code for Button 1_ click</strong><span style="font-size: 12pt;"> </span></p>
<pre class="language-javascript"><code>EMP e1 = new EMP ();

E1.incr (3500); E1.print ();  

</code></pre>
<blockquote>
<p><em><strong><span style="font-size: 12pt; color: #000000;">Interested in mastering .NET? Learn more about "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span> "in this blog post.</span></strong></em></p>
</blockquote>
<h3><span style="font-size: 12pt; color: #e67e23;">Function Arguments</span></h3>
<p><span style="font-size: 12pt;"><strong>Syntax</strong> </span></p>
<p><span style="font-size: 12pt;">&lt;Access Specifier&gt;</span><span style="font-size: 12pt;">return type func _name (args) C#</span></p>
<p><span style="font-size: 12pt;">.net allows to pass the arguments in three ways:- </span></p>
<p><span style="font-size: 12pt;">Call by value</span></p>
<p><span style="font-size: 12pt;"> Call by reference </span></p>
<p><span style="font-size: 12pt;">Call by out&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt; color: #e67e23;">Call by value and call by reference</span></h3>
<p><span style="font-size: 12pt;">When formal arguments are modified and if modification is reflected on actual arguments, then the concept is called as &ldquo;call by reference&rdquo; When formal arguments are modified and if modification are not reflected on actual arguments, then the concept is called as&nbsp;&nbsp; &ldquo;call by value&rdquo; By default variables will be passed by value. Reference is a keyword which is required to pass a variable The variables which are passing by ref must be initialized Reference keyword must be used along with actual and formal arguments. </span></p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .Net Tutorial</a></span></p>
<p><span style="font-size: 12pt;"><strong>Example on call by value and call by reference</strong></span></p>
<p><span style="font-size: 12pt;"> Open windows form application project</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Place a button</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Code in GD </span></p>
<pre class="language-javascript"><code>Class Test
Public void SWAP (int a, ref int b)
{
Int t = a;
A= b;
B =t;
}
}
Code for Button 1 _click
Private void button1_click ()
{
Int x = 10;
y = 20;
Test t = new Test ();
t.SWAP  (x, ref y);
Message Box. Show  (x + &ldquo;&rdquo; + y);
}  

</code></pre>
<h2><span style="font-size: 12pt;"><strong>Call by out</strong></span></h2>
<p><span style="font-size: 12pt;">It is 99% similar to cal by ref. Out is a keyword Out allows to pass a variable without initialization also. Event if out variable is initialized, the value will not be passed. out = ref _ initialization &nbsp; </span></p>
<p><span style="font-size: 12pt;"><strong>Example on call by out</strong></span></p>
<p><span style="font-size: 12pt;"> Place a button Code in GD &nbsp;</span></p>
<pre class="language-markup"><code>Class test
{

Public void print (out int x)

{ X =10;

X= x +x;

}

}
Code for button 1_ click ()
Private void button1_ click ()
{

Int a ;

Test t = new Test ();

t.Print (out a);

Message Box. Show  (a);

}</code></pre>29:T29d7,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Arrays</span></h2>
<p><span style="font-size: 12pt;">Arrays are of type &ldquo;reference&rdquo; That is even if an Array is not initialized still it holds some default values. </span></p>
<p><span style="font-size: 12pt;">int a, b, c ; C = a + b; STACK</span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7585" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_234.png" alt="Screenshot_23" width="297" height="299" /> </span></p>
<p><span style="font-size: 12pt;"><strong>Array&nbsp;</strong> X(5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x=5000 HEAP </span></p>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7586" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_243.png" alt="Screenshot_24" width="298" height="316" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">The array is a collection of homogeneous data type Arrays shares the same name with different index values Always index starts from &lsquo;0&rsquo; Arrays will be stored in continuous memory Arrays are faster in accessing All the arrays are instance of the system. Array class</span></p>
<p><em style="font-family: quicksand, sans-serif; font-size: 15px; text-align: justify; box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: bolder;">These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="box-sizing: border-box; color: #e03e2d;"><a style="box-sizing: border-box; color: #e03e2d; text-decoration-line: none; transition: all 0.2s linear 0s;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>"</span></em></p>
<p><span style="font-size: 12pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&darr;</span></p>
<p>&nbsp;</p>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-7588" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_264-460x383.png" alt="Screenshot_26" width="422" height="350" /></span></p>
<p>&nbsp;</p>
<p><span style="font-size: 12pt;">C# supports thr</span><span style="font-size: 12pt;">e</span><span style="font-size: 12pt;">e types of Arra</span><span style="font-size: 12pt;">ys One-dimensional arrays Multidimensional arrays Jagged Arrays &nbsp; &nbsp; &nbsp;&nbsp;</span></p>
<p><span style="font-size: 12pt;">&nbsp;</span><img class="alignnone wp-image-7587" style="font-size: 16px;" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_254-460x493.png" alt="Screenshot_25" width="427" height="459" /></p>
<h2><span style="font-size: 12pt; color: #e67e23;">Working with a one-dimensional array</span></h2>
<p><span style="font-size: 12pt;"><strong>Syntax</strong> Data type []&nbsp; arr_name&nbsp; = new data type [size]; </span></p>
<p>&nbsp;</p>
<p><span style="font-size: 12pt;"><strong>Example</strong> <img class="alignnone size-full wp-image-7589" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_274.png" alt="Screenshot_27" width="338" height="425" /> </span></p>
<p><span style="font-size: 12pt;">&nbsp; While initializing an array, size is not recommended </span></p>
<p><span style="font-size: 12pt;"><strong>Example</strong> </span></p>
<p><span style="font-size: 12pt;">A program to print array default rules:- </span></p>
<p><span style="font-size: 12pt;">Open window forms application project Place a button Code for button 1 </span></p>
<pre class="language-javascript"><code>click

{

Int [] x = new int [2];

For  (int  I =0 ; i&lt; arg.length ; I ++);

Message Box. Show ( x [i]+ &ldquo;&rdquo;);

}

</code></pre>
<p><strong style="font-size: 12pt;">Output</strong></p>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone size-full wp-image-7590" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_295.png" alt="Screenshot_29" width="232" height="167" /> </span></p>
<p><span style="font-size: 12pt;"><strong>Observations</strong></span></p>
<p><span style="font-size: 12pt;">The integral Array default value is Zero. Floating Array default value is Zero. </span></p>
<p><span style="font-size: 12pt;">char Array default value is nothing. Bool Array default value is false. </span></p>
<p><span style="font-size: 12pt;">Date time Array default value is 1/1/0001 12:00:00 AM.</span></p>
<h3><span style="font-size: 12pt;">Example</span></h3>
<p><span style="font-size: 12pt;">A program to create or get the spelling of a given number&nbsp;&nbsp;&nbsp;&nbsp; (1&hellip;&hellip;&hellip;&hellip;&hellip;&hellip;&hellip;..999) 123&hellip;&hellip;&hellip;&hellip;..one hundred twenty-three Open windows forms application project Place two text boxes and a button <img class="alignnone wp-image-7591" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_304-460x235.png" alt="Screenshot_30" width="439" height="224" /> &nbsp;</span></p>
<pre class="language-javascript"><code>Code for button1

click

{

Int n = int. parse (text box 1.text);

Int I = 0;

String res = &ldquo;&rdquo;;

String [] ones  =  new string [] 

{ &ldquo;one&rdquo;, &ldquo;two&rdquo;, &ldquo;three&rdquo;, &ldquo;four&rdquo; &ldquo;five&rdquo;, &ldquo;six&rdquo; &hellip;&hellip;&hellip;&hellip;&hellip;&hellip;,&rdquo; nineteen&rdquo;};

String [] Tens = new string []

{&ldquo;ten&rdquo;, &ldquo;twenty&rdquo;, &ldquo;ninety&rdquo;};

N = 426 N = 426/ 100  -&agrave; 10/3 = 3

    If (n &gt; 99 &amp;&amp; n &lt; 1000)

{

I = n / 100; Res = ones [I - 1] + &ldquo;hundred&rdquo;; N = n % 100;

}

If (n &gt; 19 &amp;&amp; n &lt; 1000)

{

I = n / 100; Res = ones [I - 1] + &ldquo;hundred&rdquo;;

N = n % 100;

}

If (n &gt; 0&amp;&amp; n &lt; 20)

Res =res +  ones [I - 1] ;

Text Box 2.text = res;

F5

}

</code></pre>
<p><img class="alignnone size-full wp-image-7593" style="font-size: 12pt;" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_326.png" alt="Screenshot_32" width="305" height="270" /></p>
<h2><span style="font-size: 12pt; color: #e67e23;">Working with Multi Dimensional Arrays</span></h2>
<p><span style="font-size: 12pt;">Arranging a set of elements in rows and columns is called&nbsp; &ldquo;Multi-Dimensional Array&rdquo;. </span></p>
<p><span style="font-size: 12pt;">In a Multi-Dimensional Array, every row must contain the same number of elements. Multi-Dimensional Array size will be represented with no. of rows X&nbsp; no. of columns If the array name is &lsquo;X&rsquo; then x. length return a total number of elements. </span></p>
<p><span style="font-size: 12pt;"> <img class="alignnone size-full wp-image-7594" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_334.png" alt="Screenshot_33" width="402" height="346" /></span></p>
<p><span style="font-size: 12pt;">get length (0) returns no. of rows get length (1) returns no. of columns syntax to declare multi &ndash; d array I0 : int [] x = new int [s]; S <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> 20 : int [,] x = new int [s,s]; 30 : int [,,] x = new int [s,s,s];</span></p>
<p>&nbsp;</p>
<p><span style="font-size: 12pt;"> <strong>Note</strong> VB supports up to 32 dimensions where as no limit in C #.NET Syntax to initialize 2 D Array &nbsp; Int [,] x = new int [,] { {5,6,7,8} {9,8,7,6} {5,5,5,5} } </span></p>
<p><span style="font-size: 12pt;">&nbsp; <img class="alignnone wp-image-7595" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_344-460x172.png" alt="Screenshot_34" width="410" height="153" /> &nbsp;</span></p>
<p>&nbsp;</p>
<p><span style="font-size: 12pt; color: #e67e23;"><strong>Example with multi dimension Array</strong> </span></p>
<p><span style="font-size: 12pt;">Open windows forms application project Place a button Code for button 1 </span></p>
<pre class="language-javascript"><code>click

  {

String  s = &ldquo;&rdquo;;

Int [,]  x = new int [,];

{ {5, 6, 7, 8}, {9, 8, 7, 6}, {5, 5, 5, 5} };

  r=0                  c = 0 Rr=1                    c =1 c =2 c =3 message  box. Show (&ldquo;Total :&rdquo; + x. length) ;

message box .show  (&ldquo;Rows : + x. get length  (0)&rdquo;) + &ldquo; cols :&rdquo;  + x. get length  (1) );

For (int  r = 0; r &lt; x. get length  (0);r ++)

{

For (int  c = 0; c&lt; x. get length  (0);c ++)

{

S = S + X [r,c] + &ldquo;&rdquo; ;

}

S= s + &ldquo;/n&rdquo;

}

Message Box. Show (s);

</code></pre>
<h3><span style="font-size: 12pt; color: #e67e23;">Jagged Arrays</span></h3>
<p><span style="font-size: 12pt;">ABC(Company) Members are working Employees &nbsp; <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />3*6<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />values </span></p>
<p><span style="font-size: 12pt;"><img class="alignnone wp-image-7596" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_354-460x379.png" alt="Screenshot_35" width="438" height="361" /> &nbsp; </span></p>
<p><span style="font-size: 12pt;">A jagged array is a collection of rows where every row may contain a different number of elements. Jagged arrays save memory. Jagged arrays are faster in accessing. Jagged arrays are also called as &ldquo;Dynamic array&rdquo; (run time array) Jagged array is also called an array of arrays.</span></p>
<p><span style="font-size: 12pt;"> <strong>Syntax</strong> Int []&nbsp; [] x = new int [3] []; X [0] = new int [] {4,2,3,5,6,7} X [1] = new int [] {3,8,4,2,4}</span></p>
<p><span style="font-size: 12pt;"> <strong>Example</strong> Open windows forms application project Place a button Code for button 1 </span></p>
<pre class="language-javascript"><code>click

  {

Int [] []   x = new int [3][];

X [0] = new int [] {5,3,4,6,7,7};

X [1] = new int [10];

X [2] = new int []{2,3};

String  S = &ldquo;&rdquo;;

For  (int r  = 0;r &lt; x.get length (0);r ++)

{

For  (int c  = 0;r &lt; x.get length (0);c++)

{

S= s + x[ r][c] +&rdquo;&rdquo;;

}

S =s + &ldquo;/n&rdquo;

}

Message Box. Show (s);  </code></pre>2a:Tb55,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Loops</span></h2>
<h3><span style="font-size: 12pt;">Syntax of for loop</span></h3>
<p><span style="font-size: 12pt;"> For (initialization ;&nbsp; condition , ++&nbsp; (or) --) </span></p>
<p><span style="font-size: 12pt;">{ </span></p>
<p><span style="font-size: 12pt;">Statements; </span></p>
<p><span style="font-size: 12pt;">} </span></p>
<h3><span style="font-size: 12pt;">While Syntax </span></h3>
<p><span style="font-size: 12pt;">While (condition)</span></p>
<p><span style="font-size: 12pt;"> { </span></p>
<p><span style="font-size: 12pt;">Statements ;</span></p>
<p><span style="font-size: 12pt;"> }</span></p>
<h3><span style="font-size: 12pt;">Do While Syntax</span></h3>
<p><span style="font-size: 12pt;">Do</span></p>
<p><span style="font-size: 12pt;"> {</span></p>
<p><span style="font-size: 12pt;"> Statements ;</span></p>
<p><span style="font-size: 12pt;"> } </span></p>
<p><span style="font-size: 12pt;">While (condition)</span></p>
<blockquote>
<p><em><strong>These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>"</strong></em></p>
</blockquote>
<p>&nbsp;</p>
<p><span style="font-size: 12pt;"><strong>Example on for loop</strong></span></p>
<p><span style="font-size: 12pt;"> Place a button on the form then Add 10 text boxes in to the form when clicked on a button</span></p>
<p><span style="font-size: 12pt;"> &nbsp; <img class="alignnone wp-image-7581" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_218-460x215.png" alt="Screenshot_21" width="566" height="264" /></span></p>
<p><span style="font-size: 12pt;"> &nbsp; Open windows forms application project Place a button Code for button 1 </span></p>
<pre class="language-javascript"><code>click

{

Int X = 30;

For (int I =1; i&lt;10; I++);

{

Text box t = new text box ();

location = new point (100,x);
this. Controls .Add (t);

x = x + 30;

}

Press f5

</code></pre>
<p><span style="font-size: 12pt;">Execute the project</span></p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .NET Tutorial</a></span></p>
<p><span style="font-size: 12pt;"> &nbsp; <img class="alignnone wp-image-7582" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/Screenshot_224.png" alt="Screenshot_22" width="363" height="293" /></span></p>
<p><span style="font-size: 12pt;"> <strong>Observations</strong> </span></p>
<p><span style="font-size: 12pt;">In C # .net all the controls are predefined classes. &nbsp;</span></p>2b:T22fb,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">C# .Net Data Types</span></h2>
<p>Data type <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />Type of data Data type specifies the size of the data and type of data. C#.net data type is divided into two types</p>
<p><strong>Value Type</strong> Int&nbsp; i = 0 I <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />10 &nbsp;(7000) C language &nbsp;C#</p>
<p><strong>Reference Type&nbsp;</strong> Int * p = i p<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> 7000&nbsp; (9000) &nbsp; Stack&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Heap 90%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10% 10%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 90% &nbsp;</p>
<h3><span style="font-size: 12pt; color: #e67e23;">Value Type</span></h3>
<p>The value type will be created at compile-time and these will be started in STACK memory. Value types hold the data directly No default value for value type GC (Garbage collector) cannot access stack memory. that is GC can not clear stack run time Examples</p>
<p style="padding-left: 30px;">Pre-defined data types</p>
<p style="padding-left: 30px;">Structures</p>
<p style="padding-left: 30px;">Enum&rsquo;s (Enumerator)</p>
<blockquote>
<p style="box-sizing: border-box; margin: 10px 0px; font-weight: 400; font-family: quicksand, sans-serif; font-size: 15px; text-align: justify; color: #333333; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><em style="box-sizing: border-box;"><strong style="box-sizing: border-box; font-weight: bolder;">These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="box-sizing: border-box; color: #e03e2d;"><a style="box-sizing: border-box; color: #e03e2d; text-decoration: none; background-color: transparent; transition: all 0.2s linear 0s;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>"</strong></em></p>
</blockquote>
<h3><span style="font-size: 12pt; color: #e67e23;">Reference Type</span></h3>
<p>Reference Type will be created at run time and these will be stored in HEAP memory. Reference Type holds the reference but not the data. The reference Type holds the default value. GC can access HEAP memory. Examples:-</p>
<p style="padding-left: 30px;">Classes</p>
<p style="padding-left: 30px;">Object</p>
<p style="padding-left: 30px;">Arrays</p>
<p style="padding-left: 30px;">Interface</p>
<p style="padding-left: 30px;">Delegates</p>
<p style="padding-left: 30px;">Var (newly introduced)</p>
<p style="padding-left: 30px;">Etc&hellip;&hellip;&hellip;&hellip;&hellip;</p>
<h3><span style="font-size: 12pt; color: #e67e23;">Working with Predefined Data types&nbsp;</span></h3>
<p>These are divided into 4 groups</p>
<p><strong>Group 1:- Integral Data type</strong></p>
<p>.byte<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> 1 byte&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />255</p>
<p>.S byte <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />1 byte&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -128 to +127</p>
<p>.Short <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />2 bytes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -32768&nbsp; to +32768</p>
<p>.U short <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp; &nbsp;2 bytes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 &ndash; 65535</p>
<p>Int <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;4 bytes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;~ +- 214 cores</p>
<p>U int<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> 4bytes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 -~ 429 cores</p>
<p>Long <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />8 bytes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + 2^63</p>
<p>U Long &nbsp;<img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" /> 8 bytes&nbsp;&nbsp;&nbsp;&nbsp; 0 &ndash; 2 ^ 64 -1</p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .Net Tutorial</a></span></p>
<p><strong>Group 2:- Floating Related Data Types</strong></p>
<p>*float 4 B</p>
<p>*double 8 B</p>
<p>*decimal 16 B</p>
<p><strong>Group 3:- character Related Data types</strong></p>
<p><strong>&nbsp;</strong>.char 2 B:&nbsp; char holds UNICODE&nbsp; (universal coding) characters that are required for globalization.</p>
<p><strong>.</strong>String 16 B : 4 GB</p>
<p><strong>Group 4 :- other Data type</strong></p>
<p>.bool 1 B <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;true/ false</p>
<p>.Data time <img class="alignnone size-full wp-image-7566" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/arrrow.png" alt="arrrow" width="33" height="11" />&nbsp;12 B</p>
<p>1/1/0001&nbsp; to 31/12/9999 &nbsp;</p>
<p><strong>Syntax to declare a variable </strong></p>
<p>&lt;Data type&gt;&nbsp; var&nbsp; name = value; <strong>&nbsp;</strong></p>
<p><strong>Note:-</strong> In C# .net always variable name need to be started either with alphabet, underscore, @ symbol</p>
<p><strong>Obs :-</strong></p>
<pre class="language-javascript"><code>Int a =90;

Int &ndash; a = 90;

Int @a = 90;

Int *a = 90;

Int 2a = 90;

Int if  = 90;

</code></pre>
<p><strong>Example on Data Types</strong></p>
<p>Open console Application project.</p>
<p>Write the following code in the main method.</p>
<pre class="language-javascript"><code>Int  I = 90;

Console. Write Line (i);

Float x = 4.0 f Console. Write Line (x);

Byte b1 = 10, b2 = 20;

Int c = b1 + b2;

Console. Write Line (c);

Console. Write Line ();

Execute the project :(f5)</code></pre>
<p><strong>Observations</strong></p>
<p>value types must be initialized before using</p>
<p>float X = 4.0 gives an error</p>
<p><strong>Reason</strong></p>
<p>By default 4.0&nbsp; will be treated as double;</p>
<p><strong>Solution: - </strong>&nbsp;</p>
<p>float x = 4. 0 F&nbsp; (or) float&nbsp; X = 4. 0f;</p>
<p>A number, which is post fixed with f @ F is called as float.</p>
<p>A number, which is post fixed with d @ D is called as double.</p>
<p>A number, which is postfixed with m@ M is called decimal.</p>
<p>Byte c = b1 + b2, gives an error + operator returns the result in the format of int.</p>2c:T1b3c,<h2><span style="font-size: 14pt; color: #e67e23;">Create an MVC application</span></h2>
<p>Go to visual studio.net</p>
<p><img class="alignnone size-full wp-image-5846" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/310.png" alt="3" width="13" height="48" /></p>
<p>Click on file</p>
<p><img class="alignnone size-full wp-image-5846" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/310.png" alt="3" width="13" height="48" /></p>
<p>Click on new</p>
<p><img class="alignnone size-full wp-image-5846" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/310.png" alt="3" width="13" height="48" /></p>
<p>Click on project</p>
<p><img class="alignnone size-full wp-image-5846" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/310.png" alt="3" width="13" height="48" /></p>
<p>Select visual c# from the installed template.</p>
<p><img class="alignnone size-full wp-image-5846" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/310.png" alt="3" width="13" height="48" /></p>
<p>Select ASP.net WVC web application template</p>
<p><img class="alignnone size-full wp-image-5846" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/310.png" alt="3" width="13" height="48" /></p>
<p>Type the application name (example)</p>
<p><img class="alignnone size-full wp-image-5846" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/310.png" alt="3" width="13" height="48" /> Select the location to save</p>
<p><img class="alignnone size-full wp-image-5846" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/310.png" alt="3" width="13" height="48" /></p>
<p>Click on ok.</p>
<p>&nbsp; <img class="alignnone size-full wp-image-5845" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/210.png" alt="2" width="39" height="13" />This will create an ASP.net MVC2 web application.</p>
<p><img class="alignnone size-full wp-image-5845" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/210.png" alt="2" width="39" height="13" />When we create ASP.net MVC2 web application it will create 5 folders.</p>
<ol>
<li>Content</li>
<li>Controllers</li>
<li>Models</li>
<li>Views</li>
<li>Scripts</li>
</ol>
<p><span style="color: #e67e23;"><strong> Content folder:</strong></span></p>
<p>This folder will contain all the required CSS files that is to be attached to the view pages.&nbsp;</p>
<blockquote>
<p style="box-sizing: border-box; margin: 10px 0px; font-weight: 400; font-family: quicksand, sans-serif; font-size: 15px; text-align: justify; color: #333333; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><em style="box-sizing: border-box;"><strong style="box-sizing: border-box; font-weight: bolder;">These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="box-sizing: border-box; color: #e03e2d;"><a style="box-sizing: border-box; color: #e03e2d; text-decoration: none; background-color: transparent; transition: all 0.2s linear 0s;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>"</strong></em></p>
</blockquote>
<p><span style="color: #e67e23;"><strong>Views folder:</strong></span></p>
<p>By default, the views folder will contain 3 folders as follows</p>
<ol>
<li>Account</li>
<li>Home</li>
<li>Shared</li>
</ol>
<p><img class="alignnone size-full wp-image-5845" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/210.png" alt="2" width="39" height="13" />Then every folder contains some view page.</p>
<p><img class="alignnone size-full wp-image-5845" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/210.png" alt="2" width="39" height="13" />The shared&nbsp;folder contains commonly used files like master pages, user control, etc.</p>
<p><img class="alignnone size-full wp-image-5845" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/210.png" alt="2" width="39" height="13" />Here we find only .aspx pages we do not find .cs files</p>
<p><img class="alignnone size-full wp-image-5845" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/210.png" alt="2" width="39" height="13" /> .cs files will be available in the controller&rsquo;s folders and models folder.</p>
<p><span style="color: #e67e23;"><strong>Controllers folder:</strong></span></p>
<p>This folder will contain one .cs file for every folder available in views.</p>
<p><img class="alignnone size-full wp-image-5845" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/210.png" alt="2" width="39" height="13" />In view, we have a home folder and account folder so we find two supported files in controller folders.</p>
<ol>
<li>Account controller folder.cs</li>
<li>Home controller.cs</li>
</ol>
<p><img class="alignnone size-full wp-image-5845" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/210.png" alt="2" width="39" height="13" />Every controller file will contain some method called action method with the name of the webpage.</p>
<p><img class="alignnone size-full wp-image-5845" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/210.png" alt="2" width="39" height="13" />I.e. home controller.cs we find 4 action methods</p>
<p>Change password ()</p>
<p>Change password success ()</p>
<p>Logon ()</p>
<p>Register ()</p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="net-tutorials" target="_blank" rel="noopener">Check Out .NET Tutorial</a></span></p>
<p><span style="color: #e67e23;"><strong>Models folder:</strong></span></p>
<p><img class="alignnone size-full wp-image-5845" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/210.png" alt="2" width="39" height="13" />This folder will contain one super file one each folder available in views</p>
<p><img class="alignnone size-full wp-image-5845" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2014/12/210.png" alt="2" width="39" height="13" />In case the view contains the data from the database &nbsp;</p>
<p><span style="color: #e67e23;"><strong> Scripts folder: </strong></span></p>
<p>It will contain all javascript and journey files that contain the code related to validation.</p>
<p>&nbsp;</p>
<div class="tags">&nbsp;</div>2d:T7d05,<p>&nbsp;</p>
<h2 style="text-align: justify;"><span style="font-size: 14pt; color: #e67e23;">.NET Tutorial Overview</span></h2>
<p style="text-align: justify;">Welcome to .NET&nbsp; Tutorials. The objective of these tutorials is to get an in-depth understanding of .NET.&nbsp;&nbsp;The tutorial starts with an overview of .NET.</p>
<p style="text-align: justify;">In addition to these tutorials, we will also cover common issues, Interview questions, and How To&rsquo;s of MongoDB.</p>
<h3><span style="font-size: 14pt;">Index</span></h3>
<ul>
<li><a href="times-control-c-net/" target="_blank" rel="noopener">Working with OOP synopsis concepts in C# .Net</a></li>
<li><a href="working-windows-programming-gui-programming-c-net/" target="_blank" rel="noopener">Working with windows programming [GUI programming] in C# .Net</a></li>
<li><a href="exception-handling-c-net/" target="_blank" rel="noopener">Exception handling in C# .Net</a></li>
<li><a href="working-assemblies-c-net/" target="_blank" rel="noopener">Working with assemblies in C# .net</a></li>
<li><a href="windows-service-mailing-concepts-c-net/" target="_blank" rel="noopener">Windows Service with Mailing concepts in C# .net</a></li>
<li><a href="admin-deployment-c-net/" target="_blank" rel="noopener">Admin, DEPLOYMENT in C# .Net</a></li>
<li><a href="working-distributed-programming-c-net/" target="_blank" rel="noopener">Working with distributed programming in C# .net</a></li>
<li><a href="ado-net/" target="_blank" rel="noopener">ADO.NET</a></li>
<li><a href="working-windows-service-c-net/" target="_blank" rel="noopener">Working with Windows Service in C# .net</a></li>
<li><a href="oledb-connection-command-class-c-net/" target="_blank" rel="noopener">&nbsp;OLEDB connection &amp; command class in C# .net</a></li>
<li><a href="key-related-events-c-net/" target="_blank" rel="noopener">Key Related Events in C# .Net</a></li>
<li><a href="working-data-set-c-net/" target="_blank" rel="noopener">Working With DATA SET in C# .net</a></li>
<li><a href="c-net-3-5-features/" target="_blank" rel="noopener">C# .NET 3.5 Features</a></li>
<li><a href="project-class-c-net/" target="_blank" rel="noopener">Project Class in C# .Net</a></li>
<li><a href="multi-threading-c-net/" target="_blank" rel="noopener">Multi Threading in C# .Net</a></li>
<li><a href="wcf-windows-communication-foundation-vb-net/" target="_blank" rel="noopener">WCF [Windows Communication Foundation] in vb.net</a></li>
<li><a href="challenges-microsoft-net/" target="_blank" rel="noopener">Challenges of Microsoft .net</a></li>
</ul>
<h2><span style="font-size: 14pt; color: #e67e23;">Introduction to .NET</span></h2>
<p style="text-align: justify;">.NET is both a business strategy from Microsoft and its collection of programming support for what are known as Web services, the ability to use the Web rather than your own computer for various services. Microsoft's goal is to provide individual and business users with a seamlessly interoperable and Web-enabled interface for applications and computing devices and to make computing activities increasingly Web browser-oriented. The .NET platform includes servers; building-block services, such as Web-based data storage; and device software. It also includes Passport, Microsoft's fill-in-the-form-only-once identity verification service.</p>
<blockquote>
<p style="text-align: justify;"><em><strong>These core tutorials will help you to learn the fundamentals of .NET. For an in-depth understanding and practical experience, explore Online "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="net-training" target="_blank" rel="noopener">.NET Training</a></span>"</strong></em></p>
</blockquote>
<p style="text-align: justify;">The Microsoft .NET initiative is a very wide initiative and it spans multiple Microsoft Products ranging from the Windows OS to the Developer Tools to the Enterprise Servers. The definition of .NET differs from context to context, and it becomes very difficult for you to interpret the .NET strategy. This section aims at demystifying the various terminologies behind .NET from a developer&rsquo;s perspective. It will also highlight the need for using this new .NET Platform in your applications and how .NET improves over its previous technologies.</p>
<h3><span style="color: #e67e23; font-size: 12pt;">Understanding the Existing Development Scenario</span></h3>
<p class="p135 ft14" style="text-align: justify;">Windows DNA is a concept for building distributed applications using the Microsoft Windows operating system and related software products.</p>
<p class="p136 ft14" style="text-align: justify;">First, we will understand the 2- tier, 3- tier, and then move on to N- tier Windows DNA.</p>
<p style="text-align: justify;"><img class=" wp-image-21309 aligncenter" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2016/06/Capture.1368.png" alt="Capture.1368" width="651" height="296" /></p>
<p style="text-align: justify;">Through the appearance of Local-Area-Networks, PCs came out of their isolation, and were soon not only being connected mutually but also to servers. Client/Server- computing was born. <span class="ft36">A </span><span class="ft36">two-tiered</span><span class="ft36"> application is an application whose functionality can only be segmented into two logical tiers, presentation services, and data services. </span>The presentation services of a two-tiered application are responsible for gathering information from the user, interacting with the data services to perform the application's business operations, and presenting the results of those operations to the user. The <span class="ft36">Presentation services </span>are also called the presentation layer because it presents information to the user. Things you might find in a <span class="ft36">presentation layer </span>include a Web browser, a terminal, a custom-designed GUI, or even a character-based user interface<span class="ft42">. The client-Server</span>&nbsp;architecture was a major buzzword in the early '90s, taking initially dumb terminal applications and giving them a fancy windows-like front end, using PCs with terminal emulators which presented pretty GUIs (Graphical user interface) or later Visual Basic, etc front-ends. A web browser talking to a web server is an example of a client talking to a server. Here there is presentation logic (presentation tier) happening at the client, and data/file access (data access tier) and logic happening at the server. One reason why the the2-tier model is so widespread is because of the quality of the tools and middleware that has been most commonly used since the &rsquo;90s: Remote-SQL, ODBC, relatively inexpensive, and well-integrated PC-tools (like Visual Basic, Power-Builder, MS Access,4-GL-Tools by the DBMS manufactures). In comparison, the server-side uses relatively expensive tools. In addition, the PC-based tools show good Rapid-Application-Development (RAD) qualities i.e. simpler applications can be produced in a comparatively short time. The 2-tier model is the logical consequence of RAD-tools popularity.</p>
<p style="text-align: justify;">Tier: Client Server</p>
<p style="text-align: justify;"><img class=" wp-image-21310 aligncenter" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2016/06/Capture.1369.png" alt="Capture.1369" width="657" height="432" /></p>
<p style="text-align: justify;">In a three-tiered application, the presentation services are responsible for gathering information from the user, sending the user information to the business services for processing, receiving the results of the business services processing, and presenting those results to the user. <span class="ft14">The most popular architecture on the web currently, mostly taking the form of web browser processing client side presentation in the form of HTML/DHTML, etc, the webserver using some scripting language (ASP) and the database server (SQL Server for example) serving up the data.</span></p>
<div id="page_17" style="text-align: justify;">
<p class="p137 ft38">The basic functionalities of 3 &ndash; Tier or N-Tier follows are</p>
<p class="p161 ft14"><strong>The presentation services tier is responsible for:</strong></p>
<p class="p161 ft14" style="padding-left: 30px;"><span class="ft47">-Gathering information from the user</span></p>
<p class="p161 ft14" style="padding-left: 30px;"><span class="ft47">-Sending the user information to the business services for processing</span></p>
<p class="p161 ft14" style="padding-left: 30px;"><span class="ft47">-Receiving the results of the business services processing</span></p>
<p class="p161 ft14" style="padding-left: 30px;"><span class="ft47">-Presenting those results to the user</span></p>
</div>
<div id="page_18" style="text-align: justify;">
<div id="id_1">
<p class="p15 ft14"><strong>The business services tier is responsible for:</strong></p>
<p class="p15 ft14" style="padding-left: 30px;"><span class="ft47">-Receiving input from the presentation tier.</span></p>
<p class="p15 ft14" style="padding-left: 30px;"><span class="ft47">-Interacting with data services to perform business operations.</span></p>
<p class="p15 ft14" style="padding-left: 30px;"><span class="ft47">-Sending the processed results to the presentation tier.</span></p>
<p class="p165 ft14">The data services tier is responsible for the:</p>
<p class="p166 ft14" style="padding-left: 30px;"><span class="ft47">-Storage of data.</span></p>
<p class="p18 ft14" style="padding-left: 30px;"><span class="ft47">-Retrieval of data.</span></p>
<p class="p18 ft14" style="padding-left: 30px;"><span class="ft47">-Maintenance of data.</span></p>
<p class="p18 ft14" style="padding-left: 30px;"><span class="ft47">-Integrity of data.</span></p>
<p class="p167 ft14">In Windows DNA applications commonly implement their business logic using one or more of three implementation options.</p>
<p class="p167 ft14" style="padding-left: 30px;"><span class="ft47">-Asp Pages</span></p>
<p class="p167 ft14" style="padding-left: 30px;"><span class="ft47">-COM components</span></p>
<p class="p167 ft14" style="padding-left: 30px;"><span class="ft47">-Stored procedures running in the DBMS</span></p>
<p class="p168 ft14">Writing much business logic in ASP pages is a bad idea. Since simple languages are used, such as Microsoft Visual Basic Script, and the code is interpreted each time it is executed, which hurts the performance. Code in ASP pages is also hard to maintain, largely because business logic is commonly intermixed with presentation code that creates the user interface.</p>
<p class="p169 ft14">One recommended approach for writing middle-tier business logic is to implement that logic as COM objects. This approach is a bit more complex than writing a pure ASP application. Wrapping business logic in COM objects also cleanly separates this code from the presentation code contained in ASP pages, making the application easier to maintain.</p>
<p class="p169 ft14">The Third option for writing business logic is to create some of that code as stored procedures running in the database management system (DBMS). Although a primary reason for using stored procedures is to isolate the details of database schema from business logic to simplify code management and security, having code in such close proximity to data can also help optimize performance.</p>
<h2><span style="font-size: 14pt; color: #e67e23;">Structure of a .NET Application</span></h2>
<p class="p218 ft60">DLL Hell</p>
<p class="p331 ft8">DLLs gave developers the ability to create function libraries and programs that could be shared with more than one application. Windows itself was based on DLLs. While the advantages of shared code modules expanded developer opportunities, it also&nbsp;introduced the problem of updates, revisions, and usage. If one program relied on a specific version of a DLL, and another program upgraded that same DLL, the first program quite often stopped working.</p>
<p class="p332 ft8">Microsoft added to the problem with upgrades of some system DLLs, like comctl.dll, the library used to get file, font, color and printing dialog boxes. If things weren't bad enough with version clashes, if you wanted to uninstall an application, you could easily delete a DLL that was still being used by another program.</p>
<p class="p332 ft8">Recognizing the problem, Microsoft incorporated the ability to track usage of DLLs with the Registry starting formally with Windows 95, and allowed only one version of a DLL to run in memory at a time. Adding yet another complication, when a new application was installed that used an existing DLL, it would increment a usage counter. On uninstall, the counter would be decremented and if no application was using the DLL, it could be deleted.</p>
<p class="p333 ft8">That was, in theory. Over the history of Windows, the method of tracking of DLL usage was changed by Microsoft several times, as well as the problem of rogue installations that didn't play by the rules--the result was called "DLL HELL", and the user was the victim.</p>
<p class="p244 ft8">Solving DLL hell is one thing that the .NET Framework and the CLR targeted. Under the .NET Framework, you can now have multiple versions of a DLL running concurrently. This allows developers to ship a version that works with their program and not worry about stepping on another program. The way .NET does this is to discontinue using the registry to tie DLLs to applications and by introducing the concept of an assembly.</p>
<p class="p334 ft8">On the .NET Platform, if you want to install an application in the client's place all you have to do is use <span class="ft60">XCopy </span>which copies all the necessary program files to a directory on the client&rsquo;s computer. And while uninstalling all you have to do is just delete the directory containing the application and your application is uninstalled.</p>
<div id="page_38">
<h3><span style="color: #e67e23; font-size: 14pt;">Metadata</span></h3>
<p class="p335 ft8">An Assembly is a logical DLL and consists of one or more scripts, DLLs, or executables, and a manifest (a collection of metadata in XML format describing how assembly elements relate). Metadata stored within the Assembly is Microsoft's solution to the registry problem. On the .NET Platform programs are compiled into</p>
<p class="p249 ft8">.NET PE (Portable Executable) files. The header section of every .NET PE file contains a special new section for Metadata (This means Metadata for every PE file is contained within the PE file itself thus abolishing the need for any separate registry entries). Metadata is nothing but a description of every namespace, class, method, property, etc. contained within the PE file. Through Metadata you can discover all the classes and their members contained within the PE file.</p>
<p class="p317 ft8">Metadata describes every type and member defined in your code in a Multilanguage form. Metadata stores the following information:</p>
<p class="p18 ft8"><strong><span class="ft52">Description of the assembly</span></strong></p>
<p class="p18 ft8" style="padding-left: 30px;">-Identity (name, version, culture, public key).<span class="ft31">o </span>The types that are exported.</p>
<p class="p18 ft8" style="padding-left: 30px;">-Other assemblies that this assembly depends on.</p>
<p class="p18 ft8" style="padding-left: 30px;">-Security permissions needed to run</p>
<p class="p328 ft8"><strong><span class="ft52">Description of types</span></strong></p>
<p class="p328 ft8"><span class="ft31">&nbsp;</span>Name, visibility, base class, and interfaces implemented.</p>
<p class="p328 ft8"><span class="ft31">&nbsp;</span>Members (methods, fields, properties, events, nested types)</p>
<p class="p328 ft8"><span class="ft18">&bull;</span><span class="ft52">Attributes</span></p>
<p class="p328 ft8">Additional descriptive elements that modify types and members</p>
<p class="p14 ft76"><strong>Advantages of Metadata:</strong></p>
<p class="p137 ft8">Now let us see the advantages of Metadata:</p>
<p class="p137 ft60"><strong>Self-describing files:</strong></p>
<p class="p337 ft8">CLR modules and assemblies are self-describing. The module's metadata contains everything needed to interact with another module. Metadata automatically provides the functionality of Interface Definition Language (IDL) in COM, allowing you to use one file for both definition and implementation. Runtime modules and assemblies do not even require registration with the operating system. As a result, the descriptions used by the runtime always reflect the actual code in your compiled file, which increases application reliability.</p>
<p class="p14 ft60"><strong>Language Interoperability and easier component-based design:</strong></p>
<p class="p338 ft8">Metadata provides all the information required about compiled code for you to inherit a class from a PE file written in a different language. You can create an instance of any class written in any managed language (any language that targets the Common Language Runtime) without worrying about explicit marshaling or using custom interoperability code.</p>
<p class="p14 ft60">Attributes:</p>
<p class="p264 ft8">The .NET Framework allows you to declare specific kinds of metadata, called attributes, in your compiled file. Attributes can be found throughout the .NET Framework and are used to control in more detail how your program behaves at run time. Additionally, you can emit your own custom metadata into .NET Framework files through user-defined custom attributes.</p>
<p class="p161 ft51"><strong>Assembly</strong></p>
<p class="p339 ft8">Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly provides the common language runtime with the information it needs to be aware of type implementations. To the runtime, a type does not exist outside the context of an assembly.</p>
<p class="p241 ft8">An assembly does the following functions:</p>
<p class="p241 ft8" style="padding-left: 30px;"><span class="ft52">-It contains the code that the runtime executes.</span></p>
<p class="p241 ft8" style="padding-left: 30px;"><span class="ft52">-It forms a security boundary. An assembly is a unit at which permissions are requested and granted.</span></p>
<p class="p341 ft8" style="padding-left: 30px;"><span class="ft52">-It forms a type boundary. Every type&rsquo;s identity includes the name of the assembly at which it resides.</span></p>
<p class="p341 ft8" style="padding-left: 30px;"><span class="ft52">-It forms a reference scope boundary. The assembly manifest contains assembly metadata that is used for resolving types and satisfying resource requests. It specifies the types and resources that are exposed outside the assembly.</span></p>
<p class="p341 ft8" style="padding-left: 30px;"><span class="ft52">-It forms a version boundary. The assembly is the smallest versionable unit in the common language runtime; all types and resources in the same assembly are versioned as a unit.</span></p>
<p class="p341 ft8" style="padding-left: 30px;"><span class="ft52">-It forms a deployment unit. When an application starts, only the assemblies the application initially calls must be present. Other assemblies, such as localization resources or assemblies containing utility classes, can be retrieved on demand. This allows applications to be kept simple and thin when first downloaded.</span></p>
<p class="p341 ft8" style="padding-left: 30px;"><span class="ft52">-It is a unit where </span>side-by-side execution is supported.</p>
<p class="p14 ft76"><strong>Contents of an Assembly</strong></p>
<p class="p14 ft76" style="padding-left: 30px;"><span class="ft52">-Assembly Manifest</span></p>
<p class="p14 ft76" style="padding-left: 30px;"><span class="ft52">-Assembly Name</span></p>
<p class="p14 ft76" style="padding-left: 30px;"><span class="ft52">-Version Information</span></p>
<p class="p14 ft76" style="padding-left: 30px;"><span class="ft52">-Types</span></p>
<p class="p14 ft76" style="padding-left: 30px;"><span class="ft52">-Locale</span></p>
<p class="p14 ft76" style="padding-left: 30px;"><span class="ft52">-Cryptographic Hash</span></p>
<p class="p14 ft76" style="padding-left: 30px;"><span class="ft52">-Security Permissions</span></p>
<p class="p23 ft76"><strong>Assembly Manifest</strong></p>
<p class="p345 ft8">Every assembly, whether static or dynamic, contains a collection of data that describes how the elements in the assembly relate to each other. The assembly manifest contains this assembly metadata. An assembly manifest contains the following details:</p>
<p class="p345 ft8"><span class="ft52">Identity. An assembly's identity consists of three parts: a name, a version number, and an optional culture.</span></p>
<p class="p345 ft8"><span class="ft52">File list. A manifest includes a list of all files that make up the assembly.</span></p>
<p class="p345 ft8"><span class="ft52">Referenced assemblies. Dependencies between assemblies are stored in the calling assembly's manifest. The dependency information includes a version number, which is used at run time to ensure that the correct version of the dependency is loaded.</span></p>
<p class="p348 ft8"><span class="ft52">Exported types and resources. The visibility options available to types and resources include "visible only within my assembly" and "visible to callers outside my assembly."</span></p>
<p class="p349 ft8"><span class="ft52">Permission requests. The permission requests for an assembly are grouped into three sets: 1) those required for the assembly to run, 2) those that are desired but the assembly will still have some functionality even if they aren't granted, and 3) those that the author never wants the assembly to be granted.</span></p>
<p class="p332 ft8">In general, if you have an application comprising of an assembly named Assem.exe and a module named Mod.dll. Then the assembly manifest stored within the PE Assem.exe will not only contain metadata about the classes, methods, etc. contained within the Assem.exe file but it will also contain references to the classes, methods etc, exported in the Mod.dll file. While the module Mod.dll will only contain metadata describing itself.</p>
<p class="p332 ft8">The following diagram shows the different ways the manifest can be stored:</p>
<p class="p332 ft8">&nbsp;</p>
</div>
</div>
</div>
<p style="text-align: justify;"><img class=" wp-image-21311 aligncenter" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2016/06/Capture.1370.png" alt="Capture.1370" width="671" height="270" /></p>
<p class="p350 ft8" style="text-align: justify;">For an assembly with one associated file, the manifest is incorporated into the PE file to form a single-file assembly. You can create a multifile assembly with a standalone manifest file or with the manifest incorporated into one of the PE files in the assembly.</p>
<p class="p14 ft8" style="text-align: justify;">The Assembly Manifest performs the following functions:</p>
<p class="p14 ft8" style="padding-left: 30px; text-align: justify;"><span class="ft52">-Enumerates the files that make up the assembly.</span></p>
<p class="p14 ft8" style="padding-left: 30px; text-align: justify;"><span class="ft52">-Governs how references to the assembly's types and resources map to the files that contain their declarations and implementations.</span></p>
<p class="p14 ft8" style="padding-left: 30px; text-align: justify;"><span class="ft52">-Enumerates other assemblies on which the assembly depends.</span></p>
<p class="p14 ft8" style="padding-left: 30px; text-align: justify;"><span class="ft52">-Provides a level of indirection between consumers of the assembly and the assembly's implementation details.</span></p>
<p class="p14 ft8" style="padding-left: 30px; text-align: justify;"><span class="ft52">-Renders the assembly </span>self-describing.</p>
<h3><span style="color: #e67e23; font-size: 14pt;">Modules</span></h3>
<p class="p282 ft8" style="text-align: justify;">Modules are also PE files (always with the extension .netmodule) which contain Metadata but they do not contain the assembly manifest. And hence in order to use a module, you have to create a PE file with the necessary assembly manifest.</p>
<p class="p354 ft8" style="text-align: justify;">In C#, you can create a module using the /t:module compiler switch.</p>
<p class="p22 ft77" style="text-align: justify;">There are a few ways to incorporate a module into an Assembly. You can either use /addmodule switch to add module/s to your assembly, or you can directly use the /t:exe, /t:winexe and /t:library switches to convert the module into an assembly.</p>
<p class="p129 ft76" style="text-align: justify;">Difference between Module and Assembly</p>
<p class="p22 ft8" style="text-align: justify;">A module is an .exe or .dll file. An assembly is a set of one or more modules that together make up an application. If the application is fully contained in a .exe file,fine&mdash;that's a one-module assembly. If the .exe is always deployed with two .dll files and one thinks of all three files as comprising an inseparable unit, then the three modules together form an assembly, but none of them does so by itself. If the product is a class library that exists in a .dll file, then that single .dll file is an assembly. To put it in Microsoft's terms, the assembly is the unit of deployment in</p>
<p class="p354 ft8" style="text-align: justify;">.NET.</p>
<p class="p243 ft8" style="text-align: justify;">An assembly is more than just an abstract way to think about sets of modules. When an assembly is deployed, one (and only one) of the modules in the assembly must contain the assembly manifest, which contains information about the assembly as a whole, including the list of modules contained in the assembly, the version of the assembly, its culture, etc.</p>
<div id="page_42">
<h3><span style="color: #e67e23; font-size: 14pt;">Microsoft Intermediate Language (MSIL)</span></h3>
<p class="p355 ft8" style="text-align: justify;">When compiling to managed code, the compiler translates your source code into Microsoft intermediate language (MSIL), which is a CPU-independent set of instructions that can be efficiently converted to native code. MSIL includes instructions for loading, storing, initializing, and calling methods on objects, as well as for instructions for arithmetic and logical operations, control flow, direct memory access, exception handling, and other operations. Before code can be executed, MSIL must be converted to CPU-specific code by a just-in-time (JIT) compiler. Because the runtime supplies one or more JIT compilers, for each computer architecture it supports, the same set of MSIL can be JIT-compiled and executed on any supported architecture.</p>
<p class="p356 ft8" style="text-align: justify;">When a compiler produces MSIL, it also produces metadata. The MSIL and metadata are contained in a portable executable (PE file) that is based on and extends the published Microsoft PE and Common Object File Format (COFF) used historically for executable content. This file format, which accommodates MSIL or native code as well as metadata, enables the operating system to recognize common language runtime images. The presence of metadata in the file along with the MSIL enables your code to describe itself, which means that there is no need for type libraries or Interface Definition Language (IDL). The runtime locates and extracts the metadata from the file as needed during execution.</p>
<h3><span style="color: #e67e23; font-size: 14pt;">NET Debugging</span></h3>
<p class="p14 ft14" style="text-align: justify;">Debugging is the most important feature of any programming language and Visual Studio</p>
<p class="p422 ft14" style="text-align: justify;">.NET IDE provides this feature in an effective manner (but you can still do a pretty good job with the .NET SDK alone). The application source code goes through two distinct steps before a user can run it. First, the source code is compiled to Microsoft Intermediate Language (MSIL) code using a .NET compiler. Then, at runtime, the MSIL code is compiled to native code. When we debug a .NET application, this process works in reverse. The debugger first maps the native code to the MSIL code. The MSIL code is then mapped back to the source code using the programmer's database (PDB) file. In order to debug an application, these two mappings must be available to the .NET runtime environment.</p>
<p class="p449 ft14" style="text-align: justify;">To accomplish the mapping between the source code and the MSIL, use the/debug:pdbonly compiler switch to create the PDB file (Note: When building ASP.NET applications, specify the compilation setting debug="true" in the application&rsquo;s Web.config file). The second mapping between the MSIL code and native code is accomplished by setting the JITTracking attribute in our assembly. By specifying the /debug compiler switch, the PDB file is created and the JITTracking attribute is enabled. When using this compiler switch, a debugger can be attached to an application loaded outside of the debugger.</p>
<p class="p450 ft14" style="text-align: justify;">Once the required mappings exist, there are several means by which to debug our applications. We can use the integrated debugger within Visual Studio .NET, or, if we prefer, we can use DbgClr, a GUI-based debugger. There is also a command-line debugger, CorDBG that is included in the .NET Framework SDK.</p>
<h3 style="text-align: justify;"><span style="font-size: 12pt;"><strong>Advantages</strong></span></h3>
<p style="padding-left: 30px; text-align: justify;">-Newest technology from MS for app development</p>
<p style="padding-left: 30px; text-align: justify;">-Supports fully managed, but also a hybrid mix of managed and native through P/Invoke and Managed/Unmanaged C++, which means that its easier to write code that doesn't have lots of memory leaks</p>
<p style="padding-left: 30px; text-align: justify;">-WPF and WCF are the new way of building UI's and Communicating between processes and systems</p>
<p style="padding-left: 30px; text-align: justify;">-Fully integrated IDE available</p>
<p style="padding-left: 30px; text-align: justify;">-Linux and Mac support through 3rd parties (Mono)</p>
<p style="padding-left: 30px; text-align: justify;">-Many languages available, both dynamic (IronPython and IronRuby) and static (C#, VB.NET, C++), both object-oriented (C#, VB.NET, C++) and functional (F#)</p>
<h3 style="text-align: justify;"><span style="font-size: 12pt;"><strong>Disadvantages</strong></span></h3>
<p style="text-align: justify;">- Multi-platform support isn't available from MS and isn't available straight after installing Visual Studio - Managed code can be slower than native code</p>
<h3><span style="color: #e67e23; font-size: 12pt;">Conclusion:</span></h3>
<p class="p450 ft14" style="text-align: justify;">Application domains offer all the benefits of process isolation but are much more efficient than processes. The Microsoft .NET runtime host automatically manages the loading/unloading of the assemblies into the appropriate application domains. However, Microsoft .NET Framework class library also offers application developers with various classes that can be used to programmatically create application domains and ensure that the various applications can be isolated from each other. Also, inter-application communication is not that expensive because context switching is not involved in application communication using application domains in Microsoft .NET.</p>
</div>2:["$","$Lb",null,{"data":{"trending":[{"id":1414,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$c","title":"Working With DATA SET in C# .net","url_title":"working-data-set-c-net","image_url":"","meta_title":"Working With DATA SET in C# .net | Tekslate","meta_desc":"Working With DATA SET in C# .net - here we can learn about data set in  C#.net. Learn .Net from Experts!","views":409,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:22:06.000Z","updated_at":"2020-10-22T12:04:37.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1409,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$d","title":"Windows Service with Mailing concepts in C# .net","url_title":"windows-service-mailing-concepts-c-net","image_url":"","meta_title":"Windows Service with Mailing concepts in C# .net","meta_desc":"Windows Service with Mailing concepts in C# .net - in this tutorial learn about windows service.","views":193,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T12:10:42.000Z","updated_at":"2020-10-22T12:00:33.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1993,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$e","title":".NET Resume","url_title":"net-resume","image_url":"","meta_title":". NET sample Resume | Freshers and Experienced | Tekslate","meta_desc":"We here share a .NET Fresher and Experienced Sample Resume for Job Interview and also discuss a few Resume Writing Tips.","views":0,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2017-09-20T03:53:55.000Z","updated_at":"2020-10-16T16:46:35.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1559,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$f","title":"Introduction to ADD.NET [Active Data object for .NET]","url_title":"introduction-add-net-active-data-object-net","image_url":"","meta_title":"Introduction to ADD.NET [Active Data object for .NET] | Tekslate","meta_desc":"Introduction to ADD.NET [Active Data object for .NET] - in this tutorial we will learn basics of ADD.NET in detail.","views":582,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T10:49:03.000Z","updated_at":"2020-10-16T16:33:09.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1510,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$10","title":"Project Class in C# .Net","url_title":"project-class-c-net","image_url":"","meta_title":"Project Class in C# .Net | .Net Tutorial online","meta_desc":"Project Class in C# .Net - in this tutorial we will learn about project class in .Net. Learn .Net from Industry Experts!","views":504,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:18:01.000Z","updated_at":"2020-10-16T15:58:17.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1509,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$11","title":"Multi Threading in C# .Net","url_title":"multi-threading-c-net","image_url":"","meta_title":"Multi Threading in C# .Net | Tekslate","meta_desc":"Multi-Threading in C# .Net - in this tutorial we can learn about multi-threading and single threading in  .Net . Learn .Net from Experts!","views":673,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:17:54.000Z","updated_at":"2020-10-16T15:46:42.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1508,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$12","title":"Working with C# .Net","url_title":"working-c-net","image_url":"","meta_title":"Working with C# .Net | Tekslate  .Net Study Guide Online","meta_desc":"Working with C# .Net - in this tutorial learn about working with c# .Net in detail like auto-implemented properties, object initializes etc.","views":921,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:21:13.000Z","updated_at":"2020-10-16T15:26:44.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1507,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$13","title":"C# .NET 3.5 Features","url_title":"c-net-3-5-features","image_url":"","meta_title":"C# .NET 3.5 Features | .Net Tutorial Online | Tekslate","meta_desc":"C# .NET 3.5 Features -  learn more about  c# .NET 3.5 features and deeply about .Net. Learn .Net from Experts!","views":617,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:22:01.000Z","updated_at":"2020-10-16T12:17:22.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1506,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$14","title":"Admin, DEPLOYMENT in C# .Net","url_title":"admin-deployment-c-net","image_url":"","meta_title":"Admin, DEPLOYMENT in C# .Net | Tekslate","meta_desc":"Admin, DEPLOYMENT in C# .Net - here  we can learn about admin and deployment in c# in detail with ","views":688,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:24:33.000Z","updated_at":"2020-10-16T12:03:57.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1504,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$15","title":"Working with distributed programming in C# .net","url_title":"working-distributed-programming-c-net","image_url":"","meta_title":"Working with distributed programming in C# .net | Tekslate","meta_desc":"Working with distributed programming in C# .net - in this tutorial learn about distributed programming in .net. Learn .Net from Experts!","views":371,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:24:14.000Z","updated_at":"2020-10-16T11:53:16.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1412,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":"","table_of_content":"","description":"$16","title":"OLEDB Connection and Command Class in C# .net","url_title":"oledb-connection-command-class-c-net","image_url":"","meta_title":" OLEDB connection and command class in C# .net","meta_desc":" OLEDB connection and command class in C# .net - here we can learn about OLED connection and command class in .Net in detail with examples.","views":1936,"rating":4.1,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:23:03.000Z","updated_at":"2020-10-16T11:01:28.000Z","status":1,"video_schema_name":"","video_schema_upload_date":"","video_schema_description":"","faq_schema_q1":"","faq_schema_a1":"","faq_schema_q2":"","faq_schema_a2":"","faq_schema_q3":"","faq_schema_a3":"","like_counter":1},{"id":1410,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$17","title":"Working with Delegates in C# .net","url_title":"working-delegates-c-net","image_url":"","meta_title":"Working with Delegates in C# .net | Tekslate","meta_desc":"Working with Delegates in C# .net - here we will learn about delegates in c#. Net in detail with examples. Learn .Net from Experts!","views":291,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:22:49.000Z","updated_at":"2020-10-16T10:48:59.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1411,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$18","title":"ADO.NET","url_title":"ado-net","image_url":"","meta_title":"ADO.NET | .Net Study Guide | Tekslate","meta_desc":"ADO.NET - in this tutorial learn about ADO.NET in detail like managed, unmanaged connections in database with examples.","views":778,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:23:21.000Z","updated_at":"2020-10-16T10:47:03.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":184,"blog_category":1,"blog_type":2,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$19","title":".NET Interview Questions and Answers","url_title":"net-interview-questions-answers","image_url":"","meta_title":"TOP  Advanced .Net Interview Questions and Answers - Tekslate!","meta_desc":"Looking for Advanced .Net Interview Questions with Answers? Here we have compiled set of questions from the students who have attended interviews in Fortune 500 companies","views":0,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2016-02-22T07:00:16.000Z","updated_at":"2020-10-16T09:53:43.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1408,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$1a","title":"Working with Windows Service in C# .net","url_title":"working-windows-service-c-net","image_url":"","meta_title":"Working with Windows Service in C# .net | Tekslate","meta_desc":"Working with Windows Service in C# .net - in this tutorial learn about working with windows in .Net. Learn .Net from Experts!","views":522,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:23:07.000Z","updated_at":"2020-10-15T18:04:07.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1407,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$1b","title":"Working with assemblies in C# .net","url_title":"working-assemblies-c-net","image_url":"","meta_title":"Working with assemblies in C# .net | Tekslate","meta_desc":"Working with assemblies in C# .net - in this tutorial learn about assemblies in .Net in detail. Learn .Net from Experts!","views":112,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T12:10:47.000Z","updated_at":"2020-10-15T17:14:35.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1405,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$1c","title":"Exception handling in C# .Net","url_title":"exception-handling-c-net","image_url":"","meta_title":"Exception handling in C# .Net  | ..Net Study Guide | Tekslate","meta_desc":"Exception handling in C# .Net - in this tutorial we will learn about exception handling in c# .Net. Learn .Net from Experts!","views":775,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T12:10:56.000Z","updated_at":"2020-10-15T16:43:47.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1404,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$1d","title":"Key Related Events  in C# .Net","url_title":"key-related-events-c-net","image_url":"","meta_title":"Key Related Events  in C# .Net | Tekslate .Net Tutorial Online","meta_desc":"Key Related Events in C# .Net - in this tutorial we will learn about key related events in detail with examples. Learn  .Net from Experts!","views":165,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T11:22:56.000Z","updated_at":"2020-10-15T16:16:17.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1403,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$1e","title":"Events in C# .Net","url_title":"working-events-c-sharp-net-with-eaxmples","image_url":"","meta_title":"Events in C# .Net | TekSlate C# Tutorials Online","meta_desc":"Events in C# .Net - In C# Tutorials you will learn about Events in C# .Net, Mouse Related Events,Focus Related Events,Drag Related Events.","views":314,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2015-01-02T05:46:23.000Z","updated_at":"2020-10-15T15:54:44.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1402,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$1f","title":"Working with windows  programming [GUI programming] in C# .Net","url_title":"working-windows-programming-gui-programming-c-net","image_url":"","meta_title":"Working with windows  programming [GUI programming] in C# .Net","meta_desc":"Working with windows programming [GUI programming] in C# .Net -  here we can learn about windows programming in c# .net with examples.","views":765,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T12:11:02.000Z","updated_at":"2020-10-15T15:21:43.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":2},{"id":1406,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$20","title":"Working with Stream Reader and Stream Writer class in C# .net","url_title":"working-stream-reader-stream-writer-class-c-net","image_url":"","meta_title":"Working with Stream Reader and Stream Writer class in C# .net","meta_desc":"Working with Stream Reader and Stream Writer class in C# .net - we will learn about stream reader and stream writer in .Net. Learn .Net from Experts!","views":309,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2018-01-09T12:10:52.000Z","updated_at":"2020-10-15T13:57:20.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1401,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$21","title":"Abstract Classes and Interface in C# .Net","url_title":"abstract-classes-interface-c-sharp-net-with-examples","image_url":"","meta_title":"Abstract Classes and Interface in C# .Net -Tekslate","meta_desc":"Abstract Classes and Interface in C# .Net - In C# tutorial we will learn about Abstract Classes in C# .Net, Interface in C# .Net.","views":807,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2015-01-02T05:38:58.000Z","updated_at":"2020-10-15T13:38:42.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1400,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$22","title":"Inheritance in C# .Net","url_title":"types-inheritance-c-sharp-net-with-examples","image_url":"","meta_title":"Inheritance in C# .Net | .Net Study Guide | Tekslate","meta_desc":"Inheritance in C# .Net - in this tutorial we will learn about inheritance in c# .Net with examples in detail. Learn .Net from Experts.","views":397,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2015-01-02T05:25:50.000Z","updated_at":"2020-10-15T12:54:02.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1399,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$23","title":"Debugging a Project in C# .Net","url_title":"steps-debugging-project-c-sharp-net","image_url":"","meta_title":"Debugging a Project in C# .Net | .Net Guide | Tekslate","meta_desc":"Debugging a Project in C# .Net - in this blog we will learn about debugging a project in.Net step by step.","views":689,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2015-01-02T05:22:29.000Z","updated_at":"2020-10-15T12:18:31.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1398,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$24","title":"Operator Overloading in C# .Net","url_title":"working-operator-overloading-c-sharp-net","image_url":"","meta_title":"Operator Overloading in C# .Net | .Net Guide | Tekslate","meta_desc":"Operator Overloading in C# .Net - ","views":654,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2015-01-02T05:20:49.000Z","updated_at":"2020-10-15T11:18:45.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1397,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$25","title":"Static Keyword in C# .Net","url_title":"static-keyword-c-sharp-net","image_url":"","meta_title":"Static Keyword in C# .Net | .Net Study Guide | Tekslate","meta_desc":"Static Keyword in C# - in this tutorial we will learn about static keyword in .Net with examples and can get study guide.","views":166,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2015-01-02T05:19:11.000Z","updated_at":"2020-10-14T16:51:46.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1396,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$26","title":"Constructors in C# .Net","url_title":"constructors-c-sharp-net","image_url":"","meta_title":"Constructors in C# .Net","meta_desc":"Constructors in C# .Net -  in This Tutorial learn about Constructors in c# .Net with examples.","views":356,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2015-01-02T05:11:42.000Z","updated_at":"2020-10-14T16:33:37.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1395,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$27","title":"Function Overloading in C# .Net","url_title":"function-overloading-c-sharp-net-with-exampler","image_url":"","meta_title":"Function Overloading in C# .Net | .Net Study Guide | Tekslate","meta_desc":"Function Overloading in C# .Net - in this tutorial we will learn about function overloading in .Net with examples. Learn .Net from Experts!","views":505,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2015-01-02T05:12:44.000Z","updated_at":"2020-10-14T16:23:38.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1394,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$28","title":"Instance and Local variable in C# .Net","url_title":"instance-and-local-variable-in-c-sharp-net-with-examples","image_url":"","meta_title":"Instance and Local variable in C# .Net","meta_desc":"Instance and Local variable in C# .Net - in this tutorial we will learn about instances and local variables in C# .Net in detail.","views":1020,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2015-01-02T05:08:53.000Z","updated_at":"2020-10-14T16:16:51.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1391,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$29","title":"Arrays in C# .Net","url_title":"arrays-c-net-with-examples","image_url":"","meta_title":"Arrays in C# .Net | .Net Study Guide | Tekslate","meta_desc":"Arrays in C# .Net - in this tutorial we will learn about arrays in c# .Net in detail. Learn .Net from Experts!","views":147,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2014-12-31T06:58:23.000Z","updated_at":"2020-10-14T15:11:11.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1390,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$2a","title":"Loops in C# .Net","url_title":"loops-c-net-with-examples","image_url":"","meta_title":"Loops in C# .Net | .Net Tutorials | Tekslate","meta_desc":"Loops in C# .Net - in this tutorial we will learn about loops in c# .Net with examples in detail. Learn .Net from Experts!","views":604,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2014-12-31T06:53:02.000Z","updated_at":"2020-10-14T14:49:54.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1386,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$2b","title":"C#.net Data Types","url_title":"c-net-data-type","image_url":"","meta_title":"C# .Net Data Types | .Net Study Guide | Tekslate","meta_desc":"C# .Net Data Types - in this tutorial learn about c# .net data types with examples. Learn .Net from Experts!","views":821,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2014-12-31T06:41:47.000Z","updated_at":"2020-10-13T17:08:30.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":1185,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$2c","title":"Create MVC application in .NET","url_title":"create-mvc-application-net-give-example","image_url":"","meta_title":"How to Create MVC application in .NET | Tekslate","meta_desc":"Create an MVC application in .NET - in this tutorial learn about MVC application creation in detail. Learn  .Net from Experts!","views":0,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2014-12-08T16:46:48.000Z","updated_at":"2020-10-13T16:45:34.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0},{"id":72,"blog_category":1,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$2d","title":".NET Tutorials","url_title":"net-tutorials","image_url":"","meta_title":".NET tutorials For Beginners | Online .NET From Experts","meta_desc":".NET Tutorials give you in-depth knowledge of existing developments in web services.Excel about ?Structure of .NET Application?Modules?NET Debugging and more","views":290,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"231","created_at":"2016-06-09T06:15:01.000Z","updated_at":"2020-10-13T16:08:06.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0}],"type":"blog-cat","categories":[]},"urlName":"net"}]
a:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"net"}],["$","meta","3",{"name":"description","content":"TekSlate provides all the essential resources to help you become a skilled salesforce professional. Here is the list of informative resources that include tutorials, interview questions, and other technical blogs to make it easy for you to master net."}],["$","meta","4",{"name":"application-name","content":"tekslatetutor"}],["$","meta","5",{"name":"generator","content":"tekslatetutor"}],["$","link","6",{"rel":"canonical","href":"https://tekslate.com/net"}],["$","meta","7",{"property":"og:title","content":"net"}],["$","meta","8",{"property":"og:description","content":"TekSlate provides all the essential resources to help you become a skilled salesforce professional. Here is the list of informative resources that include tutorials, interview questions, and other technical blogs to make it easy for you to master net."}],["$","meta","9",{"property":"og:url","content":"https://tekslate.com/net"}],["$","meta","10",{"property":"og:site_name","content":"tekslatetutor"}],["$","meta","11",{"property":"og:locale","content":"en_US"}],["$","meta","12",{"property":"og:image","content":"https://tekslateassets.s3.amazonaws.com/images/TekSlate_New+Colour.svg"}],["$","meta","13",{"property":"og:image:width","content":"1200"}],["$","meta","14",{"property":"og:image:height","content":"628"}],["$","meta","15",{"property":"og:type","content":"website"}],["$","meta","16",{"name":"twitter:card","content":"summary"}],["$","meta","17",{"name":"twitter:creator","content":"@tekslatetutor"}],["$","meta","18",{"name":"twitter:title","content":"net"}],["$","meta","19",{"name":"twitter:description","content":"TekSlate provides all the essential resources to help you become a skilled salesforce professional. Here is the list of informative resources that include tutorials, interview questions, and other technical blogs to make it easy for you to master net."}],["$","meta","20",{"name":"twitter:image","content":"https://tekslateassets.s3.amazonaws.com/images/TekSlate_New+Colour.svg"}],["$","link","21",{"rel":"icon","href":"https://tekslateassets.s3.amazonaws.com/images/favicon.svg"}]]
1:null
