<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-842345781938265840</id><updated>2024-08-28T06:26:46.010-07:00</updated><category term="C#"/><category term="SQL"/><category term="WPF"/><category term="WCF"/><category term="DotNet"/><category term="XML"/><title type='text'>DotNet</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-8020494600959473678</id><published>2011-11-24T23:32:00.000-08:00</published><updated>2011-11-24T23:43:16.629-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Matrix Program</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
This is a&amp;nbsp;matrix&amp;nbsp;program.Execute it and see the Matrix&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Text;&lt;br /&gt;
&lt;br /&gt;
namespace m7tr1x&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;class Program&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;static void Main(string[] args)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Console.Title = &quot;Site4Dotnet(MaHi)&quot;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Console.ForegroundColor = ConsoleColor.DarkGreen;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Console.WindowLeft = Console.WindowTop = 0;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Console.WindowHeight = Console.BufferHeight = Console.LargestWindowHeight;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Console.WindowWidth = Console.BufferWidth = Console.LargestWindowWidth;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Console.WriteLine(&quot;press any key&quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Console.ReadKey();&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Console.CursorVisible = false;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;int width, height;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;int[] y;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;int[] l;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Initialize(out width, out height, out y, out l);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;int ms;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;while (true)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;DateTime t1 = DateTime.Now;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;MatrixStep(width, height, y, l);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;ms = 10 - (int)((TimeSpan)(DateTime.Now - t1)).TotalMilliseconds;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if (ms &amp;gt; 0)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;System.Threading.Thread.Sleep(ms);&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if (Console.KeyAvailable)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;if (Console.ReadKey().Key == ConsoleKey.F5)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;Initialize(out width, out height, out y, out l);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;static bool thistime = false;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;private static void MatrixStep(int width, int height, int[] y, int[] l)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;int x;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;thistime = !thistime;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for (x = 0; x &amp;lt; width; ++x)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if (x % 11 == 10)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;if (!thistime)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;continue;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;Console.ForegroundColor = ConsoleColor.White;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;else&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;Console.ForegroundColor = ConsoleColor.DarkGreen;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;Console.SetCursorPosition(x, inBoxY(y[x] - 2 - (l[x] / 40 * 2), height));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;Console.Write(R);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;Console.ForegroundColor = ConsoleColor.Green;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Console.SetCursorPosition(x, y[x]);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Console.Write(R);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;y[x] = inBoxY(y[x] + 1, height);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Console.SetCursorPosition(x, inBoxY(y[x] - l[x], height));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Console.Write(&#39; &#39;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;private static void Initialize(out int width, out int height, out int[] y, out int[] l)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;int h1;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;int h2 = (h1 = (height = Console.WindowHeight) / 2) / 2;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;width = Console.WindowWidth - 1;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;y = new int[width];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;l = new int[width];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;int x;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Console.Clear();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for (x = 0; x &amp;lt; width; ++x)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;y[x] = r.Next(height);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;l[x] = r.Next(h2 * ((x % 11 != 10) ? 2 : 1), h1 * ((x % 11 != 10) ? 2 : 1));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;static Random r = new Random();&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;static char R&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;get&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;int t = r.Next(10);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if (t &amp;lt;= 2)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;return (char)(&#39;0&#39; + r.Next(10));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;else if (t &amp;lt;= 4)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;return (char)(&#39;a&#39; + r.Next(27));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;else if (t &amp;lt;= 6)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;return (char)(&#39;A&#39; + r.Next(27));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;else&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;return (char)(r.Next(32, 255));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;public static int inBoxY(int n, int height)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;n = n % height;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if (n &amp;lt; 0)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;return n + height;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;else&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;return n;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/8020494600959473678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/matrix-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/8020494600959473678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/8020494600959473678'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/matrix-program.html' title='Matrix Program'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-6596600324619255752</id><published>2011-11-23T23:05:00.000-08:00</published><updated>2011-11-23T23:05:40.607-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>XML Basics</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h1 id=&quot;h1.1&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 2px; border-top-color: rgb(0, 0, 102); border-top-style: double; border-top-width: 2px; color: #000066; font-family: Arial, Verdana; font-size: 1.2em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;What is XML?&lt;/h1&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;XML (eXtensible Markup Language) is a meta-language; that is, it is a language in which other languages are created. In XML, data is &quot;marked up&quot; with tags, similar to HTML tags. In fact, the latest version of HTML, called XHTML, is an XML-based language, which means that XHTML follows the syntax rules of XML.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;XML is used to store data or information. This data might be intended to be by read by people or by machines. It can be highly structured data such as data typically stored in databases or spreadsheets, or loosely structured data, such as data stored in letters or manuals.&lt;/div&gt;&lt;h1 id=&quot;h1.2&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 2px; border-top-color: rgb(0, 0, 102); border-top-style: double; border-top-width: 2px; color: #000066; font-family: Arial, Verdana; font-size: 1.2em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;XML Benefits&lt;/h1&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Initially XML received a lot of excitement, which has now died down some. This isn&#39;t because XML is not as useful, but rather because it doesn&#39;t provide the Wow! factor that other technologies, such as HTML do. When you write an HTML document, you see a nicely formatted page in a browser - instant gratification. When you write an XML document, you see an XML document - not so exciting. However, with a little more effort, you can make that XML document sing!&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;This section discusses some of the major benefits of XML.&lt;/div&gt;&lt;h2 id=&quot;h2.1&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;XML Holds Data, Nothing More&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;XML does not really do much of anything. Rather, developers can create XML-based languages that store data in a structure way. Applications can then use this data to do any number of things.&lt;/div&gt;&lt;h2 id=&quot;h2.2&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;XML Separates Structure from Formatting&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;One of the difficulties with HTML documents, word processor documents, spreadsheets, and other forms of documents is that they mix structure with formatting. This makes it difficult to manage content and design, because the two are intermingled.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;As an example, in HTML, there is a&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;lt;u&amp;gt;&lt;/span&gt;&amp;nbsp;tag used for underlining text. Very often, it is used for emphasis, but it also might be used to mark a book title. It would be very difficult to write an application that searched through such a document for book titles.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;In XML, the book titles could be placed in&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;lt;book_title&amp;gt;&lt;/span&gt;&amp;nbsp;tags and the emphasized text could be place in&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;lt;em&amp;gt;&lt;/span&gt;&amp;nbsp;tags. The XML document does not specify how the content of either tag should be displayed. Rather, the formatting is left up to an external stylesheet. Even though the book titles and emphasized text might appear the same, it would be relatively straight forward to write an application that finds all the book titles. It would simply look for text in&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;lt;book_title&amp;gt;&lt;/span&gt;&amp;nbsp;tags. It also becomes much easier to reformat a document; for example, to change all emphasized text to be italicized rather than underlined, but leave book titles underlined.&lt;/div&gt;&lt;h2 id=&quot;h2.3&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;XML Promotes Data Sharing&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Very often, applications that hold data in different structures must share data with one another. It can be very difficult for a developer to map the different data structures to each other. XML can serve as a go between. Each application&#39;s data structure is mapped to an agreed-upon XML structure. Then all the applications share data in this XML format. Each application only has to know two structures, its own and the XML structure, to be able to share data with many other applications.&lt;/div&gt;&lt;h2 id=&quot;h2.4&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;XML is Human-Readable&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;XML documents are (or can be) read by people. Perhaps this doesn&#39;t sound so exciting, but compare it to data stored in a database. It is not easy to browse through a database and read different segments of it as you would a text file. Take a look at the XML document below.&lt;/div&gt;&lt;div class=&quot;CodeSample&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0em; margin-right: 0em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;h2 class=&quot;CodeSampleLabel&quot; style=&quot;background-color: #eeeeff; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em;&quot;&gt;Code Sample: XMLBasics/Demos/Paul.xml&lt;/h2&gt;&lt;div class=&quot;bd&quot; style=&quot;background-color: #eeeeee; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;pre style=&quot;padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot;?&amp;gt;
&amp;lt;person&amp;gt;
 &amp;lt;name&amp;gt;
  &amp;lt;firstname&amp;gt;Paul&amp;lt;/firstname&amp;gt;
  &amp;lt;lastname&amp;gt;McCartney&amp;lt;/lastname&amp;gt;
 &amp;lt;/name&amp;gt;
 &amp;lt;job&amp;gt;Singer&amp;lt;/job&amp;gt;
 &amp;lt;gender&amp;gt;Male&amp;lt;/gender&amp;gt;
&amp;lt;/person&amp;gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;CodeExplanation&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Code Explanation&lt;/div&gt;&lt;blockquote style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 2em; margin-right: 2em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;It is not hard to tell from looking at this that the XML is describing a person named Paul McCartney, who is a singer and is male.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 2em; margin-right: 2em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Do people read XML documents? Programmers do (hey, we&#39;re people too!). And it is easier for us if the documents we work with are easy to read.&lt;/div&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;h2.5&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;XML is Free&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;XML doesn&#39;t cost anything to use. It can be written with a simple text editor or one of the many freely available XML authoring tools, such as XML Notepad. In addition, many web development tools, such as Dreamweaver and Visual Studio .NET have built-in XML support. There are also many free XML parsers, such as Microsoft&#39;s MSXML (downloadable from microsoft.com) and Xerces (downloadable at apache.org).&lt;/div&gt;&lt;h1 id=&quot;h1.3&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 2px; border-top-color: rgb(0, 0, 102); border-top-style: double; border-top-width: 2px; color: #000066; font-family: Arial, Verdana; font-size: 1.2em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;XML in Practice&lt;/h1&gt;&lt;h2 id=&quot;h2.6&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;Content Management&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Almost all of the leading content management systems use XML in one way or another. A typical use would be to store a company&#39;s marketing content in one or more XML documents. These XML documents could then be transformed for output on the Web, as Word documents, as PowerPoint slides, in plain text, and even in audio format. The content can also easily be shared with partners who can then output the content in their own formats.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Storing the content in XML makes it much easier to manage content for two reasons.&lt;/div&gt;&lt;ol style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Content changes, additions, and deletions are made in a central location and the changes will cascade out to all formats of presentation. There is no need to be concerned about keeping the Word documents in sync with the website, because the content itself is managed in one place and then transformed for each output medium.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Formatting changes are made in a central location. To illustrate, suppose a company had many marketing web pages, all of which were produced from XML content being transformed to HTML. The format for all of these pages could be controlled from a single XSLT and a sitewide formatting change could be made modifying that XSLT.&lt;/li&gt;
&lt;/ol&gt;&lt;h2 id=&quot;Web-Services&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;Web Services&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;XML Web services are small applications or pieces of applications that are made accessible on the Internet using open standards based on XML. Web services generally consist of three components:&lt;/div&gt;&lt;ul style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;SOAP - an XML-based protocol used to transfer Web services over the Internet.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;WSDL (Web Services Description Language) - an XML-based language for describing a Web service and how to call it.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Universal Discovery Description and Integration (UDDI) - the yellow pages of Web services. UDDI directory entries are XML documents that describe the Web services a group offers. This is how people find available Web services.&lt;/li&gt;
&lt;/ul&gt;&lt;h2 id=&quot;RDF-RSS-Feeds&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;RDF / RSS Feeds&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;RDF (Resource Description Framework) is a framework for writing XML-based languages to describe information on the Web (e.g, web pages). RSS (RDF Site Summary) is an implementation of this framework; it is a language that adheres to RDF and is used to describe web content. Website publishers can use RSS to make content available as a &quot;feed&quot;, so that web users can access some of their content without actually visiting their site. Often, RSS is used to provide summaries with links to the company&#39;s website for additional information.&lt;/div&gt;&lt;h1 id=&quot;h1.4&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 2px; border-top-color: rgb(0, 0, 102); border-top-style: double; border-top-width: 2px; color: #000066; font-family: Arial, Verdana; font-size: 1.2em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;XML Documents&lt;/h1&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;An XML document is made up of the following parts.&lt;/div&gt;&lt;ul style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;An optional prolog.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;A document element, usually containing nested elements.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Optional comments or processing instructions.&lt;/li&gt;
&lt;/ul&gt;&lt;h2 id=&quot;h2.9&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;The Prolog&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;The prolog of an XML document can contain the following items.&lt;/div&gt;&lt;ul style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;An XML declaration&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Processing instructions&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Comments&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;A Document Type Declaration&lt;/li&gt;
&lt;/ul&gt;&lt;h3 id=&quot;h3.1&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 1em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;The XML Declaration&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;The XML declaration, if it appears at all, must appear on the very first line of the document with no preceding white space. It looks like this.&lt;/div&gt;&lt;div class=&quot;SyntaxBlock&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em; text-align: -webkit-auto;&quot;&gt;&lt;pre style=&quot;background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;This declares that the document is an XML document. The&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;version&lt;/span&gt;&amp;nbsp;attribute is required, but the&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;encoding&lt;/span&gt;&amp;nbsp;and&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;standalone&lt;/span&gt;&amp;nbsp;attributes are not. If the XML document uses any markup declarations that set defaults for attributes or declare entities then&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;standalone&lt;/span&gt;&amp;nbsp;must be set to&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;no&lt;/span&gt;.&lt;/div&gt;&lt;h3 id=&quot;h3.2&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 1em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Processing Instructions&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Processing instructions are used to pass parameters to an application. These parameters tell the application how to process the XML document. For example, the following processing instruction tells the application that it should transform the XML document using the XSL stylesheet&amp;nbsp;&lt;span class=&quot;FilePath&quot; style=&quot;color: blue; cursor: pointer; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline;&quot;&gt;beatles.xsl&lt;/span&gt;.&lt;/div&gt;&lt;div class=&quot;SyntaxBlock&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em; text-align: -webkit-auto;&quot;&gt;&lt;pre style=&quot;background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&amp;lt;?xml-stylesheet href=&quot;beatles.xsl&quot; type=&quot;text/xsl&quot;?&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;As shown above, processing instructions begin with and&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;lt;?&lt;/span&gt;&amp;nbsp;end with&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;?&amp;gt;&lt;/span&gt;.&lt;/div&gt;&lt;h3 id=&quot;h3.3&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 1em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Comments&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Comments can appear throughout an XML document. Like in HTML, they begin with&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;lt;!--&lt;/span&gt;&amp;nbsp;and end with&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;--&amp;gt;&lt;/span&gt;.&lt;/div&gt;&lt;div class=&quot;SyntaxBlock&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em; text-align: -webkit-auto;&quot;&gt;&lt;pre style=&quot;background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&amp;lt;!--This is a comment--&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;h3.4&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 1em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;A Document Type Declaration&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;The Document Type Declaration (or&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;DOCTYPE&lt;/span&gt;&amp;nbsp;Declaration) has three roles.&lt;/div&gt;&lt;ol style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;It specifies the name of the document element.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;It may point to an external Document Type Definition (DTD).&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;It may contain an internal DTD.&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;The&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;DOCTYPE&lt;/span&gt;&amp;nbsp;Declaration shown below simply states that the document element of the XML document is beatles.&lt;/div&gt;&lt;div class=&quot;SyntaxBlock&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em; text-align: -webkit-auto;&quot;&gt;&lt;pre style=&quot;background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&amp;lt;!DOCTYPE beatles&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;If a&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;DOCTYPE&lt;/span&gt;&amp;nbsp;Declaration points to an external DTD, it must either specify that the DTD is on the same system as the XML document itself or that it is in some public location. To do so, it uses the keywords&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;SYSTEM&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;PUBLIC&lt;/span&gt;. It then points to the location of the DTD using a relative Uniform Resource Indicator (URI) or an absolute URI. Here are a couple of examples.&lt;/div&gt;&lt;div class=&quot;SyntaxBlock&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em; text-align: -webkit-auto;&quot;&gt;&lt;div class=&quot;SyntaxBlockHeading&quot; style=&quot;font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Syntax&lt;/div&gt;&lt;pre style=&quot;background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&amp;lt;!--DTD is on the same system as the XML document--&amp;gt;
&amp;lt;!DOCTYPE beatles SYSTEM &quot;dtds/beatles.dtd&quot;&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;SyntaxBlock&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em; text-align: -webkit-auto;&quot;&gt;&lt;div class=&quot;SyntaxBlockHeading&quot; style=&quot;font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Syntax&lt;/div&gt;&lt;pre style=&quot;background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&amp;lt;!--DTD is publicly available--&amp;gt;
&amp;lt;!DOCTYPE beatles PUBLIC &quot;-//Webucator//DTD Beatles 1.0//EN&quot;
     &quot;http://www.webucator.com/beatles/DTD/beatles.dtd&quot;&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;As shown in the second declaration above, public identifiers are divided into three parts:&lt;/div&gt;&lt;ol style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;An organization (e.g, Webucator)&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;A name for the DTD (e.g, Beatles 1.0)&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;A language (e.g, EN for English)&lt;/li&gt;
&lt;/ol&gt;&lt;h2 id=&quot;h2.10&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;Elements&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Every XML document must have at least one element, called the document element. The document element usually contains other elements, which contain other elements, and so on. Elements are denoted with tags. Let&#39;s look again at the&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Paul.xml&lt;/span&gt;.&lt;/div&gt;&lt;div class=&quot;CodeSample&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0em; margin-right: 0em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;h2 class=&quot;CodeSampleLabel&quot; style=&quot;background-color: #eeeeff; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em;&quot;&gt;Code Sample: XMLBasics/Demos/Paul.xml&lt;/h2&gt;&lt;div class=&quot;bd&quot; style=&quot;background-color: #eeeeee; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;pre style=&quot;padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot;?&amp;gt;
&amp;lt;person&amp;gt;
 &amp;lt;name&amp;gt;
  &amp;lt;firstname&amp;gt;Paul&amp;lt;/firstname&amp;gt;
  &amp;lt;lastname&amp;gt;McCartney&amp;lt;/lastname&amp;gt;
 &amp;lt;/name&amp;gt;
 &amp;lt;job&amp;gt;Singer&amp;lt;/job&amp;gt;
 &amp;lt;gender&amp;gt;Male&amp;lt;/gender&amp;gt;
&amp;lt;/person&amp;gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;CodeExplanation&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Code Explanation&lt;/div&gt;&lt;blockquote style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 2em; margin-right: 2em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;The document element is&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;person&lt;/span&gt;. It contains three elements:&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;name&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;job&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;gender&lt;/span&gt;. Further, the name element contains two elements of its own:&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;firstname&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;lastname&lt;/span&gt;. As you can see, XML elements are denoted with tags, just as in HTML. Elements that are nested within another element are said to be children of that element.&lt;/div&gt;&lt;/blockquote&gt;&lt;h3 id=&quot;h3.5&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 1em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Empty Elements&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Not all elements contain other elements or text. For example, in XHTML, there is an img element that is used to display an image. It does not contain any text or elements within it, so it is called an empty element. In XML, empty elements must be closed, but they do not require a separate close tag. Instead, they can be closed with a forward slash at the end of the open tag as shown below.&lt;/div&gt;&lt;div class=&quot;SyntaxBlock&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em; text-align: -webkit-auto;&quot;&gt;&lt;pre style=&quot;background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&amp;lt;img src=&quot;images/paul.jpg&quot;/&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;The above code is identical in funciton to the code below.&lt;/div&gt;&lt;div class=&quot;SyntaxBlock&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em; text-align: -webkit-auto;&quot;&gt;&lt;pre style=&quot;background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&amp;lt;img src=&quot;images/paul.jpg&quot;&amp;gt;&amp;lt;/img&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&quot;h2.11&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;Attributes&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;XML elements can be further defined with attributes, which appear inside of the element&#39;s open tag as shown below.&lt;/div&gt;&lt;div class=&quot;SyntaxBlock&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em; text-align: -webkit-auto;&quot;&gt;&lt;div class=&quot;SyntaxBlockHeading&quot; style=&quot;font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Syntax&lt;/div&gt;&lt;pre style=&quot;background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&amp;lt;name title=&quot;Sir&quot;&amp;gt;
 &amp;lt;firstname&amp;gt;Paul&amp;lt;/firstname&amp;gt;
 &amp;lt;lastname&amp;gt;McCartney&amp;lt;/lastname&amp;gt;
&amp;lt;/name&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&quot;h2.12&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;CDATA&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Sometimes it is necessary to include sections in an XML document that should not be parsed by the XML parser. These sections might contain content that will confuse the XML parser, perhaps because it contains content that appears to be XML, but is not meant to be interpreted as XML. Such content must be nested in CDATA sections. The syntax for CDATA sections is shown below.&lt;/div&gt;&lt;div class=&quot;SyntaxBlock&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em; text-align: -webkit-auto;&quot;&gt;&lt;div class=&quot;SyntaxBlockHeading&quot; style=&quot;font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Syntax&lt;/div&gt;&lt;pre style=&quot;background-color: #eeeeee; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; overflow-x: auto; overflow-y: auto; padding-bottom: 1.5em; padding-left: 1.5em; padding-right: 1.5em; padding-top: 1.5em;&quot;&gt;&amp;lt;![CDATA[
 This section will not get parsed
 by the XML parser.
]]&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&quot;h2.13&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;White Space&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;In XML data, there are only four white space characters.&lt;/div&gt;&lt;ol style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Tab&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Line-feed&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Carriage-return&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Single space&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;There are several important rules to remember with regards to white space in XML.&lt;/div&gt;&lt;ol style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;White space within the content of an element is significant; that is, the XML processor will pass these characters to the application or user agent.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;White space in attributes is normalized; that is, neighboring white spaces are condensed to a single space.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;White space in between elements is ignored.&lt;/li&gt;
&lt;/ol&gt;&lt;h3 id=&quot;h3.6&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 1em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;xml:space Attribute&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;The&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;xml:space&lt;/span&gt;&amp;nbsp;attribute is a&amp;nbsp;&lt;span id=&quot;XML-Lang&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;special attribute&lt;/span&gt;&amp;nbsp;in XML. It can only take one of two values:&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;default&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;preserve&lt;/span&gt;. This attribute instructs the application how to treat white space within the content of the element. Note that the application is not required to respect this instruction.&lt;/div&gt;&lt;h2 id=&quot;XmlSyntaxRules&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;XML Syntax Rules&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;XML has relatively straightforward, but very strict, syntax rules. A document that follows these syntax rules is said to be well-formed.&lt;/div&gt;&lt;ol style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;There must be one and only one document element.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Every open tag must be closed.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;If an element is empty, it still must be closed.&lt;ul style=&quot;margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Poorly-formed: &amp;lt;tag&amp;gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Well-formed: &amp;lt;tag&amp;gt;&amp;lt;/tag&amp;gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Also well-formed: &amp;lt;tag /&amp;gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Elements must be properly nested.&lt;ul style=&quot;margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Poorly-formed: &amp;lt;a&amp;gt;&amp;lt;b&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Well-formed: &amp;lt;a&amp;gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/a&amp;gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Tag and attribute names are case sensitive.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Attribute values must be enclosed in single or double quotes.&lt;/li&gt;
&lt;/ol&gt;&lt;h2 id=&quot;h2.15&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-family: Arial, Verdana; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;Special Characters&lt;/h2&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;There are five special characters that can not be included in XML documents. These characters are replaced with predefined entity references as shown in the table below.&lt;/div&gt;&lt;table style=&quot;background-color: white; border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;caption style=&quot;background-color: #eeeeee; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Special Characters&lt;/caption&gt;&lt;thead style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;tr style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;th style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;Character&lt;/th&gt;&lt;th style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;Entity Reference&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;tr style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;amp;lt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;amp;gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;amp;amp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;amp;quot;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;amp;apos;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;h1 id=&quot;h1.5&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 2px; border-top-color: rgb(0, 0, 102); border-top-style: double; border-top-width: 2px; color: #000066; font-family: Arial, Verdana; font-size: 1.2em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em; text-align: -webkit-auto;&quot;&gt;Creating a Simple XML File&lt;/h1&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;The following is relatively simple XML file describing the Beatles.&lt;/div&gt;&lt;div class=&quot;CodeSample&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0.5em; margin-left: 0em; margin-right: 0em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;h2 class=&quot;CodeSampleLabel&quot; style=&quot;background-color: #eeeeff; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em;&quot;&gt;Code Sample: XMLBasics/Demos/Beatles.xml&lt;/h2&gt;&lt;div class=&quot;bd&quot; style=&quot;background-color: #eeeeee; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;pre style=&quot;padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot;?&amp;gt;
&amp;lt;beatles&amp;gt;
 &amp;lt;beatle link=&quot;http://www.paulmccartney.com&quot;&amp;gt;
  &amp;lt;name&amp;gt;
   &amp;lt;firstname&amp;gt;Paul&amp;lt;/firstname&amp;gt;
   &amp;lt;lastname&amp;gt;McCartney&amp;lt;/lastname&amp;gt;
  &amp;lt;/name&amp;gt;
 &amp;lt;/beatle&amp;gt;
 &amp;lt;beatle link=&quot;http://www.johnlennon.com&quot;&amp;gt;
  &amp;lt;name&amp;gt;
   &amp;lt;firstname&amp;gt;John&amp;lt;/firstname&amp;gt;
   &amp;lt;lastname&amp;gt;Lennon&amp;lt;/lastname&amp;gt;
  &amp;lt;/name&amp;gt;
 &amp;lt;/beatle&amp;gt;
 &amp;lt;beatle link=&quot;http://www.georgeharrison.com&quot;&amp;gt;
  &amp;lt;name&amp;gt;
   &amp;lt;firstname&amp;gt;George&amp;lt;/firstname&amp;gt;
   &amp;lt;lastname&amp;gt;Harrison&amp;lt;/lastname&amp;gt;
  &amp;lt;/name&amp;gt;
 &amp;lt;/beatle&amp;gt;
 &amp;lt;beatle link=&quot;http://www.ringostarr.com&quot;&amp;gt;
  &amp;lt;name&amp;gt;
   &amp;lt;firstname&amp;gt;Ringo&amp;lt;/firstname&amp;gt;
   &amp;lt;lastname&amp;gt;Starr&amp;lt;/lastname&amp;gt;
  &amp;lt;/name&amp;gt;
 &amp;lt;/beatle&amp;gt;
 &amp;lt;beatle link=&quot;http://www.webucator.com&quot; real=&quot;no&quot;&amp;gt;
  &amp;lt;name&amp;gt;
   &amp;lt;firstname&amp;gt;Nat&amp;lt;/firstname&amp;gt;
   &amp;lt;lastname&amp;gt;Dunn&amp;lt;/lastname&amp;gt;
  &amp;lt;/name&amp;gt;
 &amp;lt;/beatle&amp;gt;
&amp;lt;/beatles&amp;gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;Exercise&quot; style=&quot;background-color: white; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(0, 0, 102); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(0, 0, 102); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dashed; border-top-width: 1px; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.1em; padding-left: 1em; padding-right: 1em; padding-top: 0.1em; text-align: -webkit-auto;&quot;&gt;&lt;h2 class=&quot;ExerciseTitle&quot; id=&quot;h1.6&quot; style=&quot;background-color: #eeeeff; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em;&quot;&gt;Exercise: Editing an XML File&lt;/h2&gt;&lt;div id=&quot;GoogleExerciseAd1&quot; style=&quot;float: left; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;&lt;ins style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; display: inline-table; height: 250px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; visibility: visible; width: 250px;&quot;&gt;&lt;ins id=&quot;aswift_2_anchor&quot; style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; display: block; height: 250px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; visibility: visible; width: 250px;&quot;&gt;&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;250&quot; hspace=&quot;0&quot; id=&quot;aswift_2&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;aswift_2&quot; scrolling=&quot;no&quot; style=&quot;left: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: absolute; text-align: left; top: 0px;&quot; vspace=&quot;0&quot; width=&quot;250&quot;&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;/div&gt;&lt;div class=&quot;Duration&quot; style=&quot;font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal;&quot;&gt;In this exercise, you will be modifying an existing XML file.&lt;/span&gt;&lt;/div&gt;&lt;ol style=&quot;margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;Open&amp;nbsp;&lt;span class=&quot;FilePath&quot; style=&quot;color: blue; cursor: pointer; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline;&quot;&gt;XMLBasics/Exercises/Xml101.xml&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;Add a required prerequisite: &quot;Experience with computers&quot;.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Add the following to the topics list:&lt;/div&gt;&lt;ul style=&quot;margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;XML Documents&lt;/div&gt;&lt;ul style=&quot;margin-bottom: 1em; margin-left: 3em; margin-right: 3em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;The Prolog Elements&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;Attributes&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;CDATA&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;XML Syntax Rules&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;Special Characters&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;Creating a Simple XML File&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;Add a&amp;nbsp;&lt;span class=&quot;Code&quot; style=&quot;font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;modifications&lt;/span&gt;&amp;nbsp;element that shows the modifications you&#39;ve made.&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;CodeSample&quot; style=&quot;border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: dotted; border-top-width: 1px; margin-bottom: 0.5em; margin-left: 0em; margin-right: 0em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;h2 class=&quot;CodeSampleLabel&quot; style=&quot;background-color: #eeeeff; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(0, 0, 102); border-top-style: solid; border-top-width: 1px; color: #000066; font-size: 1.1em; font-style: italic; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em;&quot;&gt;Code Sample: XMLBasics/Exercises/Xml101.xml&lt;/h2&gt;&lt;div class=&quot;bd&quot; style=&quot;background-color: #eeeeee; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;pre style=&quot;padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot;?&amp;gt;
&amp;lt;course&amp;gt;
 &amp;lt;head&amp;gt;
  &amp;lt;title&amp;gt;Introduction to XML&amp;lt;/title&amp;gt;
  &amp;lt;course_num&amp;gt;XML101&amp;lt;/course_num&amp;gt;
  &amp;lt;course_length&amp;gt;3 days&amp;lt;/course_length&amp;gt;
 &amp;lt;/head&amp;gt;
 &amp;lt;body&amp;gt;
  &amp;lt;prerequisites&amp;gt;
   &amp;lt;prereq&amp;gt;Experience with Word Processing&amp;lt;/prereq&amp;gt;
   &amp;lt;prereq optional=&quot;true&quot;&amp;gt;Experience with HTML&amp;lt;/prereq&amp;gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
   &amp;lt;!-- Add a required prerequisite: &quot;Experience with computers&quot;  --&amp;gt;&lt;/b&gt;
  &amp;lt;/prerequisites&amp;gt;
  &amp;lt;outline&amp;gt;
   &amp;lt;topics&amp;gt;
    &amp;lt;topic&amp;gt;XML Basics
     &amp;lt;topics&amp;gt;
      &amp;lt;topic&amp;gt;What is XML?&amp;lt;/topic&amp;gt;
      &amp;lt;topic&amp;gt;XML Benefits
       &amp;lt;topics&amp;gt;
        &amp;lt;topic&amp;gt;XML Holds Data, Nothing More&amp;lt;/topic&amp;gt;
        &amp;lt;topic&amp;gt;XML Separates Structure from Formatting&amp;lt;/topic&amp;gt;
        &amp;lt;topic&amp;gt;XML Promotes Data Sharing&amp;lt;/topic&amp;gt;
        &amp;lt;topic&amp;gt;XML is Human-Readable&amp;lt;/topic&amp;gt;
        &amp;lt;topic&amp;gt;XML is Free&amp;lt;/topic&amp;gt;
       &amp;lt;/topics&amp;gt;
      &amp;lt;/topic&amp;gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
      &amp;lt;!-- 
    Add the following to the topics list (&quot;XML Documents&quot; and&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;    &quot;Creating a &lt;/b&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Simple XML File&quot; should be siblings of &quot;What&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;      is XML?&quot; and &quot;XML Benefits&quot;):&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;       
       -XML Documents
        -The Prolog
        -Elements
        -Attributes
        -CDATA
        -XML Syntax Rules
        -Special Characters
       -Creating a Simple XML File
       --&amp;gt;&lt;/b&gt;
     &amp;lt;/topics&amp;gt;
    &amp;lt;/topic&amp;gt;
   &amp;lt;/topics&amp;gt;
  &amp;lt;/outline&amp;gt;
 &amp;lt;/body&amp;gt;
 &amp;lt;foot&amp;gt;
  &amp;lt;creator&amp;gt;Josh Lockwood&amp;lt;/creator&amp;gt;
  &amp;lt;date_created&amp;gt;2002-07-25&amp;lt;/date_created&amp;gt;
  &amp;lt;modifications madeby=&quot;Colby Germond&quot; date=&quot;2003-05-05&quot;&amp;gt;
   &amp;lt;modification type=&quot;insert&quot;&amp;gt;Added HTML prerequisite&amp;lt;/modification&amp;gt;
   &amp;lt;modification type=&quot;edit&quot;&amp;gt;Fixed some typos&amp;lt;/modification&amp;gt;
  &amp;lt;/modifications&amp;gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
  &amp;lt;!-- 
   Add a modifications element that shows the modifications you&#39;ve made.
   --&amp;gt;&lt;/b&gt;
 &amp;lt;/foot&amp;gt;
&amp;lt;/course&amp;gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;Solution&quot; style=&quot;border-bottom-color: rgb(0, 0, 153); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(0, 0, 153); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(0, 0, 153); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(0, 0, 153); border-top-style: dotted; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;clearer&quot; style=&quot;clear: both; height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;Conclusion&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;h1 style=&quot;background-color: #eeeeff; border-bottom-color: rgb(0, 0, 102); border-bottom-style: dotted; border-bottom-width: 2px; border-top-color: rgb(0, 0, 102); border-top-style: double; border-top-width: 2px; color: #000066; font-size: 1.2em; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0.2em; padding-left: 0.2em; padding-right: 0.2em; padding-top: 0.2em;&quot;&gt;XML Basics Conclusion&lt;/h1&gt;&lt;div style=&quot;margin-bottom: 0.5em; margin-left: 0.5em; margin-right: 0.5em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;In this lesson of the XML tutorial, you have learned the benefits of XML, how XML is used, and how to write a well-formed XML document.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/6596600324619255752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/xml-basics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/6596600324619255752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/6596600324619255752'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/xml-basics.html' title='XML Basics'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-1574994980323149169</id><published>2011-11-23T00:47:00.000-08:00</published><updated>2011-11-23T00:47:38.868-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>CLR Stored Procedure</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;postnav&quot; style=&quot;background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 10px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: right;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;post-1390 post type-post status-publish format-standard hentry category-pinal-dave category-software-development category-sql category-sql-authority category-sql-performance category-sql-query category-sql-scripts category-sql-server category-sql-stored-procedure category-sql-tips-and-tricks category-sql-utility category-t-sql category-technology tag-clr&quot; id=&quot;post-1390&quot; style=&quot;background-color: white; border-bottom-color: rgb(221, 221, 221); border-bottom-style: dashed; border-bottom-width: 1px; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2em; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div class=&quot;posttitle&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;h2 style=&quot;font-family: Georgia, Verdana, Arial, serif; font-size: 1.4em; font-weight: normal; letter-spacing: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;SQL SERVER – Introduction to CLR – Simple Example of CLR Stored&amp;nbsp;Procedure&lt;/h2&gt;&lt;div class=&quot;post-info&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s0.wp.com/wp-content/themes/pub/mistylook/img/underline1.jpg); background-origin: initial; background-position: 0% 100%; background-repeat: no-repeat no-repeat; color: #999999; font-size: 0.9em; line-height: 1.6em; padding-bottom: 12px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;entry&quot; style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 1em; padding-top: 0px;&quot;&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;CLR is abbreviation of Common Language Runtime. In SQL Server 2005 and later version of it database objects can be created which are created in CLR. Stored Procedures, Functions, Triggers can be coded in CLR. CLR is faster than T-SQL in many cases. CLR is mainly used to accomplish task which are not possible by T-SQL or can use lots of resources. CLR can be usually implemented where there is intense string operation, thread management or iteration methods which can be complicated for T-SQL. Implementing CLR provides more security to Extended Stored Procedure.&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;Let us create one very simple CLR where we will print current system datetime.&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;1) Open Microsoft Visual Studio &amp;gt;&amp;gt; Click New Project &amp;gt;&amp;gt; Select Visual C# &amp;gt;&amp;gt; Database &amp;gt;&amp;gt; SQL Server Project&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone&quot; height=&quot;429&quot; src=&quot;http://www.pinaldave.com/bimg/CLR//clr1.gif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s0.wp.com/wp-content/themes/pub/mistylook/img/shadow.gif); background-origin: initial; background-position: 100% 100%; background-repeat: no-repeat no-repeat; border-bottom-style: none; border-color: initial; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 1px; border-right-style: none; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 4px; padding-right: 10px; padding-top: 4px;&quot; width=&quot;500&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;2) Either choose from existing database connection as reference or click on Add New Reference. In my example I have selected Add New Reference.&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone&quot; height=&quot;374&quot; src=&quot;http://www.pinaldave.com/bimg/CLR//clr2.gif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s0.wp.com/wp-content/themes/pub/mistylook/img/shadow.gif); background-origin: initial; background-position: 100% 100%; background-repeat: no-repeat no-repeat; border-bottom-style: none; border-color: initial; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 1px; border-right-style: none; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 4px; padding-right: 10px; padding-top: 4px;&quot; width=&quot;364&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;3) If you have selected existing reference skip to next step or add database reference as displayed in image.&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone&quot; height=&quot;657&quot; src=&quot;http://www.pinaldave.com/bimg/CLR//clr3.gif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s0.wp.com/wp-content/themes/pub/mistylook/img/shadow.gif); background-origin: initial; background-position: 100% 100%; background-repeat: no-repeat no-repeat; border-bottom-style: none; border-color: initial; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 1px; border-right-style: none; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 4px; padding-right: 10px; padding-top: 4px;&quot; width=&quot;451&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;4) Once database reference is added following project will be displayed in Solution Explorer. Right click on Solution Explorer &amp;gt;&amp;gt; Click on Add &amp;gt;&amp;gt; Stored Procedure.&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone&quot; height=&quot;699&quot; src=&quot;http://www.pinaldave.com/bimg/CLR//clr4.gif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s0.wp.com/wp-content/themes/pub/mistylook/img/shadow.gif); background-origin: initial; background-position: 100% 100%; background-repeat: no-repeat no-repeat; border-bottom-style: none; border-color: initial; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 1px; border-right-style: none; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 4px; padding-right: 10px; padding-top: 4px;&quot; width=&quot;434&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;5) Add new stored procedure template from following screen.&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone&quot; height=&quot;383&quot; src=&quot;http://www.pinaldave.com/bimg/CLR//clr5.gif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s0.wp.com/wp-content/themes/pub/mistylook/img/shadow.gif); background-origin: initial; background-position: 100% 100%; background-repeat: no-repeat no-repeat; border-bottom-style: none; border-color: initial; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 1px; border-right-style: none; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 4px; padding-right: 10px; padding-top: 4px;&quot; width=&quot;500&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;6) Once template added it will look like following image.&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone&quot; height=&quot;431&quot; src=&quot;http://www.pinaldave.com/bimg/CLR//clr6.gif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s0.wp.com/wp-content/themes/pub/mistylook/img/shadow.gif); background-origin: initial; background-position: 100% 100%; background-repeat: no-repeat no-repeat; border-bottom-style: none; border-color: initial; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 1px; border-right-style: none; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 4px; padding-right: 10px; padding-top: 4px;&quot; width=&quot;437&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;7) Now where it suggest to //Put your code here. Replace it with code displayed in the image. Once the code is complete do following two steps.&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;a) Click on menu bar &amp;gt;&amp;gt; Build &amp;gt;&amp;gt; Build ProjectName&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;b) Click on menu bar &amp;gt;&amp;gt; Build &amp;gt;&amp;gt; Deploy ProjectName&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;Building and Deploying project should give successful message.&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone&quot; height=&quot;386&quot; src=&quot;http://www.pinaldave.com/bimg/CLR//clr7.gif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s0.wp.com/wp-content/themes/pub/mistylook/img/shadow.gif); background-origin: initial; background-position: 100% 100%; background-repeat: no-repeat no-repeat; border-bottom-style: none; border-color: initial; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 1px; border-right-style: none; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 4px; padding-right: 10px; padding-top: 4px;&quot; width=&quot;500&quot; /&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;span class=&quot;kwrd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;span class=&quot;kwrd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System.Data;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;span class=&quot;kwrd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System.Data.SqlClient;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;span class=&quot;kwrd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System.Data.SqlTypes;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;span class=&quot;kwrd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;using&lt;/span&gt;&amp;nbsp;Microsoft.SqlServer.Server;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;span class=&quot;kwrd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;kwrd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;partial&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;kwrd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;class&lt;/span&gt;&amp;nbsp;StoredProcedures&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;{&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;[Microsoft.SqlServer.Server.SqlProcedure]&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;span class=&quot;kwrd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;kwrd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;kwrd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;void&lt;/span&gt;&amp;nbsp;CLRSPTest()&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;{&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;SqlPipe sp;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;sp = SqlContext.Pipe;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;String strCurrentTime =&amp;nbsp;&lt;span class=&quot;str&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;“Current System DateTime is: “&lt;/span&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;+ System.DateTime.Now.ToString();&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;sp.Send(strCurrentTime);&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;}&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;};&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;8) Now open SQL Server Management Studio and run following script in Query Editor. It should return current system datetime. Running it again the time will change.&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone&quot; height=&quot;162&quot; src=&quot;http://www.pinaldave.com/bimg/CLR//clr8.gif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s0.wp.com/wp-content/themes/pub/mistylook/img/shadow.gif); background-origin: initial; background-position: 100% 100%; background-repeat: no-repeat no-repeat; border-bottom-style: none; border-color: initial; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 1px; border-right-style: none; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 4px; padding-right: 10px; padding-top: 4px;&quot; width=&quot;387&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.6em; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;code style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;USE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;AdventureWorks&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;GO&lt;/span&gt;&lt;span style=&quot;color: blue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;EXEC&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;dbo.CLRSPTest&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;GO&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/1574994980323149169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/clr-stored-procedure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/1574994980323149169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/1574994980323149169'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/clr-stored-procedure.html' title='CLR Stored Procedure'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-824785727762216086</id><published>2011-11-21T21:50:00.000-08:00</published><updated>2011-11-21T21:50:22.598-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>WCF Architecture</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;background: white; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;The following figure illustrates the major components of WCF.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: white; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 12.75pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;&lt;v:shapetype coordsize=&quot;21600,21600&quot; filled=&quot;f&quot; id=&quot;_x0000_t75&quot; o:preferrelative=&quot;t&quot; o:spt=&quot;75&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; stroked=&quot;f&quot;&gt;  &lt;v:stroke joinstyle=&quot;miter&quot;&gt;  &lt;v:formulas&gt;   &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;&gt;   &lt;v:f eqn=&quot;sum @0 1 0&quot;&gt;   &lt;v:f eqn=&quot;sum 0 0 @1&quot;&gt;   &lt;v:f eqn=&quot;prod @2 1 2&quot;&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;&gt;   &lt;v:f eqn=&quot;sum @0 0 1&quot;&gt;   &lt;v:f eqn=&quot;prod @6 1 2&quot;&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;&gt;   &lt;v:f eqn=&quot;sum @8 21600 0&quot;&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;&gt;   &lt;v:f eqn=&quot;sum @10 21600 0&quot;&gt;  &lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;  &lt;v:path gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot; o:extrusionok=&quot;f&quot;&gt;  &lt;o:lock aspectratio=&quot;t&quot; v:ext=&quot;edit&quot;&gt; &lt;/o:lock&gt;&lt;/v:path&gt;&lt;/v:stroke&gt;&lt;/v:shapetype&gt;&lt;v:shape alt=&quot;http://wcftutorial.net/Images/050000_WCF-Architecture.jpg&quot; id=&quot;Picture_x0020_1&quot; o:spid=&quot;_x0000_i1025&quot; style=&quot;height: 406.5pt; mso-wrap-style: square; visibility: visible; width: 513.75pt;&quot; type=&quot;#_x0000_t75&quot;&gt;  &lt;v:imagedata o:title=&quot;050000_WCF-Architecture&quot; src=&quot;file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.jpg&quot;&gt; &lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://wcftutorial.net/Images/050000_WCF-Architecture.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;316&quot; src=&quot;http://wcftutorial.net/Images/050000_WCF-Architecture.jpg&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 13px;&quot;&gt;Figure 1: WCF Architecture&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 13pt; line-height: 115%;&quot;&gt;Contracts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background: white; line-height: 12.75pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;Contracts layer are next to that of Application layer. Developer will directly use this contract to develop the service. We are also going to do the same now. Let us see briefly what these contracts will do for us and we will also know that WCF is working on message system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 13pt; line-height: 115%;&quot;&gt;Service contracts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background: white; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;- Describe about the operation that service can provide. Example, Service provided to know the temperature of the city based on the zip code, this service we call as Service contract. It will be created using Service and Operational Contract attribute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 13pt; line-height: 115%;&quot;&gt;Data contract&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background: white; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;- It describes the custom data type which is exposed to the client. This defines the data types, are passed to and from service. Data types like int, string are identified by the client because it is already mention in XML schema definition language document, but custom created class or datatype cannot be identified by the client e.g. Employee data type. By using DataContract we can make client aware that we are using Employee data type for returning or passing parameter to the method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 13pt; line-height: 115%;&quot;&gt;Message Contract&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background: white; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;- Default SOAP message format is provided by the WCF runtime for communication between Client and service. If it is not meeting your requirements then we can create our own message format. This can be achieved by using Message Contract attribute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 13pt; line-height: 115%;&quot;&gt;Policies and Binding&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background: white; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;- Specify conditions required to communicate with a service e.g security requirement to communicate with service, protocol and encoding used for binding.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 13pt; line-height: 115%;&quot;&gt;Service Runtime&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background: white; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;- It contains the behaviors that occur during runtime of service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Throttling      Behavior- Controls how many messages are processed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Error      Behavior - Specifies what occurs, when internal error occurs on the      service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Metadata      Behavior - Tells how and whether metadata is available to outside world.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Instance      Behavior - Specifies how many instance of the service has to be created      while running.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Transaction      Behavior - Enables the rollback of transacted operations if a failure      occurs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Dispatch      Behavior - Controls how a message is processed by the WCF Infrastructure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h3 style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 13pt; line-height: 115%;&quot;&gt;Messaging&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background: white; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;- Messaging layer is composed of channels. A channel is a component that processes a message in some way, for example, by authenticating a message. A set of channels is also known as a channel stack. Channels are the core abstraction for sending message to and receiving message from an Endpoint. Broadly we can categories channels as&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Transport      Channels&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;background: white; line-height: 15.6pt; margin-left: .5in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;Handles sending and receiving message from network. Protocols like HTTP, TCP, name pipes and MSMQ.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Protocol      Channels&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;background: white; line-height: 15.6pt; margin-left: .5in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;Implements SOAP based protocol by processing and possibly modifying message. E.g. WS-Security and WS-Reliability.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 13pt; line-height: 115%;&quot;&gt;Activation and Hosting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;background: white; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;- Services can be hosted or executed, so that it will be available to everyone accessing from the client. WCF service can be hosted by following mechanism&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;IIS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;background: white; line-height: 15.6pt; margin-left: .5in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;Internet information Service provides number of advantages if a Service uses Http as protocol. It does not require Host code to activate the service, it automatically activates service code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Windows      Activation Service&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;background: white; line-height: 15.6pt; margin-left: .5in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;(WAS) is the new process activation mechanism that ships with IIS 7.0. In addition to HTTP based communication, WCF can also use WAS to provide message-based activation over other protocols, such as TCP and named pipes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Self-Hosting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;background: white; line-height: 15.6pt; margin-left: .5in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;WCF service can be self hosted as console application, Win Forms or WPF application with graphical UI.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; line-height: 15.6pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Windows      Service&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;background: white; line-height: 15.6pt; margin-left: .5in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;WCF can also be hosted as a Windows Service, so that it is under control of the Service Control Manager (SCM).&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #444444;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/824785727762216086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/wcf-architecture.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/824785727762216086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/824785727762216086'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/wcf-architecture.html' title='WCF Architecture'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-6623990505868339086</id><published>2011-11-21T04:52:00.000-08:00</published><updated>2011-11-21T04:52:19.035-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>FileStream Open File [C#]</title><content type='html'>This example shows how to open files for reading or writing, how to load and save files using FileStream in C#. To open file create instance of FileStream class with FileMode and FileAccess enumerations as parameters.&lt;br /&gt;
&lt;br /&gt;
FileStream typical use&lt;br /&gt;
This is typical code when opening file using FileStream. It&#39;s important to always close the stream. If you don&#39;t close the stream it can take a minute to be file again accessible (it will wait to garbage collector to free the FileStream instance and close the file).&lt;br /&gt;
&lt;br /&gt;
[C#]&lt;br /&gt;
using System.IO;&lt;br /&gt;
&lt;br /&gt;
FileStream fileStream = new FileStream(@&quot;c:\file.txt&quot;, FileMode.Open);&lt;br /&gt;
try&lt;br /&gt;
{&lt;br /&gt;
  // read from file or write to file&lt;br /&gt;
}&lt;br /&gt;
finally&lt;br /&gt;
{&lt;br /&gt;
  fileStream.Close();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Open file examples&lt;br /&gt;
Following examples show the most common cases how to open a file for reading or writing or how to create a file.&lt;br /&gt;
&lt;br /&gt;
[C#] Open existing file for read and write.&lt;br /&gt;
FileStream fileStream = new FileStream(@&quot;c:\file.txt&quot;, FileMode.Open);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[C#] Open existing file for reading.&lt;br /&gt;
FileStream fileStream = new FileStream(@&quot;c:\file.txt&quot;, FileMode.Open, FileAccess.Read);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[C#] Open existing file for writing.&lt;br /&gt;
FileStream fileStream = new FileStream(@&quot;c:\file.txt&quot;, FileMode.Open, FileAccess.Write);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[C#] Open file for writing (with seek to end), if the file doesn&#39;t exist create it.&lt;br /&gt;
FileStream fileStream = new FileStream(@&quot;c:\file.txt&quot;, FileMode.Append);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[C#] Create new file and open it for read and write, if the file exists overwrite it.&lt;br /&gt;
FileStream fileStream = new FileStream(@&quot;c:\file.txt&quot;, FileMode.Create);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[C#] Create new file and open it for read and write, if the file exists throw exception.&lt;br /&gt;
FileStream fileStream = new FileStream(@&quot;c:\file.txt&quot;, FileMode.CreateNew);</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/6623990505868339086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/filestream-open-file-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/6623990505868339086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/6623990505868339086'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/filestream-open-file-c.html' title='FileStream Open File [C#]'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-4557403679067572124</id><published>2011-11-18T02:24:00.000-08:00</published><updated>2011-11-18T02:24:15.681-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>SQL - Join</title><content type='html'>&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;&lt;/h1&gt;&lt;p&gt;SQL &lt;b&gt;&lt;i&gt;JOIN&lt;/i&gt;&lt;/b&gt; joins together two tables on a matching table column, ultimately forming one single temporary table. The key word here is &lt;i&gt;temporary&lt;/i&gt;. The tables themselves remain intact, and running a &lt;b&gt;&lt;i&gt;JOIN&lt;/i&gt;&lt;/b&gt; query does not in any way change the data or table structure. &lt;b&gt;&lt;i&gt;JOIN&lt;/i&gt;&lt;/b&gt; is another way to select specific data from two or more relational tables.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;In order to perform a &lt;b&gt;&lt;i&gt;JOIN&lt;/i&gt;&lt;/b&gt; query, we need a few pieces of information: the name of the table and table column we want to join on and a condition to meet for the &lt;b&gt;&lt;i&gt;JOIN&lt;/i&gt;&lt;/b&gt; to happen. This should sound a little confusing as there is much going on in a &lt;b&gt;&lt;i&gt;JOIN&lt;/i&gt;&lt;/b&gt; query, so let&#39;s take a look at an example:&lt;/p&gt;&lt;br /&gt;
&lt;div class=&#39;codewrap&#39;&gt;&lt;h2 class=&#39;specialT&#39;&gt;SQL Join Query Code:&lt;/h2&gt;&lt;pre class=&#39;code&#39;&gt;&lt;h3&gt;USE mydatabase;

SELECT *
FROM orders
JOIN inventory
ON orders.product = inventory.product;&lt;/h3&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h2 class=&#39;specialT&#39;&gt;SQL Join Results:&lt;/h2&gt;&lt;div class=&#39;display&#39;&gt;&lt;table BORDER=&quot;1&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;id&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;customer&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;day_of_order&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;product&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;quantity&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;id&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;product&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;quantity&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;price&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-08-01 00:00:00.000&lt;/td&gt;&lt;td&gt;Hanging Files&lt;/td&gt;&lt;td&gt;11&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;Hanging Files&lt;/td&gt;&lt;td&gt;33&lt;/td&gt;&lt;td&gt;14.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-08-01 00:00:00.000&lt;/td&gt;&lt;td&gt;Stapler&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;Stapler&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;7.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;A+Maintenance&lt;/td&gt;&lt;td&gt;2008-08-16 00:00:00.000&lt;/td&gt;&lt;td&gt;Hanging Files&lt;/td&gt;&lt;td&gt;14&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;Hanging Files&lt;/td&gt;&lt;td&gt;33&lt;/td&gt;&lt;td&gt;14.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;Gerald Garner&lt;/td&gt;&lt;td&gt;2008-08-15 00:00:00.000&lt;/td&gt;&lt;td&gt;19&quot; LCD Screen&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;19&quot; LCD Screen&lt;/td&gt;&lt;td&gt;25&lt;/td&gt;&lt;td&gt;179.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-07-25 00:00:00.000&lt;/td&gt;&lt;td&gt;19&quot; LCD Screen&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;19&quot; LCD Screen&lt;/td&gt;&lt;td&gt;25&lt;/td&gt;&lt;td&gt;179.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-07-25 00:00:00.000&lt;/td&gt;&lt;td&gt;HP Printer&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;HP Printer&lt;/td&gt;&lt;td&gt;9&lt;/td&gt;&lt;td&gt;89.99&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;
&lt;p&gt;The line beginning with &lt;b&gt;&lt;i&gt;JOIN&lt;/i&gt;&lt;/b&gt; (Line 4) is where we tell SQL which table we would like to join. The next line (Line 5) is a different story. Here is where we have specified the condition to &lt;b&gt;&lt;i&gt;JOIN ON&lt;/i&gt;&lt;/b&gt;. In this case, both tables have identical product columns which makes them an ideal target for a join. Basically we are temporarily merging the tables connecting them where they match, the &lt;i&gt;product&lt;/i&gt; column.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;This type of join matches values from one table column with a corresponding value in another table and uses that match to merge the tables together. In our make-believe store world, this let&#39;s us join the &lt;i&gt;inventory&lt;/i&gt; table with the &lt;i&gt;orders&lt;/i&gt; table to show us all the items we currently have in stock for our customers and also the price of each item.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Let&#39;s rework this query a bit and strip away a few of the table columns to make our results easier to read and understand. We will replace the (*) parameter with a list containing only the table columns we are interested in viewing.&lt;/p&gt;&lt;br /&gt;
&lt;div class=&#39;codewrap&#39;&gt;&lt;h2 class=&#39;specialT&#39;&gt;SQL Join:&lt;/h2&gt;&lt;pre class=&#39;code&#39;&gt;&lt;h3&gt;USE mydatabase;

SELECT orders.customer,
orders.day_of_order,
orders.product,
orders.quantity as number_ordered,
inventory.quantity as number_instock,
inventory.price
FROM orders
JOIN inventory
ON orders.product = inventory.product&lt;/h3&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h2 class=&#39;specialT&#39;&gt;SQL Results:&lt;/h2&gt;&lt;div class=&#39;display&#39;&gt;&lt;table BORDER=&quot;1&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;customer&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;day_of_order&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;product&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;number_ordered&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;number_instock&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;price&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-08-01 00:00:00.000&lt;/td&gt;&lt;td&gt;Hanging Files&lt;/td&gt;&lt;td&gt;11&lt;/td&gt;&lt;td&gt;33&lt;/td&gt;&lt;td&gt;14.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-08-01 00:00:00.000&lt;/td&gt;&lt;td&gt;Stapler&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;7.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;A+Maintenance&lt;/td&gt;&lt;td&gt;2008-08-16 00:00:00.000&lt;/td&gt;&lt;td&gt;Hanging Files&lt;/td&gt;&lt;td&gt;14&lt;/td&gt;&lt;td&gt;33&lt;/td&gt;&lt;td&gt;14.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Gerald Garner&lt;/td&gt;&lt;td&gt;2008-08-15 00:00:00.000&lt;/td&gt;&lt;td&gt;19&quot; LCD Screen&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;25&lt;/td&gt;&lt;td&gt;179.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-07-25 00:00:00.000&lt;/td&gt;&lt;td&gt;19&quot; LCD Screen&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;25&lt;/td&gt;&lt;td&gt;179.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-07-25 00:00:00.000&lt;/td&gt;&lt;td&gt;HP Printer&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;9&lt;/td&gt;&lt;td&gt;89.99&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;
&lt;p&gt;Since we have one column in each table named the same thing (quantity), we used AS to modify how these columns would be named when our results were returned. These results should be more satisfying and easier to read now that we have removed some of the unnecessary columns.&lt;/p&gt;&lt;br /&gt;
&lt;h1&gt;SQL - Right Join&lt;/h1&gt;&lt;br /&gt;
&lt;p&gt;&lt;b&gt;&lt;i&gt;RIGHT JOIN&lt;/i&gt;&lt;/b&gt; is another method of &lt;b&gt;&lt;i&gt;JOIN&lt;/i&gt;&lt;/b&gt; we can use to join together tables, but its behavior is slightly different. We still need to join the tables together based on a conditional statement. The difference is that instead of returning &lt;b&gt;&lt;i&gt;ONLY&lt;/i&gt;&lt;/b&gt; rows where a join occurs, SQL will list &lt;b&gt;&lt;i&gt;EVERY&lt;/i&gt;&lt;/b&gt; row that exists on the right side, (The JOINED table).&lt;/p&gt;&lt;br /&gt;
&lt;div class=&#39;codewrap&#39;&gt;&lt;h2 class=&#39;specialT&#39;&gt;SQL - Right Join:&lt;/h2&gt;&lt;pre class=&#39;code&#39;&gt;&lt;h3&gt;USE mydatabase;

SELECT *
FROM orders
RIGHT JOIN inventory
ON orders.product = inventory.product&lt;/h3&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h2 class=&#39;specialT&#39;&gt;SQL Results:&lt;/h2&gt;&lt;div class=&#39;display&#39;&gt;&lt;table BORDER=&quot;1&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;id&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;customer&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;day_of_order&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;product&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;quantity&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;id&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;product&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;quantity&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;price&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;Gerald Garner&lt;/td&gt;&lt;td&gt;2008-08-15 00:00:00.000&lt;/td&gt;&lt;td&gt;19&quot; LCD Screen&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;19&quot; LCD Screen&lt;/td&gt;&lt;td&gt;25&lt;/td&gt;&lt;td&gt;179.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-07-25 00:00:00.000&lt;/td&gt;&lt;td&gt;19&quot; LCD Screen&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;19&quot; LCD Screen&lt;/td&gt;&lt;td&gt;25&lt;/td&gt;&lt;td&gt;179.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-07-25 00:00:00.000&lt;/td&gt;&lt;td&gt;HP Printer&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;HP Printer&lt;/td&gt;&lt;td&gt;9&lt;/td&gt;&lt;td&gt;89.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;Pen&lt;/td&gt;&lt;td&gt;78&lt;/td&gt;&lt;td&gt;0.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-08-01 00:00:00.000&lt;/td&gt;&lt;td&gt;Stapler&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;Stapler&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;7.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;Tizag&lt;/td&gt;&lt;td&gt;2008-08-01 00:00:00.000&lt;/td&gt;&lt;td&gt;Hanging Files&lt;/td&gt;&lt;td&gt;11&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;Hanging Files&lt;/td&gt;&lt;td&gt;33&lt;/td&gt;&lt;td&gt;14.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;A+Maintenance&lt;/td&gt;&lt;td&gt;2008-08-16 00:00:00.000&lt;/td&gt;&lt;td&gt;Hanging Files&lt;/td&gt;&lt;td&gt;14&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;Hanging Files&lt;/td&gt;&lt;td&gt;33&lt;/td&gt;&lt;td&gt;14.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;Laptop&lt;/td&gt;&lt;td&gt;16&lt;/td&gt;&lt;td&gt;499.99&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;
&lt;p&gt;You should see a new row at the bottom of the results box with a bunch of &lt;i&gt;NULL&lt;/i&gt; values. This is a result of the &lt;b&gt;&lt;i&gt;RIGHT JOIN&lt;/i&gt;&lt;/b&gt; and is the intended result from running the query. We end up with an extra row because inside of the &lt;i&gt;inventory&lt;/i&gt; table, the &lt;i&gt;Laptop&lt;/i&gt; item was not joined with a product from the &lt;i&gt;orders&lt;/i&gt; table. This just means that we have not sold a laptop as of yet and it shouldn&#39;t be much a surprise since we already know from querying the &lt;i&gt;orders&lt;/i&gt; table in previous lessons that there have been no &lt;i&gt;laptop&lt;/i&gt; orders so far.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;By specifying &lt;b&gt;&lt;i&gt;RIGHT JOIN&lt;/i&gt;&lt;/b&gt;, we have told SQL to join together the tables even if no matches are found in the conditional statement. All records that exist in the table on the right side of the conditional statement (ON orders.product = inventory.product) will be returned and &lt;i&gt;NULL&lt;/i&gt; values will be placed on the left if no matches are found.&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;SQL - Left Join&lt;/h1&gt;&lt;br /&gt;
&lt;p&gt;SQL &lt;b&gt;&lt;i&gt;LEFT JOIN&lt;/i&gt;&lt;/b&gt; works exactly the same way as &lt;b&gt;&lt;i&gt;RIGHT JOIN&lt;/i&gt;&lt;/b&gt; except that they are opposites. &lt;i&gt;NULL&lt;/i&gt; values will appear on the right instead of the left and all rows from the table on the left hand side of the conditional will be returned.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Unfortunately, we will not be able to show a very intuitive example of a &lt;b&gt;&lt;i&gt;LEFT JOIN&lt;/i&gt;&lt;/b&gt; because of how our tables are structured. The &lt;i&gt;orders&lt;/i&gt; table should always have a matching inventory item and if not, that means we are in big trouble as we could be selling items we do not carry in inventory. For good measure, here&#39;s what a &lt;b&gt;&lt;i&gt;LEFT JOIN&lt;/i&gt;&lt;/b&gt; would look like:&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&#39;codewrap&#39;&gt;&lt;h2 class=&#39;specialT&#39;&gt;SQL Left Join:&lt;/h2&gt;&lt;pre class=&#39;code&#39;&gt;&lt;h3&gt;USE mydatabase;

SELECT *
FROM orders
LEFT JOIN inventory
ON orders.product = inventory.product&lt;/h3&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
&lt;p&gt;SQL &lt;b&gt;&lt;i&gt;JOIN&lt;/i&gt;&lt;/b&gt; is intended to bring together data from two tables to form a single larger table, and often, it will paint a more detailed picture of what the data represents. By merging these two data sets, we were able to peer into our database and ensure that each item ordered so far is in stock and ready to be shipped to our customers.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/4557403679067572124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/sql-join.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/4557403679067572124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/4557403679067572124'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/sql-join.html' title='SQL - Join'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-593297757119812780</id><published>2011-11-17T04:33:00.000-08:00</published><updated>2011-11-17T04:33:25.673-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>Update the UI Asynchronously on a Timer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.java2s.com/Code/CSharpImages/WPF-UpdateTheUIAsynchronouslyOnATimer.PNG&quot; imageanchor=&quot;1&quot;&gt;&lt;img alt=&quot;Update the UI Asynchronously on a Timer&quot; border=&quot;0&quot; src=&quot;http://www.java2s.com/Code/CSharpImages/WPF-UpdateTheUIAsynchronouslyOnATimer.PNG&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;Window&amp;nbsp;x:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;Class&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;WpfApplication1.Window1&quot;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;xmlns:x=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Title=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;WPF&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Height=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;100&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Width=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;300&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;StackPanel&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;Button&amp;nbsp;x:Name=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;button&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Click=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;Button_Click&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;gt;Start&amp;nbsp;Timer&amp;lt;/Button&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;TextBlock&amp;nbsp;x:Name=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;txtStatus&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;/TextBlock&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;/StackPanel&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;/Window&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3f7f5f; white-space: nowrap;&quot;&gt;//File:Window.xaml.cs&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;using&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;System;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;using&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;System.Windows;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;using&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;System.Windows.Threading;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;namespace&amp;nbsp;WpfApplication1&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;public&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;partial&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;class&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Window1&amp;nbsp;:&amp;nbsp;Window&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;private&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;DispatcherTimer&amp;nbsp;timer;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;public&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Window1&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;InitializeComponent&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;private&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Button_Click&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;object&amp;nbsp;sender,&amp;nbsp;RoutedEventArgs&amp;nbsp;e&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;timer&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;null&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;||&amp;nbsp;!timer.IsEnabled&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;timer&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;DispatcherTimer&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;timer.Interval&amp;nbsp;=&amp;nbsp;TimeSpan.FromMilliseconds&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;timer.Tick&amp;nbsp;+=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;EventHandler&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;timer_Tick&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;timer.Start&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;button.Content&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;Stop&amp;nbsp;Timer&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;else&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;timer.Stop&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;button.Content&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;Start&amp;nbsp;Timer&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;private&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;timer_Tick&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;object&amp;nbsp;sender,&amp;nbsp;EventArgs&amp;nbsp;e&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;txtStatus.Text&amp;nbsp;=&amp;nbsp;DateTime.Now.Second.ToString&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/593297757119812780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/update-ui-asynchronously-on-timer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/593297757119812780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/593297757119812780'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/update-ui-asynchronously-on-timer.html' title='Update the UI Asynchronously on a Timer'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-1657756400402340536</id><published>2011-11-16T03:57:00.000-08:00</published><updated>2011-11-16T03:57:40.121-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>Rolling Ball Animation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img alt=&quot;Rolling Ball Animation&quot; height=&quot;218&quot; src=&quot;http://www.java2s.com/Code/CSharpImages/WPF-RollingBallAnimation.PNG&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;background-color: white; color: black; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Window&amp;nbsp;x:&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;Class&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;WpfApplication1.RollingBall&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;xmlns:x=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Title=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Rolling&amp;nbsp;Balls&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Height=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;350&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Width=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;518&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Border&amp;nbsp;BorderBrush=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Gray&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;BorderThickness=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Margin=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;4&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Canvas&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Rectangle&amp;nbsp;Fill=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Gray&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Width=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;500&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Height=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;5&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Top=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;60&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Ellipse&amp;nbsp;x:Name=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;ellipse1&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Width=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;50&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Height=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;50&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Stroke=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Blue&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Top=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;10&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Left=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Ellipse.Fill&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;LinearGradientBrush&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;GradientStop&amp;nbsp;Color=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Blue&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Offset=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0.2&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;GradientStop&amp;nbsp;Color=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;LightBlue&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Offset=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0.8&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/LinearGradientBrush&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/Ellipse.Fill&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Ellipse.RenderTransform&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;RotateTransform&amp;nbsp;x:Name=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;ellipse1Rotate&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;CenterX=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;25&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;CenterY=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;25&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/Ellipse.RenderTransform&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/Ellipse&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Rectangle&amp;nbsp;Fill=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Gray&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Width=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;500&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Height=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;5&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Top=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;130&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Ellipse&amp;nbsp;x:Name=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;ellipse2&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Width=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;50&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Height=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;50&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Stroke=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Red&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Top=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;80&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Left=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Ellipse.Fill&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;LinearGradientBrush&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;GradientStop&amp;nbsp;Color=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Red&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Offset=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0.8&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;GradientStop&amp;nbsp;Color=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;LightSalmon&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Offset=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0.2&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/LinearGradientBrush&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/Ellipse.Fill&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Ellipse.RenderTransform&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;RotateTransform&amp;nbsp;x:Name=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;ellipse2Rotate&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;CenterX=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;25&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;CenterY=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;25&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/Ellipse.RenderTransform&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/Ellipse&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Rectangle&amp;nbsp;Fill=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Gray&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Width=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;500&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Height=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;5&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Top=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;200&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Ellipse&amp;nbsp;x:Name=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;ellipse3&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Width=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;50&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Height=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;50&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Stroke=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Green&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Top=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;150&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Left=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Ellipse.Fill&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;LinearGradientBrush&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;GradientStop&amp;nbsp;Color=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Green&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Offset=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0.5&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;GradientStop&amp;nbsp;Color=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;LightGreen&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Offset=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0.5&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/LinearGradientBrush&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/Ellipse.Fill&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Ellipse.RenderTransform&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;RotateTransform&amp;nbsp;x:Name=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;ellipse3Rotate&quot;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;CenterX=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;25&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;CenterY=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;25&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/Ellipse.RenderTransform&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/Ellipse&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Rectangle&amp;nbsp;Fill=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Gray&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Width=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;500&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Height=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;5&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Top=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;270&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: white; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;Ellipse&amp;nbsp;x:Name=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;ellipse4&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Width=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;50&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Height=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;50&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Stroke=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Purple&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Top=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;220&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Canvas.Left=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;Ellipse.Fill&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;LinearGradientBrush&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;GradientStop&amp;nbsp;Color=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;Purple&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Offset=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;0.5&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;GradientStop&amp;nbsp;Color=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;LightPink&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Offset=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;0.2&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;/LinearGradientBrush&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;/Ellipse.Fill&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;Ellipse.RenderTransform&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;RotateTransform&amp;nbsp;x:Name=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;ellipse4Rotate&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;CenterX=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;25&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;CenterY=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; white-space: nowrap;&quot;&gt;&quot;25&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;/Ellipse.RenderTransform&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;/Ellipse&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;/Canvas&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;/Border&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;&amp;lt;/Window&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3f7f5f; white-space: nowrap;&quot;&gt;//File:Window.xaml.cs&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;using&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;System;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;using&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;System.Windows;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;using&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;System.Windows.Controls;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;using&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;System.Windows.Input;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;using&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;System.Windows.Media;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;using&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;System.Windows.Media.Animation;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;using&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;System.Windows.Shapes;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;namespace&amp;nbsp;WpfApplication1&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;public&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;partial&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;class&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;RollingBall&amp;nbsp;:&amp;nbsp;Window&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;public&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;RollingBall&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;InitializeComponent&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;double&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;nRotation&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;DoubleAnimation&amp;nbsp;da&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;DoubleAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;450&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;,TimeSpan.FromSeconds&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.RepeatBehavior&amp;nbsp;=&amp;nbsp;RepeatBehavior.Forever;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.AutoReverse&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;ellipse1.BeginAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Canvas.LeftProperty,&amp;nbsp;da&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;DoubleAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;,&amp;nbsp;nRotation,TimeSpan.FromSeconds&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.RepeatBehavior&amp;nbsp;=&amp;nbsp;RepeatBehavior.Forever;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.AutoReverse&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;ellipse1Rotate.BeginAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;RotateTransform.AngleProperty,&amp;nbsp;da&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;DoubleAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;450&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;,TimeSpan.FromSeconds&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.AccelerationRatio&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;0.4&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.RepeatBehavior&amp;nbsp;=&amp;nbsp;RepeatBehavior.Forever;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.AutoReverse&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;ellipse2.BeginAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Canvas.LeftProperty,&amp;nbsp;da&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;DoubleAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;,&amp;nbsp;nRotation,TimeSpan.FromSeconds&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.AccelerationRatio&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;0.4&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.RepeatBehavior&amp;nbsp;=&amp;nbsp;RepeatBehavior.Forever;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.AutoReverse&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;ellipse2Rotate.BeginAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;RotateTransform.AngleProperty,&amp;nbsp;da&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;DoubleAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;450&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;,TimeSpan.FromSeconds&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.DecelerationRatio&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;0.6&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.RepeatBehavior&amp;nbsp;=&amp;nbsp;RepeatBehavior.Forever;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.AutoReverse&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;ellipse3.BeginAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;Canvas.LeftProperty,&amp;nbsp;da&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;DoubleAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;,&amp;nbsp;nRotation,TimeSpan.FromSeconds&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.DecelerationRatio&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #990000; white-space: nowrap;&quot;&gt;0.6&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.RepeatBehavior&amp;nbsp;=&amp;nbsp;RepeatBehavior.Forever;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;da.AutoReverse&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; white-space: nowrap;&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;ellipse3Rotate.BeginAnimation&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;RotateTransform.AngleProperty,&amp;nbsp;da&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: white; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;background-color: white; white-space: nowrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: black; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/1657756400402340536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/rolling-ball-animation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/1657756400402340536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/1657756400402340536'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/rolling-ball-animation.html' title='Rolling Ball Animation'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-6160680017842410669</id><published>2011-11-15T04:23:00.000-08:00</published><updated>2011-11-15T04:23:05.308-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Total Of Student&#39;s Marks</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #ff6633; font: normal normal bold 110%/normal Georgia, &#39;Times New Roman&#39;; margin-top: 0px; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: 14px; font-weight: normal; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/h3&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #ff6633; font: normal normal bold 110%/normal Georgia, &#39;Times New Roman&#39;; margin-top: 0px; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: 14px; font-weight: normal; line-height: 20px;&quot;&gt;/* Simple Program in C# (for beginners) to input the name from the user and his marks in two subject and find the total in the two subjects. */&lt;/span&gt;&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://picasaweb.google.co.uk/liocyril/CProgramsAndExamples/photo?authkey=8HmvBD5t0AI#5217915833563458434&quot; style=&quot;color: #6699cc; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;Click To View Full Size&quot; height=&quot;400&quot; src=&quot;http://lh3.ggpht.com/liocyril/SGnCzg9vq4I/AAAAAAAAAb4/h0x_jZVi5es/s400/student.jpg&quot; style=&quot;border-bottom-color: rgb(192, 192, 192); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(192, 192, 192); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; border-width: initial; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-4829291888584179718&quot; style=&quot;background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: 14px; line-height: 20px; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//Form1.designer.cs&lt;br /&gt;
namespace Student_Marks&lt;br /&gt;
{&lt;br /&gt;
partial class Form1&lt;br /&gt;
{&lt;br /&gt;
///&lt;summary&gt;&lt;br /&gt;
/// Required designer variable.&lt;br /&gt;
///&lt;/summary&gt;&lt;br /&gt;
private System.ComponentModel.IContainer components = null;&lt;br /&gt;
&lt;br /&gt;
///&lt;summary&gt;&lt;br /&gt;
/// Clean up any resources being used.&lt;br /&gt;
///&lt;/summary&gt;&lt;br /&gt;
///&amp;nbsp;true if managed resources should be disposed; otherwise, false.&lt;br /&gt;
protected override void Dispose(bool disposing)&lt;br /&gt;
{&lt;br /&gt;
if (disposing &amp;amp;&amp;amp; (components != null))&lt;br /&gt;
{&lt;br /&gt;
components.Dispose();&lt;br /&gt;
}&lt;br /&gt;
base.Dispose(disposing);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#region Windows Form Designer generated code&lt;br /&gt;
&lt;br /&gt;
///&lt;summary&gt;&lt;br /&gt;
/// Required method for Designer support - do not modify&lt;br /&gt;
/// the contents of this method with the code editor.&lt;br /&gt;
///&lt;/summary&gt;&lt;br /&gt;
private void InitializeComponent()&lt;br /&gt;
{&lt;br /&gt;
this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
this.label2 = new System.Windows.Forms.Label();&lt;br /&gt;
this.label3 = new System.Windows.Forms.Label();&lt;br /&gt;
this.label4 = new System.Windows.Forms.Label();&lt;br /&gt;
this.button1 = new System.Windows.Forms.Button();&lt;br /&gt;
this.button2 = new System.Windows.Forms.Button();&lt;br /&gt;
this.textBox1 = new System.Windows.Forms.TextBox();&lt;br /&gt;
this.textBox2 = new System.Windows.Forms.TextBox();&lt;br /&gt;
this.textBox3 = new System.Windows.Forms.TextBox();&lt;br /&gt;
this.textBox4 = new System.Windows.Forms.TextBox();&lt;br /&gt;
this.button3 = new System.Windows.Forms.Button();&lt;br /&gt;
this.label5 = new System.Windows.Forms.Label();&lt;br /&gt;
this.SuspendLayout();&lt;br /&gt;
//&lt;br /&gt;
// label1&lt;br /&gt;
//&lt;br /&gt;
this.label1.AutoSize = true;&lt;br /&gt;
this.label1.Location = new System.Drawing.Point(15, 56);&lt;br /&gt;
this.label1.Name = &quot;label1&quot;;&lt;br /&gt;
this.label1.Size = new System.Drawing.Size(75, 13);&lt;br /&gt;
this.label1.TabIndex = 0;&lt;br /&gt;
this.label1.Text = &quot;Student Name&quot;;&lt;br /&gt;
//&lt;br /&gt;
// label2&lt;br /&gt;
//&lt;br /&gt;
this.label2.AutoSize = true;&lt;br /&gt;
this.label2.Location = new System.Drawing.Point(15, 102);&lt;br /&gt;
this.label2.Name = &quot;label2&quot;;&lt;br /&gt;
this.label2.Size = new System.Drawing.Size(42, 13);&lt;br /&gt;
this.label2.TabIndex = 1;&lt;br /&gt;
this.label2.Text = &quot;Marks1&quot;;&lt;br /&gt;
//&lt;br /&gt;
// label3&lt;br /&gt;
//&lt;br /&gt;
this.label3.AutoSize = true;&lt;br /&gt;
this.label3.Location = new System.Drawing.Point(15, 148);&lt;br /&gt;
this.label3.Name = &quot;label3&quot;;&lt;br /&gt;
this.label3.Size = new System.Drawing.Size(42, 13);&lt;br /&gt;
this.label3.TabIndex = 2;&lt;br /&gt;
this.label3.Text = &quot;Marks2&quot;;&lt;br /&gt;
//&lt;br /&gt;
// label4&lt;br /&gt;
//&lt;br /&gt;
this.label4.AutoSize = true;&lt;br /&gt;
this.label4.Location = new System.Drawing.Point(15, 194);&lt;br /&gt;
this.label4.Name = &quot;label4&quot;;&lt;br /&gt;
this.label4.Size = new System.Drawing.Size(37, 13);&lt;br /&gt;
this.label4.TabIndex = 3;&lt;br /&gt;
this.label4.Text = &quot;Result&quot;;&lt;br /&gt;
//&lt;br /&gt;
// button1&lt;br /&gt;
//&lt;br /&gt;
this.button1.Location = new System.Drawing.Point(18, 227);&lt;br /&gt;
this.button1.Name = &quot;button1&quot;;&lt;br /&gt;
this.button1.Size = new System.Drawing.Size(61, 23);&lt;br /&gt;
this.button1.TabIndex = 4;&lt;br /&gt;
this.button1.Text = &quot;Calculate&quot;;&lt;br /&gt;
this.button1.UseVisualStyleBackColor = true;&lt;br /&gt;
this.button1.Click += new System.EventHandler(this.button1_Click);&lt;br /&gt;
//&lt;br /&gt;
// button2&lt;br /&gt;
//&lt;br /&gt;
this.button2.Location = new System.Drawing.Point(84, 227);&lt;br /&gt;
this.button2.Name = &quot;button2&quot;;&lt;br /&gt;
this.button2.Size = new System.Drawing.Size(54, 23);&lt;br /&gt;
this.button2.TabIndex = 5;&lt;br /&gt;
this.button2.Text = &quot;Clear&quot;;&lt;br /&gt;
this.button2.UseVisualStyleBackColor = true;&lt;br /&gt;
this.button2.Click += new System.EventHandler(this.button2_Click);&lt;br /&gt;
//&lt;br /&gt;
// textBox1&lt;br /&gt;
//&lt;br /&gt;
this.textBox1.Location = new System.Drawing.Point(96, 53);&lt;br /&gt;
this.textBox1.Name = &quot;textBox1&quot;;&lt;br /&gt;
this.textBox1.Size = new System.Drawing.Size(100, 20);&lt;br /&gt;
this.textBox1.TabIndex = 6;&lt;br /&gt;
//&lt;br /&gt;
// textBox2&lt;br /&gt;
//&lt;br /&gt;
this.textBox2.Location = new System.Drawing.Point(96, 95);&lt;br /&gt;
this.textBox2.Name = &quot;textBox2&quot;;&lt;br /&gt;
this.textBox2.Size = new System.Drawing.Size(100, 20);&lt;br /&gt;
this.textBox2.TabIndex = 7;&lt;br /&gt;
//&lt;br /&gt;
// textBox3&lt;br /&gt;
//&lt;br /&gt;
this.textBox3.Location = new System.Drawing.Point(96, 141);&lt;br /&gt;
this.textBox3.Name = &quot;textBox3&quot;;&lt;br /&gt;
this.textBox3.Size = new System.Drawing.Size(100, 20);&lt;br /&gt;
this.textBox3.TabIndex = 8;&lt;br /&gt;
//&lt;br /&gt;
// textBox4&lt;br /&gt;
//&lt;br /&gt;
this.textBox4.Enabled = false;&lt;br /&gt;
this.textBox4.Location = new System.Drawing.Point(96, 187);&lt;br /&gt;
this.textBox4.Name = &quot;textBox4&quot;;&lt;br /&gt;
this.textBox4.Size = new System.Drawing.Size(100, 20);&lt;br /&gt;
this.textBox4.TabIndex = 9;&lt;br /&gt;
//&lt;br /&gt;
// button3&lt;br /&gt;
//&lt;br /&gt;
this.button3.Location = new System.Drawing.Point(143, 227);&lt;br /&gt;
this.button3.Name = &quot;button3&quot;;&lt;br /&gt;
this.button3.Size = new System.Drawing.Size(54, 23);&lt;br /&gt;
this.button3.TabIndex = 10;&lt;br /&gt;
this.button3.Text = &quot;Exit&quot;;&lt;br /&gt;
this.button3.UseVisualStyleBackColor = true;&lt;br /&gt;
this.button3.Click += new System.EventHandler(this.button3_Click);&lt;br /&gt;
//&lt;br /&gt;
// label5&lt;br /&gt;
//&lt;br /&gt;
this.label5.AutoSize = true;&lt;br /&gt;
this.label5.Location = new System.Drawing.Point(52, 18);&lt;br /&gt;
this.label5.Name = &quot;label5&quot;;&lt;br /&gt;
this.label5.Size = new System.Drawing.Size(114, 13);&lt;br /&gt;
this.label5.TabIndex = 11;&lt;br /&gt;
this.label5.Text = &quot;Display Student Result&quot;;&lt;br /&gt;
//&lt;br /&gt;
// Form1&lt;br /&gt;
//&lt;br /&gt;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
this.ClientSize = new System.Drawing.Size(215, 266);&lt;br /&gt;
this.Controls.Add(this.label5);&lt;br /&gt;
this.Controls.Add(this.button3);&lt;br /&gt;
this.Controls.Add(this.textBox4);&lt;br /&gt;
this.Controls.Add(this.textBox3);&lt;br /&gt;
this.Controls.Add(this.textBox2);&lt;br /&gt;
this.Controls.Add(this.textBox1);&lt;br /&gt;
this.Controls.Add(this.button2);&lt;br /&gt;
this.Controls.Add(this.button1);&lt;br /&gt;
this.Controls.Add(this.label4);&lt;br /&gt;
this.Controls.Add(this.label3);&lt;br /&gt;
this.Controls.Add(this.label2);&lt;br /&gt;
this.Controls.Add(this.label1);&lt;br /&gt;
this.Name = &quot;Form1&quot;;&lt;br /&gt;
this.Text = &quot;Student Report&quot;;&lt;br /&gt;
this.ResumeLayout(false);&lt;br /&gt;
this.PerformLayout();&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#endregion&lt;br /&gt;
&lt;br /&gt;
private System.Windows.Forms.Label label1;&lt;br /&gt;
private System.Windows.Forms.Label label2;&lt;br /&gt;
private System.Windows.Forms.Label label3;&lt;br /&gt;
private System.Windows.Forms.Label label4;&lt;br /&gt;
private System.Windows.Forms.Button button1;&lt;br /&gt;
private System.Windows.Forms.Button button2;&lt;br /&gt;
private System.Windows.Forms.TextBox textBox1;&lt;br /&gt;
private System.Windows.Forms.TextBox textBox2;&lt;br /&gt;
private System.Windows.Forms.TextBox textBox3;&lt;br /&gt;
private System.Windows.Forms.TextBox textBox4;&lt;br /&gt;
private System.Windows.Forms.Button button3;&lt;br /&gt;
private System.Windows.Forms.Label label5;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Form1.cs&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ComponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
&lt;br /&gt;
namespace Student_Marks&lt;br /&gt;
{&lt;br /&gt;
public partial class Form1 : Form&lt;br /&gt;
{&lt;br /&gt;
public Form1()&lt;br /&gt;
{&lt;br /&gt;
InitializeComponent();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
private void button3_Click(object sender, EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
Application.Exit();&lt;br /&gt;
/*Form2 form = new Form2();&lt;br /&gt;
form.Show();*/&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
private void button2_Click(object sender, EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
textBox1.Text = &quot;&quot;;&lt;br /&gt;
textBox2.Text = &quot;&quot;;&lt;br /&gt;
textBox3.Text = &quot;&quot;;&lt;br /&gt;
textBox4.Text = &quot;&quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
private void button1_Click(object sender, EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
int marks1 = Convert.ToInt32(textBox2.Text);&lt;br /&gt;
int marks2 = Convert.ToInt32(textBox3.Text);&lt;br /&gt;
textBox4.Text = Convert.ToString(marks1 + marks2);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
private void button4_Click(object sender, EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/6160680017842410669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/total-of-students-marks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/6160680017842410669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/6160680017842410669'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/total-of-students-marks.html' title='Total Of Student&#39;s Marks'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/liocyril/SGnCzg9vq4I/AAAAAAAAAb4/h0x_jZVi5es/s72-c/student.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-5835744930207352536</id><published>2011-11-11T01:37:00.000-08:00</published><updated>2011-11-11T01:37:40.588-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Basics of Stored Procedures</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;SQL Server implements Client/Server technology.A number of client send queries to the Central Server.The server after receiving the query request,parses it for syntax errors and process the request.Since the query passes from the client to the server through the network it adds to network traffic.Hence an increase in the number of queries from the clients leads to network congestion and load on the server.A stored procedure can solve this problem.&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;It is a collection or batch of T-SQL statements and control-of-flow language that is stored under one name and executed as a single unit.It helps in improving the performance of the query.A stored procedure is a precompiled object and is readily available for the various applications to execute.&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Features of stored procedures are:-&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start=&quot;1&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Improved Performance&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Reduction in network congestion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Enhanced accuracy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Better consistency&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Better security mechanism&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Types of procedures&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start=&quot;1&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;User-Defined stored procedures&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;:- They are created and stored in the current database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;System stored procedures&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;:- They have names prefixed with sp_. These primarily      support various administrative tasks that help manage the SQL      SERVER.System stored procedures are stored in the system database and are      accessible to the users of all the database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Temporary stored procedures&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;:- It has names prefixed with the #symbol .They are      stored in tempdb database and are automatically dropped when the      connection terminates.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Remote stored procedures&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;:- They are the procedures that are created and stored      in databases on remote servers. These can be accessed from various      servers,provided user has appropriate permissions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Extended stored procedures&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;:- These are dlls that are executed outside the SQL      Server environment.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Syntax to create procedure is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 1.5pt;&quot;&gt;&lt;span style=&quot;font-size: 8.5pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: #EDE7DB; border: inset 1.0pt; mso-border-alt: inset windowtext .75pt; mso-element: para-border-div; padding: 5.0pt 5.0pt 5.0pt 5.0pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; margin-bottom: 0.0001pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;CREATE PROCEDURE proc_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; margin-bottom: 0.0001pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;AS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; margin-bottom: 0.0001pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;BEGIN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; margin-bottom: 0.0001pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sql_statement1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; margin-bottom: 0.0001pt; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sql_statement2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;END&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Where &amp;nbsp;proc_name specifies the name of the stored procedure.&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Syntax to execute procedure is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 1.5pt;&quot;&gt;&lt;span style=&quot;font-size: 8.5pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: #EDE7DB; border: inset 1.0pt; mso-border-alt: inset windowtext .75pt; mso-element: para-border-div; padding: 5.0pt 5.0pt 5.0pt 5.0pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;EXECUTE proc_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Syntax to drop procedure is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fdfdfd; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 1.5pt;&quot;&gt;&lt;span style=&quot;font-size: 8.5pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: #EDE7DB; border: inset 1.0pt; mso-border-alt: inset windowtext .75pt; mso-element: para-border-div; padding: 5.0pt 5.0pt 5.0pt 5.0pt;&quot;&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;DROP PROCEDURE proc_name&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/5835744930207352536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/basics-of-stored-procedures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/5835744930207352536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/5835744930207352536'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/basics-of-stored-procedures.html' title='Basics of Stored Procedures'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-1894174440122692340</id><published>2011-11-09T23:36:00.000-08:00</published><updated>2011-11-09T23:51:32.148-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Add Two Numbers in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; line-height: 16px; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;This tutorial will demonstrate how to read from the input console (console line) to answer the prompts. The prompts will need to be a integer value to add the two inputs together.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; line-height: 16px; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #333333; font-size: 12px; line-height: 16px; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;I am using the System.Console object to read from the console and then converting the string inputs into integers with the Convert.ToInt32 function (the System.Convert has many methods and ToInt32 is one of these).&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;color: black; font-size: 13px; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Start Visual Studio.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: black; font-size: 13px; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;On the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;File&lt;/span&gt;&amp;nbsp;menu, point to&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;New&lt;/span&gt;, and then click&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Project&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: black; font-size: 13px; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;In the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Templates Categories&lt;/span&gt;&amp;nbsp;pane, expand&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Visual C#&lt;/span&gt;, and then click&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Windows&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: black; font-size: 13px; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;In the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Templates&lt;/span&gt;&amp;nbsp;pane, click&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Console Application&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: black; font-size: 13px; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Type a name for your project in the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Name&lt;/span&gt;&amp;nbsp;field.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: black; font-size: 13px; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Click&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;OK&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-top: -6px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: -6px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;The new project appears in&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Solution Explorer&lt;/span&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;color: black; font-size: 13px; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;If Program.cs is not open in the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Code Editor&lt;/span&gt;, right-click&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Program.cs&lt;/span&gt;&amp;nbsp;in&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Solution Explorer&lt;/span&gt;&amp;nbsp;and then click&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;View Code&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: black; font-size: 13px; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Replace the contents of Program.cs with the following code.&lt;/span&gt;&lt;br /&gt;
&lt;div id=&quot;snippetGroup&quot;&gt;&lt;div class=&quot;codeSnippetContainer&quot; style=&quot;min-width: 260px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;div class=&quot;codeSnippetContainerTabs&quot; style=&quot;font-size: 10pt !important; height: 22px; position: relative; vertical-align: middle; z-index: 1;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #333333; line-height: 16px; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;The code:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #333333; line-height: 16px; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;pre class=&quot;csharp&quot; style=&quot;background-color: #f9f9f9; clear: none; color: #110000; line-height: 1.333; overflow-x: visible; overflow-y: visible; width: auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;System&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;       &lt;span style=&quot;color: teal;&quot;&gt;// for the console object&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;class&lt;/span&gt; addtwonumbers
&lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
       &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;void&lt;/span&gt; Main&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
       &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
              &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;try&lt;/span&gt; 
              &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
                     &lt;span style=&quot;color: teal;&quot;&gt;// output to the console&lt;/span&gt;
                     Console&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Write&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&quot;Please enter value 1 : &quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                     &lt;span style=&quot;color: teal;&quot;&gt;// readin the console input, and then convert to a integer value&lt;/span&gt;
                     &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;int&lt;/span&gt; val1 &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; Convert&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ToInt32&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;Console&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ReadLine&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                     Console&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Write&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&quot;Please enter value 2 : &quot;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                     &lt;span style=&quot;color: #6666cc; font-weight: bold;&quot;&gt;int&lt;/span&gt; val2 &lt;span style=&quot;color: green;&quot;&gt;=&lt;/span&gt; Convert&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ToInt32&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;Console&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ReadLine&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
                     &lt;span style=&quot;color: teal;&quot;&gt;// write out the answer &lt;/span&gt;
                     Console&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WriteLine&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&quot;Answer = &quot;&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;val1 &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; val2&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
              &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
              &lt;span style=&quot;color: #0600ff; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;Exception e&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;
              &lt;span style=&quot;color: green;&quot;&gt;{&lt;/span&gt;
                     &lt;span style=&quot;color: teal;&quot;&gt;// any errors. Like converting a string to a integer value&lt;/span&gt;
                     Console&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WriteLine&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&quot;Error : &quot;&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;+&lt;/span&gt; e&lt;span style=&quot;color: green;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ToString&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;;&lt;/span&gt;
              &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
       &lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;csharp&quot; style=&quot;background-color: #f9f9f9; clear: none; color: #110000; line-height: 1.333; overflow-x: visible; overflow-y: visible; width: auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;csharp&quot; style=&quot;background-color: #f9f9f9; clear: none; line-height: 1.333; overflow-x: visible; overflow-y: visible; width: auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #333333; font-size: 12px; line-height: 16px; white-space: normal;&quot;&gt;save that as &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-size: 12px; line-height: 16px; white-space: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;addtwonumbers.cs.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;csharp&quot; style=&quot;background-color: #f9f9f9; clear: none; line-height: 1.333; overflow-x: visible; overflow-y: visible; width: auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-size: 12px; line-height: 16px; white-space: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;csharp&quot; style=&quot;background-color: #f9f9f9; clear: none; line-height: 1.333; overflow-x: visible; overflow-y: visible; width: auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-size: 12px; line-height: 16px; white-space: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;csharp&quot; style=&quot;background-color: #f9f9f9; clear: none; overflow-x: visible; overflow-y: visible; width: auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #333333; font-size: 12px; line-height: 16px; white-space: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Once compiled &amp;nbsp;and executed(press F5 will using visual studio) the output will be:&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;csharp&quot; style=&quot;background-color: #f9f9f9; clear: none; overflow-x: visible; overflow-y: visible; width: auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #333333; font-size: 12px; line-height: 16px; white-space: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;csharp&quot; style=&quot;background-color: #f9f9f9; clear: none; overflow-x: visible; overflow-y: visible; width: auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 16px; white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;csharp&quot; style=&quot;background-color: #f9f9f9; clear: none; overflow-x: visible; overflow-y: visible; width: auto;&quot;&gt;&lt;pre class=&quot;consoleoutput&quot; style=&quot;background-color: white; border-bottom-color: rgb(136, 136, 136); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(136, 136, 136); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(136, 136, 136); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(136, 136, 136); border-top-style: solid; border-top-width: 1px; color: #333333; line-height: 16px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Please enter value 1 : 50
Please enter value 2: 25
Answer = 75&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/1894174440122692340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/add-two-numbers-in-c.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/1894174440122692340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/1894174440122692340'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/add-two-numbers-in-c.html' title='Add Two Numbers in C#'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-3730571569399054595</id><published>2011-11-09T02:22:00.000-08:00</published><updated>2011-11-09T02:22:07.141-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>Overview of WCF</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;WCF is a .NET platform for developing services .Service is any functionality that can be consumed by the outside world. A service defines well defined communication protocols to communicate with it.&lt;br /&gt;
&lt;br /&gt;
A service can be located anywhere , it could be on local machine on the intranet or even internet.A client consumes the functionality exposed by the service.A service can be anything it can be an independent application like asp.net or it can be another service.&lt;br /&gt;
&lt;br /&gt;
Client and Service communicate with each other by sending messages.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SOAP Message SOAP Message&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Client HTTP/TCP /MSMQ HTTP/TCP/MSMQ Server&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;WCF.gif&quot; border=&quot;0&quot; height=&quot;97&quot; src=&quot;http://www.c-sharpcorner.com/UploadFile/ashish_2008/wcf-overview/Images/WCF.gif&quot; width=&quot;594&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Figure:&amp;nbsp;&lt;/b&gt;Basic Client Server Communication&lt;br /&gt;
&lt;br /&gt;
Since the functionality of the service is hidden to the outside world. Service exposes metadata that client uses to communicate with the service. Metadata can be in any technology neutral format like wsdl.&lt;br /&gt;
&lt;br /&gt;
Client always uses proxy to communicate with the service irrespective of where service is located. In WCF every service has endpoints and the client uses theses endpoints to communicate with the service.&lt;br /&gt;
&lt;br /&gt;
Every endpoint has three important pieces of information.&lt;br /&gt;
&lt;br /&gt;
Address , Binding and Contract.&lt;br /&gt;
&lt;br /&gt;
Address specifies the location of the service.&lt;br /&gt;
&lt;br /&gt;
Binding specifies how to communicate with the service(protocol).&lt;br /&gt;
&lt;br /&gt;
Contract specifies what the service does.&lt;br /&gt;
&lt;br /&gt;
A typical endpoint in the configuration file appears as :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;endpoint address = &quot;http://localhost/TestService/&quot; binding=&quot;wsHttpBinding&quot;&lt;br /&gt;
contract = &quot;MyNamespace.IContract&quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;WCF has mainly following types of contracts&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Service Contract:&lt;/b&gt;&amp;nbsp;Describes the operations of the services&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Operation Contract&lt;/b&gt;: Describes the operations available on the service&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Data Contract:&lt;/b&gt;&amp;nbsp;Define the data types passed to and from the service&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Fault Contract:&lt;/b&gt;&amp;nbsp;Define the erros raised by the service&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Message Contract:&lt;/b&gt;&amp;nbsp;Allows the service to interact directly by using the message.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Basic WCF service&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
System.ServiceModel.dll is the main assembly for WCF services. To create a WCF service we need to apply the service contract attribute either on the interface or the class.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;namespace&lt;/span&gt;&amp;nbsp;WcfService1&lt;br /&gt;
{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;ServiceContract&lt;/span&gt;]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;interface&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;IService1&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;OperationContract&lt;/span&gt;]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;HelloWorld();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Service1&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;IService1&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;HelloWorld()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Hello WCF&quot;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
We can also use explicit interface implementation like this :&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;string&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;IService1&lt;/span&gt;.HelloWorld()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Hello WCF&quot;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
Note when using explicit interface implementation we can&#39;t use the public access modifier.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Method Overloading&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To use method overloading we need to use the name attribute of the OperationContract attribute.&lt;br /&gt;
&lt;br /&gt;
If we write the following implementation for method overloading it will throw an exception at service host load time.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;OperationContract&lt;/span&gt;]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;HelloWorld();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;OperationContract&lt;/span&gt;]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;HelloWorld(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;Message);&lt;br /&gt;
&lt;br /&gt;
To use method overloading in WCF service we need to use the Name attribute of the OperationContract attribute.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;OperationContract&lt;/span&gt;(Name=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;HelloWorld&quot;&lt;/span&gt;)]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;HelloWorld();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;OperationContract&lt;/span&gt;(Name =&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;HellowWorldMssg&quot;&lt;/span&gt;)]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;HelloWorld(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;Message);&lt;br /&gt;
&lt;br /&gt;
In the later articles we will see how to host the service and call it using the client application.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Data Contracts&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
We can pass only the primitive datatypes to OperationContracts .If we want to pass custom data types to OperationContracts we need to use the DataContract Attribute on the Custom datatype.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;DataContract&lt;/span&gt;]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Customer&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;name;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;DataMember&lt;/span&gt;]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;Name&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;name; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;&amp;nbsp;{ name =&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;value&lt;/span&gt;; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;address;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;DataMember&lt;/span&gt;]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;Address&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;address; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;&amp;nbsp;{ address =&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;value&lt;/span&gt;; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/3730571569399054595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/overview-of-wcf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/3730571569399054595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/3730571569399054595'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/overview-of-wcf.html' title='Overview of WCF'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-8949231684118703673</id><published>2011-11-08T04:02:00.000-08:00</published><updated>2011-11-08T04:07:28.586-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>To create a WPF application</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;&quot;&gt;&lt;div class=&quot;sectionblock&quot; style=&quot;clear: both; padding-left: 15px;&quot;&gt;&lt;div class=&quot;subSection&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;ol&gt;&lt;li&gt;On the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;File&lt;/span&gt;&amp;nbsp;menu, click&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;New Project&lt;/span&gt;.&lt;/li&gt;
&lt;li&gt;In the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;New Project&lt;/span&gt;&amp;nbsp;dialog box, in the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Templates&lt;/span&gt;&amp;nbsp;pane, click&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;WPF Application&lt;/span&gt;.&lt;/li&gt;
&lt;li&gt;In the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Name&lt;/span&gt;&amp;nbsp;box, type&amp;nbsp;&lt;span class=&quot;input&quot;&gt;WPFWindow&lt;/span&gt;, and then click&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;OK&lt;/span&gt;.&lt;br /&gt;
&lt;div style=&quot;margin-top: -6px;&quot;&gt;A new Windows Presentation Foundation project is created. A new window named&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Window1&lt;/span&gt;&amp;nbsp;appears. Its XAML markup is visible in the XAML editor of the Visual Basic&amp;nbsp;integrated development environment (IDE) and appears as follows:&lt;/div&gt;&lt;div class=&quot;codeSnippetContainer&quot; style=&quot;min-width: 260px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;div class=&quot;codeSnippetContainerTabs&quot; style=&quot;font-size: 10pt !important; height: 22px; position: relative; vertical-align: middle; z-index: 1;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;codeSnippetContainerCodeContainer&quot; style=&quot;border-bottom-color: rgb(229, 229, 229); border-bottom-style: solid; border-bottom-width: 3px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(229, 229, 229); border-right-style: solid; border-right-width: 1px; clear: both; margin-bottom: 12px; position: relative; top: -3px;&quot;&gt;&lt;div class=&quot;codeSnippetToolBar&quot; style=&quot;border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(229, 229, 229); border-right-style: solid; border-right-width: 3px; border-top-color: rgb(229, 229, 229); border-top-style: solid; border-top-width: 3px; height: auto; width: auto;&quot;&gt;&lt;div class=&quot;codeSnippetToolBarText&quot; style=&quot;background-color: white; float: right; height: 0px; padding-left: 4px; padding-right: 4px; position: relative; top: -8px; vertical-align: top; width: auto;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;codeSnippetContainerCode&quot; dir=&quot;ltr&quot; id=&quot;CodeSnippetContainerCode_97f2f706-48ce-4f6b-b2c8-5417863d1eba&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 9px; padding-left: 21px; padding-right: 21px; padding-top: 9px; width: auto;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;pre style=&quot;font-family: Consolas, Courier, monospace; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt;Window x:Class=&quot;Window1&quot;

xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
    Title=&quot;Window1&quot; Height=&quot;300&quot; Width=&quot;300&quot;&amp;gt;
    &amp;lt;Grid&amp;gt;

    &amp;lt;/Grid&amp;gt;
&amp;lt;/Window&amp;gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Click&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Window1&lt;/span&gt;&amp;nbsp;to select it.&lt;/li&gt;
&lt;li&gt;In the XAML editor, change the&amp;nbsp;&lt;span class=&quot;code&quot;&gt;Title&lt;/span&gt;&amp;nbsp;attribute of the&amp;nbsp;&lt;span class=&quot;code&quot;&gt;Window&lt;/span&gt;&amp;nbsp;element from&amp;nbsp;&lt;span class=&quot;code&quot;&gt;Window1&lt;/span&gt;&amp;nbsp;to&lt;span class=&quot;code&quot;&gt;WPF Application&lt;/span&gt;.&lt;br /&gt;
&lt;div style=&quot;margin-top: -6px;&quot;&gt;The XAML markup will now appear as follows:&lt;/div&gt;&lt;div class=&quot;codeSnippetContainer&quot; style=&quot;min-width: 260px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;div class=&quot;codeSnippetContainerTabs&quot; style=&quot;font-size: 10pt !important; height: 22px; position: relative; vertical-align: middle; z-index: 1;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;codeSnippetContainerCodeContainer&quot; style=&quot;border-bottom-color: rgb(229, 229, 229); border-bottom-style: solid; border-bottom-width: 3px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(229, 229, 229); border-right-style: solid; border-right-width: 1px; clear: both; margin-bottom: 12px; position: relative; top: -3px;&quot;&gt;&lt;div class=&quot;codeSnippetToolBar&quot; style=&quot;border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(229, 229, 229); border-right-style: solid; border-right-width: 3px; border-top-color: rgb(229, 229, 229); border-top-style: solid; border-top-width: 3px; height: auto; width: auto;&quot;&gt;&lt;div class=&quot;codeSnippetToolBarText&quot; style=&quot;background-color: white; float: right; height: 0px; padding-left: 4px; padding-right: 4px; position: relative; top: -8px; vertical-align: top; width: auto;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;codeSnippetContainerCode&quot; dir=&quot;ltr&quot; id=&quot;CodeSnippetContainerCode_32fce05c-80df-49ff-a1e3-7e7ad731b4f5&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 9px; padding-left: 21px; padding-right: 21px; padding-top: 9px; width: auto;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;pre style=&quot;font-family: Consolas, Courier, monospace; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt;Window x:Class=&quot;Window1&quot;
    xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
    Title=&quot;WPF Application&quot; Height=&quot;300&quot; Width=&quot;300&quot;&amp;gt;
    &amp;lt;Grid&amp;gt;
        
    &amp;lt;/Grid&amp;gt;
&amp;lt;/Window&amp;gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;The text in the title bar of&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Window1&lt;/span&gt;&amp;nbsp;changes to&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;WPF Application&lt;/span&gt;.&lt;br /&gt;
&lt;div style=&quot;margin-top: -6px;&quot;&gt;Experiment by changing other attributes of the Window, such as&amp;nbsp;&lt;span class=&quot;code&quot;&gt;Width&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span class=&quot;code&quot;&gt;Height&lt;/span&gt;. When you are ready, continue with the next procedure.&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;&quot;&gt;&lt;div class=&quot;LW_CollapsibleArea_TitleDiv&quot; style=&quot;margin-bottom: 19px; margin-top: 9px;&quot;&gt;&lt;div&gt;&lt;img class=&quot;cl_CollapsibleArea_expanding LW_CollapsibleArea_Img&quot; src=&quot;http://i.msdn.microsoft.com/Hash/030c41d9079671d09a62d8e2c1db6973.gif&quot; style=&quot;background-attachment: scroll; background-clip: initial; background-color: initial; background-image: url(http://i3.msdn.microsoft.com/Hash/c764fa3d6b8a84bd40aa131355215c98.png); background-origin: initial; background-position: -2762px -3px; background-repeat: no-repeat no-repeat; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; height: 12px; overflow-x: hidden; overflow-y: hidden; vertical-align: middle; width: 9px;&quot; /&gt;&lt;span class=&quot;LW_CollapsibleArea_Title&quot; style=&quot;color: #3f529c; font-size: 1.538em; font-weight: bold; padding-left: 6px; word-break: break-all; word-wrap: break-word;&quot;&gt;Adding Controls to the WPF Window&lt;/span&gt;&lt;div class=&quot;LW_CollapsibleArea_HrDiv&quot; style=&quot;padding-top: 12px;&quot;&gt;&lt;hr class=&quot;LW_CollapsibleArea_Hr&quot; style=&quot;border-bottom-color: rgb(229, 229, 229); border-bottom-style: solid; border-right-color: initial; border-right-style: none; border-right-width: initial; border-top-color: initial; border-top-style: none; border-top-width: initial; color: #e5e5e5; margin-left: 4px;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;sectionblock&quot; style=&quot;clear: both; padding-left: 15px;&quot;&gt;&lt;a href=&quot;&quot; id=&quot;sectionToggle1&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;/a&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;In this procedure, you will add controls to your application. You will do this by clicking the control in the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Toolbox&lt;/span&gt;, usually found on the left-hand side of the Visual Basic&amp;nbsp;IDE, and then dragging the control onto your WPF window. You will set some properties for the control and&amp;nbsp;then adjust the XAML markup to change the control&#39;s text and size.&lt;/div&gt;&lt;h3 class=&quot;procedureSubHeading&quot; style=&quot;color: #3f529c; font-size: 1.077em;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;To add a control to the WPF window&lt;/h3&gt;&lt;div class=&quot;subSection&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;ol&gt;&lt;li&gt;From the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Toolbox&lt;/span&gt;, drag a&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;TextBox&lt;/span&gt;&amp;nbsp;control to the upper right side of the WPF window.&lt;/li&gt;
&lt;li&gt;Select the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;TextBox&lt;/span&gt;&amp;nbsp;control.&lt;/li&gt;
&lt;li&gt;In the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Properties&lt;/span&gt;&amp;nbsp;window, click the first arrow (Left) for the&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;HorizontalAlignment&lt;/span&gt;&amp;nbsp;property, as shown in the following illustration.&lt;br /&gt;
&lt;div class=&quot;caption&quot; style=&quot;clear: both !important; color: #3f529c; font-size: 1.007em; font-weight: bold; height: 20px !important;&quot;&gt;HorizontalAlignment property&lt;/div&gt;&lt;br /&gt;
&lt;img alt=&quot;HorizontalAlignment Property&quot; id=&quot;ExpHorizAlignProp&quot; src=&quot;http://i.msdn.microsoft.com/dynimg/IC35728.png&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;HorizontalAlignment Property&quot; xmlns=&quot;&quot; /&gt;This moves the&amp;nbsp;&lt;span class=&quot;input&quot;&gt;TextBox&lt;/span&gt;&amp;nbsp;from the right side of the WPF window to the left side.&lt;/li&gt;
&lt;li&gt;Set the following properties for the&amp;nbsp;&lt;span class=&quot;input&quot;&gt;TextBox&lt;/span&gt;.&lt;br /&gt;
&lt;div class=&quot;caption&quot; style=&quot;clear: both !important; color: #3f529c; font-size: 1.007em; font-weight: bold; height: 20px !important;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;tableSection&quot;&gt;&lt;table style=&quot;border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; width: 986px;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;vertical-align: top;&quot;&gt;&lt;th style=&quot;background-color: #e5e5e5; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; font-size: 1.077em; height: 21px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left;&quot;&gt;Property&lt;/th&gt;&lt;th style=&quot;background-color: #e5e5e5; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; font-size: 1.077em; height: 21px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left;&quot;&gt;Value&lt;/th&gt;&lt;/tr&gt;
&lt;tr style=&quot;vertical-align: top;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;&quot;&gt;&lt;div style=&quot;position: relative;&quot;&gt;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;VerticalAlignment -- TOP&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;&quot;&gt;&lt;div style=&quot;position: relative;&quot;&gt;&lt;span class=&quot;input&quot;&gt;Top&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;vertical-align: top;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;&quot;&gt;&lt;div style=&quot;position: relative;&quot;&gt;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Width -- 75&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;&quot;&gt;&lt;div style=&quot;position: relative;&quot;&gt;&lt;span class=&quot;input&quot;&gt;75&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;vertical-align: top;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;&quot;&gt;&lt;div style=&quot;position: relative;&quot;&gt;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Height --26&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;&quot;&gt;&lt;div style=&quot;position: relative;&quot;&gt;&lt;span class=&quot;input&quot;&gt;26&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;In the XAML editor, change the&amp;nbsp;&lt;span class=&quot;code&quot;&gt;Width&lt;/span&gt;&amp;nbsp;attribute of the&amp;nbsp;&lt;span class=&quot;code&quot;&gt;TextBox&lt;/span&gt;&amp;nbsp;element to&amp;nbsp;&lt;span class=&quot;code&quot;&gt;140&lt;/span&gt;, and change the&amp;nbsp;&lt;span class=&quot;code&quot;&gt;Margin&lt;/span&gt;&amp;nbsp;element to&amp;nbsp;&lt;span class=&quot;code&quot;&gt;30, 56, 0, 0&lt;/span&gt;, as shown in the following example.&lt;br /&gt;
&lt;div class=&quot;codeSnippetContainer&quot; style=&quot;min-width: 260px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;div class=&quot;codeSnippetContainerTabs&quot; style=&quot;font-size: 10pt !important; height: 22px; position: relative; vertical-align: middle; z-index: 1;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;codeSnippetContainerCodeContainer&quot; style=&quot;border-bottom-color: rgb(229, 229, 229); border-bottom-style: solid; border-bottom-width: 3px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(229, 229, 229); border-right-style: solid; border-right-width: 1px; clear: both; margin-bottom: 12px; position: relative; top: -3px;&quot;&gt;&lt;div class=&quot;codeSnippetToolBar&quot; style=&quot;border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(229, 229, 229); border-right-style: solid; border-right-width: 3px; border-top-color: rgb(229, 229, 229); border-top-style: solid; border-top-width: 3px; height: auto; width: auto;&quot;&gt;&lt;div class=&quot;codeSnippetToolBarText&quot; style=&quot;background-color: white; float: right; height: 0px; padding-left: 4px; padding-right: 4px; position: relative; top: -8px; vertical-align: top; width: auto;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;codeSnippetContainerCode&quot; dir=&quot;ltr&quot; id=&quot;CodeSnippetContainerCode_0e8eb6af-0df8-48ad-937a-bab4ef4fe0dd&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 9px; padding-left: 21px; padding-right: 21px; padding-top: 9px; width: auto;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;pre style=&quot;font-family: Consolas, Courier, monospace; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt;TextBox Height=&quot;26&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;30,56,0,0&quot; 
    Name=&quot;TextBox1&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;140&quot; /&amp;gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;The width and location of the&amp;nbsp;&lt;span class=&quot;input&quot;&gt;TextBox&lt;/span&gt;&amp;nbsp;change after you type the new values.&lt;/li&gt;
&lt;li&gt;Add a&amp;nbsp;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot;&gt;Button&lt;/span&gt;&amp;nbsp;control to the WPF window, next to the&amp;nbsp;&lt;span class=&quot;input&quot;&gt;TextBox&lt;/span&gt;.&lt;/li&gt;
&lt;li&gt;Change the text between the opening and closing&amp;nbsp;&lt;span class=&quot;code&quot;&gt;Button&lt;/span&gt;&amp;nbsp;tags from&amp;nbsp;&lt;span class=&quot;code&quot;&gt;Button&lt;/span&gt;&amp;nbsp;to&amp;nbsp;&lt;span class=&quot;code&quot;&gt;Submit&lt;/span&gt;, as shown in the following example.&lt;br /&gt;
&lt;div class=&quot;codeSnippetContainer&quot; style=&quot;min-width: 260px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;div class=&quot;codeSnippetContainerTabs&quot; style=&quot;font-size: 10pt !important; height: 22px; position: relative; vertical-align: middle; z-index: 1;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;codeSnippetContainerCodeContainer&quot; style=&quot;border-bottom-color: rgb(229, 229, 229); border-bottom-style: solid; border-bottom-width: 3px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(229, 229, 229); border-right-style: solid; border-right-width: 1px; clear: both; margin-bottom: 12px; position: relative; top: -3px;&quot;&gt;&lt;div class=&quot;codeSnippetToolBar&quot; style=&quot;border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(229, 229, 229); border-right-style: solid; border-right-width: 3px; border-top-color: rgb(229, 229, 229); border-top-style: solid; border-top-width: 3px; height: auto; width: auto;&quot;&gt;&lt;div class=&quot;codeSnippetToolBarText&quot; style=&quot;background-color: white; float: right; height: 0px; padding-left: 4px; padding-right: 4px; position: relative; top: -8px; vertical-align: top; width: auto;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;codeSnippetContainerCode&quot; dir=&quot;ltr&quot; id=&quot;CodeSnippetContainerCode_f73fa68a-b086-4d6b-9cda-c329922f374c&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 9px; padding-left: 21px; padding-right: 21px; padding-top: 9px; width: auto;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;pre style=&quot;font-family: Consolas, Courier, monospace; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt;Button Height=&quot;23&quot; HorizontalAlignment=&quot;Right&quot; Margin=&quot;0,59,35,0&quot; 
    Name=&quot;Button1&quot; VerticalAlignment=&quot;Top&quot; 
    Width=&quot;75&quot;&amp;gt;Submit&amp;lt;/Button&amp;gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;The text on the button changes after you enter the new value.&lt;/li&gt;
&lt;li&gt;Press F5 to run your program. A window containing the text box and button that you just added appears. Notice that you can click the button and type in the text box. You must add event handlers to the controls and then write code that instructs the computer what to do when the button is clicked.&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/8949231684118703673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/to-create-wpf-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/8949231684118703673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/8949231684118703673'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/to-create-wpf-application.html' title='To create a WPF application'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-1650134153216910498</id><published>2011-11-07T03:56:00.000-08:00</published><updated>2011-11-07T03:57:31.468-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Calender Program In C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;Beginning of Calendar.cs&lt;/span&gt;&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;This program prints out the calendar for a full year,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;specified by the user.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;using System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;class Calendar &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;const int Sunday&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;const int Monday&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;const int Tuesday&amp;nbsp;&amp;nbsp; = 2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;const int Wednesday = 3;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;const int Thursday&amp;nbsp; = 4;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;const int Friday&amp;nbsp;&amp;nbsp;&amp;nbsp; = 5;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;const int Saturday&amp;nbsp; = 6;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;static void Main (string[] args) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int year;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GiveInstructions();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year = GetYearFromUser();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrintCalendar(year);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;static void GiveInstructions () &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;This program displays a calendar for a full&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;year.&amp;nbsp; The year must not be before 1900.&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;static int GetYearFromUser () &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int year = 1900;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (true)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.Write(&quot;Which year? &quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year = Int32.Parse(Console.ReadLine());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (year &amp;gt;= 1900) return year;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;The year must be at least 1900.&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;static void PrintCalendar(int year) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int month;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (month = 1; month &amp;lt;= 12; month++)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrintCalendarMonth(month, year);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;static void PrintCalendarMonth(int month, int year) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int weekday, nDays, day;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot; + (MonthName(month)) + &quot; &quot; + year);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot; Su Mo Tu We Th Fr Sa&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nDays = MonthDays(month, year);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekday = FirstDayOfMonth(month, year);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IndentFirstLine(weekday);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (day = 1; day &amp;lt;= nDays; day++) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (day &amp;gt; 9) Console.Write(&quot; &quot; + day);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else Console.Write(&quot;&amp;nbsp; &quot; + day);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (weekday == Saturday) Console.WriteLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekday = (weekday + 1) % 7;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (weekday != Sunday) Console.WriteLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;static void IndentFirstLine(int weekday)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 0; i &amp;lt; weekday; i++)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.Write(&quot;&amp;nbsp;&amp;nbsp; &quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;static int MonthDays(int month, int year)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (month)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (IsLeapYear(year)) return (29);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (28);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 4: case 6: case 9: case 11:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (30);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (31);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;static int FirstDayOfMonth(int month, int year) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int weekday, i;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekday = Monday;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 1900; i &amp;lt; year; i++)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekday = (weekday + 365) % 7;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (IsLeapYear(i)) weekday = (weekday + 1) % 7;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 1; i &amp;lt; month; i++)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekday = (weekday + MonthDays(i, year)) % 7;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (weekday);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;static string MonthName(int month) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (month)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case&amp;nbsp; 1: return (&quot;January&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case&amp;nbsp; 2: return (&quot;February&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case&amp;nbsp; 3: return (&quot;March&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case&amp;nbsp; 4: return (&quot;April&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case&amp;nbsp; 5: return (&quot;May&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case&amp;nbsp; 6: return (&quot;June&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case&amp;nbsp; 7: return (&quot;July&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case&amp;nbsp; 8: return (&quot;August&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case&amp;nbsp; 9: return (&quot;September&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 10: return (&quot;October&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 11: return (&quot;November&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 12: return (&quot;December&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default: return (&quot;Illegal month&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;static bool IsLeapYear(int year)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ( ((year % 4 == 0) &amp;amp;&amp;amp; (year % 100 != 0))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; || (year % 400 == 0) );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/1650134153216910498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/calender-program-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/1650134153216910498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/1650134153216910498'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/calender-program-in-c.html' title='Calender Program In C#'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-842345781938265840.post-4835304198790808608</id><published>2011-11-05T05:00:00.000-07:00</published><updated>2011-11-05T05:00:33.374-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DotNet"/><title type='text'>.NET FRAMEWORK</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;strong style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;What is .Net Framework?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;A main part of the .Net technology and structur&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;e is the ASP.net set of technologies. These web development technologies are used in the making of Websites and net services working on the .NET infrastructure. ASP.NET was build by Microsoft from one of their big technologies and web programmers can make use of any encoding language they want to write ASP.NET, from Perl to C Sharp (C#) and of course VB.NET and a few extra language unspoken with the .NET technology.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br style=&quot;font-size: 12px; text-align: -webkit-auto;&quot; /&gt;&lt;strong style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;Pre requisites for .Net training:&lt;/strong&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-size: 12px; text-align: -webkit-auto;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;It&#39;s all about you should know before starting Training in core java.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Basic concepts of Programming Structure&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Environmental Knowledge of OOPs&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Should have some knowledge in RDBMS&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
What will you learn at SSDN Technologies?&lt;/strong&gt;&lt;br style=&quot;font-size: 12px; text-align: -webkit-auto;&quot; /&gt;&lt;br style=&quot;font-size: 12px; text-align: -webkit-auto;&quot; /&gt;&lt;b style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;Module 1: Object Oriented Programming Using C#&lt;/b&gt;&lt;/span&gt;&lt;ul style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Explain features and phases of the object-oriented approach&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Write and execute C# programs&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Use decision-making constructs and loop constructs&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Implement structures, enumerations, arrays, and collections&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Implement polymorphism and overload functions and operators&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Explain and use delegates and events&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Use various stream classes to implement file handling&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Develop single and multithreaded applications&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Identify the components of the Visual Studio .NET Framework and Integrated Development Environment (IDE)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;b style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Module 2: GUI Applications Development using .NET Framework&lt;/span&gt;&lt;/b&gt;&lt;ul style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Work with the Windows Forms and controls&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Perform validation of controls using classes and controls&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Work with Dialog Boxes, Menus and MDI Application&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Implement Printing and Reporting Functionality in a Windows Forms Application&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Implement Asynchronous programming&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Package, deploy, and secure applications&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;b style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Module 3: Developing Database Applications Using ADO.NET and XML&lt;/span&gt;&lt;/b&gt;&lt;ul style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Identify the need for XML as a standard data interchange format&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Create an XML schema&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Create a cascading style sheet and an Extensible Style Sheet Language Transformation (XSLT) to format data&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Use XPath pattern matching in a style sheet&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Create and manage connections using ADO.NET&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Identify the disconnected and connected environment in ADO.NET&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Create datasets and datatables&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Retrieve and store large binary data&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Perform bulk copy operations&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Execute SQL notification maintain and update a cache&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Manage distributed transactions&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Read, write, validate, and modify XML data using XML reader and writer classes&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Read, write, and modify XML data using DOM API&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;b style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Module 4: Developing Web applications Using ASP.NET 4.0&lt;/span&gt;&lt;/b&gt;&lt;ul style=&quot;font-size: 12px; text-align: -webkit-auto;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Create a Web Application&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Program a Web Application&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Add and Configure Server Controls&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Create a Common Layout by Using Master Pages&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Manage State for a Web Application&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Access and Display Data&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Control Access to a Web Application&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Deploy a Web Application&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Make Web Applications Available to Mobile Devices&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Build Dynamic Web Applications&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Create Controls for Web Applications&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Optimize Web Application Performance&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Implement Personalization and Themes in Web Applications&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Build Web Part Pages and Web Parts&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://site4dotnet.blogspot.com/feeds/4835304198790808608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/net-framework.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/4835304198790808608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/842345781938265840/posts/default/4835304198790808608'/><link rel='alternate' type='text/html' href='http://site4dotnet.blogspot.com/2011/11/net-framework.html' title='.NET FRAMEWORK'/><author><name>MaHi</name><uri>http://www.blogger.com/profile/12794564275640041118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>