<?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-6543783748215125893</id><updated>2014-07-15T02:17:31.322-07:00</updated><category term="C#"/><category term="Visual C#"/><category term="OOPS"/><category term="News"/><category term="Palindrome"/><category term="ASCII"/><category term="ASP.NET"/><category term="Abstraction"/><category term="Encapsulation"/><category term="Facebook"/><category term="Facebook Hack"/><category term="MVC"/><category term="apple"/><category term="swift"/><title type='text'>Programming Inspiration</title><subtitle type='html'>World of Programming</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mssaggoo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default'/><link rel='alternate' type='text/html' href='http://mssaggoo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>M.S. Saggoo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-XuY92sbi1fw/AAAAAAAAAAI/AAAAAAAAA8g/cAFqNfZ2Eow/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6543783748215125893.post-3573882541153583331</id><published>2014-07-07T05:56:00.002-07:00</published><updated>2014-07-07T05:56:26.988-07:00</updated><title type='text'>www.saggooms.wix.com/blog</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;We have moved to Wix, our new blog is here: &lt;a href=&quot;http://www.saggooms.wix.com/blog&quot;&gt;www.saggooms.wix.com/blog&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mssaggoo.blogspot.com/feeds/3573882541153583331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssaggoo.blogspot.com/2014/07/wwwsaggoomswixcomblog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/3573882541153583331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/3573882541153583331'/><link rel='alternate' type='text/html' href='http://mssaggoo.blogspot.com/2014/07/wwwsaggoomswixcomblog.html' title='www.saggooms.wix.com/blog'/><author><name>M.S. Saggoo</name><uri>https://plus.google.com/105534980738722698812</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-XuY92sbi1fw/AAAAAAAAAAI/AAAAAAAAA8g/cAFqNfZ2Eow/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6543783748215125893.post-3462753727794236498</id><published>2014-06-14T08:07:00.000-07:00</published><updated>2014-06-14T08:09:26.440-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Palindrome"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual C#"/><title type='text'>Program in C#: How to Check if a String is Palindrome or not - Three line solution - Shortest Method</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;T&lt;/span&gt;oday i will tell you program in C#, about how to check whether a string is a Palindrome or not. You may also check &lt;a href=&quot;http://mssaggoo.blogspot.in/2014/06/how-to-check-if-number-or-phrase-is.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Long&lt;/span&gt; &lt;/a&gt;version.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is Palindrome?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: Verdana, sans-serif; line-height: 22.399999618530273px;&quot;&gt;Palindrome&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: Verdana, sans-serif; line-height: 22.399999618530273px;&quot;&gt;&amp;nbsp;is a word, phrase,&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Palindromic_number&quot; style=&quot;background: none rgb(255, 255, 255); color: #0b0080; font-family: Verdana, sans-serif; line-height: 22.399999618530273px; text-decoration: none;&quot; title=&quot;Palindromic number&quot;&gt;number&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: Verdana, sans-serif; line-height: 22.399999618530273px;&quot;&gt;, or other sequence of symbols or elements that reads the same forward or reversed. For example: &quot;madam&quot;, &quot;1221&quot;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Here&#39;s the code:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas;&quot;&gt; phrase=&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas;&quot;&gt;.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas;&quot;&gt;.WriteLine(&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas;&quot;&gt;Enumerable&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas;&quot;&gt;.SequenceEqual(phrase, phrase.Reverse()));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; line-height: 107%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; line-height: 107%;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; line-height: 107%;&quot;&gt;.ReadLine();&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; line-height: 107%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-5KEZuGUv0IY/U5xk49lg0ZI/AAAAAAAAA9k/cnJRiRdgtm4/s1600/civic.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-5KEZuGUv0IY/U5xk49lg0ZI/AAAAAAAAA9k/cnJRiRdgtm4/s1600/civic.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Output is True for Palindrome String &quot;civic&quot;&lt;/span&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: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-VbA3lH0oThc/U5xkqan8SxI/AAAAAAAAA9c/WMTUI3wx4ME/s1600/civic2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-VbA3lH0oThc/U5xkqan8SxI/AAAAAAAAA9c/WMTUI3wx4ME/s1600/civic2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Output is False for Non Palindrome String &quot;hello&quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-4841448315070614181&quot; itemprop=&quot;description articleBody&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.200000762939453px; orphans: auto; position: relative; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 726px; word-spacing: 0px;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;bio clearfix&quot; style=&quot;background-color: #f8f8f8; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; font-style: italic; line-height: 24.479999542236328px; margin: 2em 0px 4em; padding: 2em; text-align: start; zoom: 1;&quot;&gt;&lt;a href=&quot;https://plus.google.com/+MSSaggoo/about&quot; style=&quot;color: #7d181e; text-decoration: none;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;M.S. Saggoo&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;&amp;nbsp;is a Software Engineer&amp;nbsp;and founder of&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://mssaggoo.blogspot.in/&quot; rel=&quot;author&quot; style=&quot;color: #7d181e; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Programming Inspiration&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;, a popular &amp;nbsp;programming news and development blog since 2013.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #282828;&quot;&gt;What can I do for you? I can be found on&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.facebook.com/saggoo.ms&quot; rel=&quot;author&quot; style=&quot;color: #7d181e; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Facebook&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;&amp;nbsp;and can be reached by&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;mailto:dreamhighandwin@gmail.com&quot; style=&quot;color: #7d181e; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;email&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;mailto:dreamhighandwin@gmail.com&quot; style=&quot;color: #282828; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mssaggoo.blogspot.com/feeds/3462753727794236498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssaggoo.blogspot.com/2014/06/program-in-c-how-to-check-if-string-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/3462753727794236498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/3462753727794236498'/><link rel='alternate' type='text/html' href='http://mssaggoo.blogspot.com/2014/06/program-in-c-how-to-check-if-string-is.html' title='Program in C#: How to Check if a String is Palindrome or not - Three line solution - Shortest Method'/><author><name>M.S. Saggoo</name><uri>https://plus.google.com/105534980738722698812</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-XuY92sbi1fw/AAAAAAAAAAI/AAAAAAAAA8g/cAFqNfZ2Eow/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-5KEZuGUv0IY/U5xk49lg0ZI/AAAAAAAAA9k/cnJRiRdgtm4/s72-c/civic.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6543783748215125893.post-2060532010052002623</id><published>2014-06-13T06:50:00.004-07:00</published><updated>2014-06-24T06:27:48.157-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual C#"/><title type='text'>An Absolute Beginner&#39;s Tutorial for Understanding ASP.NET MVC Routes</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;header&quot; style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; margin: 0px; padding: 0px;&quot;&gt;&lt;div class=&quot;title&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 0px;&quot;&gt;&lt;h1 id=&quot;ctl00_ArticleTitle&quot; itemprop=&quot;name&quot; style=&quot;color: #333333; margin: 0px 0px 7px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #ff9900; font-family: Verdana, sans-serif; font-size: small;&quot;&gt;Introduction&lt;/span&gt;&lt;/h1&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;text&quot; id=&quot;contentdiv&quot; itemprop=&quot;articleBody&quot; style=&quot;background-color: white; border: 0px; color: #111111; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In this article we will try to understand about ASP.NET MVC Routes. We will get to know the details about routes and try to see how we can implement route constraints.&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;color: #ff9900; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;Background&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Developer coming from the the background of ASP.NET Webforms find it rather difficult to understand(when starting work in MVC) how the request gets mapped to a controller&#39;s action and ultimately a view gets rendered on the screen. In Web forms the request is actually mapped to the page that is physically present in the application directory. But in ASP.NET MVC the every request needs to be mapped to a controller. There is no concept of physical ASPX file in ASP.NET MVC.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In ASP.NET MVC we have controllers. Each controller will have multiple action and every action is supposed to take care of a user request. How the user requested URL gets mapped to the controller&#39;s action methods? The answer to this question is the Routing mechanism in ASP.NET MVC. The routes are the bridges between the user requested URL and the controller&#39;s action method. Routes takes care of the mapping strategy for mapping request URLs to the controllers and action methods.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This does not mean that we have to manually map all the URLs to the controllers and actions. ASP.NET MVC provides the mechanism of automating the routing by specifying the routes which are sort of hints/patterns. These hints/patterns will let the routing module understand the request URL and corresponding controller and action to invoke.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To let the routing engine understand better, we can specify the following in a route:&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;border: 0px; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Patterns:&lt;/strong&gt;&amp;nbsp;This helps the parser understand how to break down request URL and map them to specific controller and action.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Route parameters:&lt;/strong&gt;&amp;nbsp;This let the engine understand the parameters coming in routes and maps them to the arguments of action methods.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Route Constraints&lt;/strong&gt;: This let the parser know the type of the paramters being passed (string/int).&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Ignore Rules&lt;/strong&gt;: This let the parser know what all routes or pattern of routes should be ignored.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=&quot;color: #ff9900; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;Using the code&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To understand the above concepts in a better way, let us create a simple empty MVC 4 web application. We will see how we can specify various routes for this application.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;All the route information is stored in a collection called as&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;RouteCollection&lt;/code&gt;. If we want to specify route patterns for our application we need to add these patterns to this collection whenever our applicaiton starts. MVC 4 Project templates provides a default route already added to the&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;RouteCollection&lt;/code&gt;. This default route exists in&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;RegisterRoutes&amp;nbsp;&lt;/code&gt;method of&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;RouteConfig.cs&lt;/code&gt;&amp;nbsp;file. This method is called from&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;Application_Start&lt;/code&gt;&amp;nbsp;life cycle event in&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;global.asax&lt;/code&gt;&amp;nbsp;file. Let us look at this default route and try to understand the pattern.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;pre-action-link&quot; id=&quot;premain0&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right;&quot; width=&quot;100%&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre id=&quot;pre0&quot; lang=&quot;cs&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;routes.MapRoute(&lt;br /&gt;    name: &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Default&quot;&lt;/span&gt;,&lt;br /&gt;    url: &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;{controller}/{action}/{id}&quot;&lt;/span&gt;,&lt;br /&gt;    defaults: &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; { controller = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Home&quot;&lt;/span&gt;, action = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Index&quot;&lt;/span&gt;, id = UrlParameter.Optional }&lt;br /&gt;);&lt;br /&gt;&lt;/pre&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The first property is the name of the route. Every route we add to the route collection should have unique name so that it can be uniquely identified. The second property is the url, It specifies the pattern of of request URL to act&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;{controller}/{action}/{id}.&lt;/code&gt;&amp;nbsp;So if a user is requesting a URL like:&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;www.example.com/Customer/Edit/1&lt;/code&gt;, this URL will invoke the Customer controller&#39;s Edit Action method with a parameter id a 1. The third property specifies the default value of controller, action and id parameter i.e. If the user requests for www.example.com then since the controller, action and id part are absent in the URL, the routing engine will take the default values and invoke Home controller,s Index action with no id parameter(since it is specified as optional).&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now the first question that comes in mind is - what if we have to supply 2 parameters to the action method. Well, that is fairly easy to do. All we need to do is to specify mulitple parameter values in the route:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;pre-action-link&quot; id=&quot;premain1&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right;&quot; width=&quot;100%&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre id=&quot;pre1&quot; lang=&quot;cs&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;routes.MapRoute(&lt;br /&gt;    name: &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;multipleparams&quot;&lt;/span&gt;,&lt;br /&gt;    url: &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;{controller}/{action}/{param1}/{param2}&quot;&lt;/span&gt;,&lt;br /&gt;    defaults: &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; { controller = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Home&quot;&lt;/span&gt;, action = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Action2&quot;&lt;/span&gt;, param1 = UrlParameter.Optional, param2 = UrlParameter.Optional }&lt;br /&gt;);&lt;br /&gt;&lt;/pre&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In the similar manner, we can specify any number of route parameters in the route pattern. Also, we can choose to make any of these parameters as optional.&lt;/span&gt;&lt;/div&gt;&lt;h4 style=&quot;font-size: 16px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Route Constraints&lt;/span&gt;&lt;/h4&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Route constraints are mainly used to restrict the request URL that match a particular route and this particular route. This can be used to restrict the routes that are invalid for our application. The route constraint i specified in form of a regular expression. Lets try to understand the problem by defining a simple action method to edit the an entity. Lets define the action method for it.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;pre-action-link&quot; id=&quot;premain2&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right;&quot; width=&quot;100%&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre id=&quot;pre2&quot; lang=&quot;cs&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt; HomeController : Controller&lt;br /&gt;{&lt;br /&gt;    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; ActionResult Edit(&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; id)&lt;br /&gt;    {&lt;br /&gt;        ViewBag.Message = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Home/Edit/&quot;&lt;/span&gt; + id;&lt;br /&gt;        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt; View();&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now this action method is expecting an int value to be passed to it. There is a view for this action method which is simply displaying the route. So lets call this action method with the following URL: &quot;&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;Home/Edit/1&lt;/code&gt;&quot;. The result will be:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;img src=&quot;http://www.codeproject.com/KB/aspnet/785710/validRoute.jpg&quot; height=&quot;225px&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; width=&quot;383px&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;What happened was that our default route was sufficient for the routing engine to parse the requested URL and invoke the Edit action. Now Let us try to pass an invalid int value in the route i.e. &quot;&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;Home/Edit/test&lt;/code&gt;&quot;. The result now is:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;img src=&quot;http://www.codeproject.com/KB/aspnet/785710/invalidRoute.jpg&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; width=&quot;600px&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The reason for this is that non integer values are not valid for this action method. So for our application this is an invalid path and to mark this path as invalid path we can define a custom route with route constraint. lets try to define this route with the route constraint.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;pre-action-link&quot; id=&quot;premain3&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right;&quot; width=&quot;100%&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre id=&quot;pre3&quot; lang=&quot;cs&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;routes.MapRoute(&lt;br /&gt;    name: &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;home_Edit&quot;&lt;/span&gt;,&lt;br /&gt;    url: &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Home/Edit/{id}&quot;&lt;/span&gt;,&lt;br /&gt;    defaults: &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; { controller = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Home&quot;&lt;/span&gt;, action = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Edit&quot;&lt;/span&gt; },&lt;br /&gt;    constraints: &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; { id = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;@&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;\d+&quot;&lt;/span&gt; }&lt;br /&gt;);&lt;br /&gt;&lt;/pre&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This route will now only accept valid number values for this route. Now if we try to hit the same URL again the browser will clearly say that this is an invalid URL.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;img src=&quot;http://www.codeproject.com/KB/aspnet/785710/inValidRouteHandled.jpg&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; width=&quot;600px&quot; /&gt;&lt;/div&gt;&lt;h4 style=&quot;font-size: 16px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Ignoring some routes&lt;/span&gt;&lt;/h4&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;There are some scenarios where we would also like to completely ignore some of the routes. If we look at the&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;RouteConfig&amp;nbsp;&lt;/code&gt;class, we can see a code like:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;pre-action-link&quot; id=&quot;premain4&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right;&quot; width=&quot;100%&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre id=&quot;pre4&quot; lang=&quot;cs&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;routes.IgnoreRoute(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;{resource}.axd/{*pathInfo}&quot;&lt;/span&gt;);&lt;br /&gt;&lt;/pre&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;What this does is that it restricts the access to all the URLs ending with&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;.axd&lt;/code&gt;&amp;nbsp;extension because we dont want the end user to be able to access Trace.axd or other resource axd files.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Before wrapping up this small tip, one important thing to keep in mins. The order insert the routes into the&lt;code style=&quot;border: 0px; color: #990000; font-size: 11pt; margin: 0px; padding: 0px;&quot;&gt;RouteCollection&amp;nbsp;&lt;/code&gt;is very important. The routing module i.e the route handler will start looking into this map from top to bottom. So if we need to put some specific routes along with generic ones, we should put the specific ones before the generic ones.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If you like this post, then Please Share this Post with others!&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-4841448315070614181&quot; itemprop=&quot;description articleBody&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.200000762939453px; orphans: auto; position: relative; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 726px; word-spacing: 0px;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;bio clearfix&quot; style=&quot;background-color: #f8f8f8; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; font-style: italic; line-height: 24.479999542236328px; margin: 2em 0px 4em; padding: 2em; text-align: start; zoom: 1;&quot;&gt;&lt;a href=&quot;https://plus.google.com/+MSSaggoo/about&quot; style=&quot;color: #7d181e; text-decoration: none;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;M.S. Saggoo&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;&amp;nbsp;is a Software Designer and Developer and founder of&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://mssaggoo.blogspot.in/&quot; rel=&quot;author&quot; style=&quot;color: #7d181e; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Programming Inspiration&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #282828;&quot;&gt;a popular &amp;nbsp;programming news and development blog since 2013.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #282828;&quot;&gt;I can be found on&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.facebook.com/saggoo.ms&quot; rel=&quot;author&quot; style=&quot;color: #7d181e; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Facebook&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;&amp;nbsp;and can be reached by&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;mailto:dreamhighandwin@gmail.com&quot; style=&quot;color: #7d181e; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;email&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;mailto:dreamhighandwin@gmail.com&quot; style=&quot;color: #282828; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mssaggoo.blogspot.com/feeds/2060532010052002623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssaggoo.blogspot.com/2014/06/an-absolute-beginners-tutorial-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/2060532010052002623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/2060532010052002623'/><link rel='alternate' type='text/html' href='http://mssaggoo.blogspot.com/2014/06/an-absolute-beginners-tutorial-for.html' title='An Absolute Beginner&#39;s Tutorial for Understanding ASP.NET MVC Routes'/><author><name>M.S. Saggoo</name><uri>https://plus.google.com/105534980738722698812</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-XuY92sbi1fw/AAAAAAAAAAI/AAAAAAAAA8g/cAFqNfZ2Eow/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6543783748215125893.post-1626350728389724277</id><published>2014-06-12T00:04:00.000-07:00</published><updated>2014-06-12T00:47:12.431-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="Facebook Hack"/><category scheme="http://www.blogger.com/atom/ns#" term="News"/><title type='text'>Facebook&#39;s Hack: a new programming language for HHVM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h1 style=&quot;background-color: white; color: #4e5665; font-weight: normal; line-height: 36px; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-X4_o6HGMtvA/U5lR1ozx4bI/AAAAAAAAA88/TvJ6RdWuxcs/s1600/hack-programming-language-facebook-code.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-X4_o6HGMtvA/U5lR1ozx4bI/AAAAAAAAA88/TvJ6RdWuxcs/s1600/hack-programming-language-facebook-code.png&quot; height=&quot;197&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;F&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;acebook has released a programming language called Hack, which marries the ease&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 15px; line-height: 1.7em;&quot;&gt;of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 15px; line-height: 1.7em;&quot;&gt;PHP with the rigorous safety controls of older languages such as C++.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;PHP programmers should easily understand Hack, which replicates many of the same features and functions of PHP, and adds a few of its own for greater productivity, said Bryan O’Sullivan, a Facebook engineer on the project.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Over the past year, Facebook has&amp;nbsp;&lt;a href=&quot;https://code.facebook.com/posts/264544830379293/hack-a-new-programming-language-for-hhvm/&quot; style=&quot;box-sizing: border-box; color: #25a7d7; text-decoration: none;&quot;&gt;converted nearly all of its PHP code base to Hack&lt;/a&gt;, which makes up the core of its website.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In creating Hack, Facebook took an approach that was similar to Microsoft’s with TypeScript,&amp;nbsp;&lt;a href=&quot;http://www.infoworld.com/d/application-development/microsoft-typescript-graduates-visual-studio-237166&quot; style=&quot;box-sizing: border-box; color: #25a7d7; text-decoration: none;&quot;&gt;which is basically a superset of JavaScript&lt;/a&gt;&amp;nbsp;that, like Hack, adds static typing.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Both projects set out to strengthen a popular dynamic programming language so it can be more easily used by large software teams to design mission-critical applications.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Individuals would also benefit by using Hack, O’Sullivan said, both in terms of increasing performance of their websites and improving the overall quality of their code.&lt;/span&gt;&lt;/div&gt;&lt;/h1&gt;&lt;h2 style=&quot;background-color: white; box-sizing: border-box; color: #222222; margin-bottom: 0.25em; margin-top: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;Extending PHP&lt;/span&gt;&lt;/h2&gt;&lt;h1 style=&quot;background-color: white; color: #4e5665; font-size: 32px; font-weight: normal; line-height: 36px; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hack requires Facebook’s HHVM (Hip Hop Virtual Machine) to run.&amp;nbsp;&lt;a href=&quot;http://hhvm.com/&quot; style=&quot;box-sizing: border-box; color: #25a7d7; text-decoration: none;&quot;&gt;HHVM&lt;/a&gt;&amp;nbsp;is a virtual machine that compiles PHP, normally an interpreted language, into byte code, so it can run more quickly.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hack is basically an extension of the PHP language with built-in static typing, a feature found in more traditional programming languages such as C/C++ and Java, O’Sullivan said.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Many of the newer Web-oriented programming languages, such as PHP and JavaScript, do not have static typing, hence they are referred to as dynamically typed languages.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;With dynamic typing, “there is no explicit information in the source code that describes what kind of information the program is dealing with,” O’Sullivan said.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In contrast, static typing requires the programmer to define the data type for each variable before that program is compiled or run.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Though it takes extra work to implement, static typing prevents run-time errors occurring when the wrong data type is entered into the program, either by human input or some other computer function.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;“There are certain kinds of errors and crashes that can occur,” if the programmer is not careful about what data is assigned to variables, O’Sullivan said. “These latent errors can hide for a long time in a dynamically typed languages.”&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The HHVM virtual machine has a built-in type checker to ensure that all of the typed information is correct. Hack even allows the programmer to define unique data types.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;“Syntactically, Hack is very close to PHP. We allowed it to be possible to run PHP and Hack code side-by-side so you can gradually convert your language codebase from PHP to Hack,” O’Sullivan said.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Certain deprecated PHP features, however, are not supported in Hack, and neither are a handful of features that don’t work well with static typing.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hack also comes with a number of additions not found in PHP. One is Collections, a way to create arrays with more nuance than the array function offered by PHP itself, O’Sullivan said.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hack also eases the use of closures through the use of Lambda expressions. Closures,&lt;a href=&quot;http://www.infoworld.com/t/java-programming/java-8-officially-arrives-last-238552&quot; style=&quot;box-sizing: border-box; color: #25a7d7; text-decoration: none;&quot;&gt;which were added to Java 8&lt;/a&gt;, “make it easy to succinctly write fairly complicated data transformations,” O’Sullivan said.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hack’s Lambda expressions provide a way to create closures “with a fewer number of keystrokes, which is a big win for productivity,” he said.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Facebook has supplied a number of text editor plug-ins on the&amp;nbsp;&lt;a href=&quot;http://hacklang.org/&quot; style=&quot;box-sizing: border-box; color: #25a7d7; text-decoration: none;&quot;&gt;Hack website&lt;/a&gt;&amp;nbsp;to help coders write in the language, though the company is hoping volunteers will build a few more elaborate ones.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-size: 15px; line-height: 1.7em; margin-bottom: 0.7em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;O’Sullivan didn’t reveal any specific plans to offer the Hack augmentations back to the keepers of&amp;nbsp;&lt;a href=&quot;http://www.php.net/&quot; style=&quot;box-sizing: border-box; color: #25a7d7; text-decoration: none;&quot;&gt;PHP&lt;/a&gt;, though he did note that the company plans to “work closely with the open-source community,” to further develop the language.&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-1777172638522724885&quot; itemprop=&quot;description articleBody&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.200000762939453px; orphans: auto; position: relative; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 726px; word-spacing: 0px;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;bio clearfix&quot; style=&quot;background-color: #f8f8f8; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; font-style: italic; line-height: 24.479999542236328px; margin: 2em 0px 4em; padding: 2em; text-align: start; zoom: 1;&quot;&gt;&lt;a href=&quot;https://plus.google.com/+MSSaggoo/about&quot; style=&quot;color: #7d181e; text-decoration: none;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;M.S. Saggoo&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;&amp;nbsp;is a Software Engineer&amp;nbsp;and founder of&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://mssaggoo.blogspot.in/&quot; rel=&quot;author&quot; style=&quot;color: #7d181e; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Programming Inspiration&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;, a popular &amp;nbsp;programming news and development blog since 2013.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #282828;&quot;&gt;What can I do for you? I can be found on&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.facebook.com/saggoo.ms&quot; rel=&quot;author&quot; style=&quot;color: #7d181e; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Facebook&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;&amp;nbsp;and can be reached by&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;mailto:dreamhighandwin@gmail.com&quot; style=&quot;color: #7d181e; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;email&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;mailto:dreamhighandwin@gmail.com&quot; style=&quot;color: #282828; margin: 0px; outline: none; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;clear: both;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/h1&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mssaggoo.blogspot.com/feeds/1626350728389724277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssaggoo.blogspot.com/2014/06/facebooks-hack-new-programming-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/1626350728389724277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/1626350728389724277'/><link rel='alternate' type='text/html' href='http://mssaggoo.blogspot.com/2014/06/facebooks-hack-new-programming-language.html' title='Facebook&#39;s Hack: a new programming language for HHVM'/><author><name>M.S. Saggoo</name><uri>https://plus.google.com/105534980738722698812</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-XuY92sbi1fw/AAAAAAAAAAI/AAAAAAAAA8g/cAFqNfZ2Eow/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-X4_o6HGMtvA/U5lR1ozx4bI/AAAAAAAAA88/TvJ6RdWuxcs/s72-c/hack-programming-language-facebook-code.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6543783748215125893.post-1777172638522724885</id><published>2014-06-11T00:48:00.001-07:00</published><updated>2014-06-12T00:47:10.615-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apple"/><category scheme="http://www.blogger.com/atom/ns#" term="News"/><category scheme="http://www.blogger.com/atom/ns#" term="swift"/><title type='text'>Apple Releases New Programming Language: Swift</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;background-color: white; color: #333333; line-height: 20px; padding: 0px 0px 15px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;A&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;pple’s&amp;nbsp;newly-announced programming language&amp;nbsp;brings a number of benefits, and marks a major change in how developers can build apps for the iPhone and iPad. Before now, Apple has been relying on Objective-C, which was built on the foundation of the venerable C programming language.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #333333; font-size: 15px; line-height: 20px; padding: 0px 0px 15px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Apple’s change is good news for consumers and developers alike. Swift’s introduction has pumped new life into the already vibrant Apple developer ecosystem, and seems poised to spur a new generation of innovative applications.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #333333; font-size: 15px; line-height: 20px; padding: 0px 0px 15px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;At its core, Swift is designed to be just that – a fast and easier way for people to build programs for the iPhone, iPad and Mac. The language does away the more complicated trappings of Objective-C, and replaces it with a simplified syntax that’s easier to pick up, but still feels familiar.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #333333; font-size: 15px; line-height: 20px; padding: 0px 0px 15px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;It also comes with a number of powerful features Objective-C has lacked, including Playgrounds, a system that allows developers to see how changes to their project affect their end product as they add to and tweak their code. Under Objective-C, developers needed to wait for their project to compile and run before they could test any code changes, which can be a time-consuming process.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #333333; font-size: 15px; line-height: 20px; padding: 0px 0px 15px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;One of the interesting features of Swift is that it does away with Objective-C’s emphasis on declaring variable types. Now, developers don’t have to specify in the code whether a variable is a string of text or a floating-point number. The compiler automatically handles the data for them.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #333333; font-size: 15px; line-height: 20px; padding: 0px 0px 15px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&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;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-VtnyT90RIsU/U5gDcKSqIlI/AAAAAAAAA7c/YFwHMeqzwT0/s1600/Screen-Shot-2014-06-07-at-10.28.57-AM.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-VtnyT90RIsU/U5gDcKSqIlI/AAAAAAAAA7c/YFwHMeqzwT0/s1600/Screen-Shot-2014-06-07-at-10.28.57-AM.jpg&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;A sample of Swift code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;font-weight: bold; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 15px; font-weight: normal; line-height: 20px; text-align: start;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;What’s more, Swift and Objective-C use the same compiler, so it’s possible for an app to have both Objective-C, C and Swift source code.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 20px; text-align: left;&quot;&gt;The language still has a few rough edges, though. For example, Seattle-based&amp;nbsp;developer Wayne Bishop of&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://itunes.apple.com/us/app/galleries-hq/id549879715?mt=8&quot; style=&quot;color: #006699; font-size: 15px; line-height: 20px; text-align: left;&quot;&gt;Galleries HQ&lt;/a&gt;&lt;span style=&quot;font-size: 15px; line-height: 20px; text-align: left;&quot;&gt;&amp;nbsp;pointed out that Swift allows users to choose whether or not to end each of their code statements with a semicolon (a C and Objective-C staple), and said that could cause confusion.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;bio clearfix&quot; style=&quot;background-color: #f8f8f8; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; font-style: italic; line-height: 24.479999542236328px; margin: 2em 0px 4em; padding: 2em; text-align: start; zoom: 1;&quot;&gt;&lt;a href=&quot;https://plus.google.com/+MSSaggoo/about&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;M.S. Saggoo&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;&amp;nbsp;is a Software Engineer&amp;nbsp;and founder of&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://mssaggoo.blogspot.in/&quot; rel=&quot;author&quot; style=&quot;margin: 0px; outline: none; padding: 0px;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Programming Inspiration&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;, a popular &amp;nbsp;programming news and development blog since 2013.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #282828;&quot;&gt;What can I do for you? I can be found on&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.facebook.com/saggoo.ms&quot; rel=&quot;author&quot; style=&quot;margin: 0px; outline: none; padding: 0px;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Facebook&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;&amp;nbsp;and can be reached by&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;mailto:dreamhighandwin@gmail.com&quot; style=&quot;margin: 0px; outline: none; padding: 0px;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;email&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;mailto:dreamhighandwin@gmail.com&quot; style=&quot;color: #282828; margin: 0px; outline: none; padding: 0px;&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mssaggoo.blogspot.com/feeds/1777172638522724885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssaggoo.blogspot.com/2014/06/apple-releases-new-programming-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/1777172638522724885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/1777172638522724885'/><link rel='alternate' type='text/html' href='http://mssaggoo.blogspot.com/2014/06/apple-releases-new-programming-language.html' title='Apple Releases New Programming Language: Swift'/><author><name>M.S. Saggoo</name><uri>https://plus.google.com/105534980738722698812</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-XuY92sbi1fw/AAAAAAAAAAI/AAAAAAAAA8g/cAFqNfZ2Eow/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-VtnyT90RIsU/U5gDcKSqIlI/AAAAAAAAA7c/YFwHMeqzwT0/s72-c/Screen-Shot-2014-06-07-at-10.28.57-AM.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6543783748215125893.post-4841448315070614181</id><published>2014-06-11T00:00:00.000-07:00</published><updated>2014-06-14T08:12:15.487-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="OOPS"/><category scheme="http://www.blogger.com/atom/ns#" term="Palindrome"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual C#"/><title type='text'>Code to Check whether Given Number or Sentence is Palindrome</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: large;&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;oday i will tell you program in C#, about how to check whether a string is a Palindrome or not. You may also check&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://mssaggoo.blogspot.in/2014/06/program-in-c-how-to-check-if-string-is.html&quot; style=&quot;background-color: #fefdfa; color: #7d181e; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.200000762939453px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Short&lt;/span&gt;&amp;nbsp;&lt;/a&gt;- &lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;Three Statement long version.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;What is Palindrome?&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; color: #252525; font-size: 14px; line-height: 22.399999618530273px;&quot;&gt;Palindrome&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-size: 14px; line-height: 22.399999618530273px;&quot;&gt;&amp;nbsp;is a word, phrase,&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Palindromic_number&quot; style=&quot;background: none rgb(255, 255, 255); color: #0b0080; font-size: 14px; line-height: 22.399999618530273px; text-decoration: none;&quot; title=&quot;Palindromic number&quot;&gt;number&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #252525; font-size: 14px; line-height: 22.399999618530273px;&quot;&gt;, or other sequence of symbols or elements that reads the same forward or reversed. For example: &quot;madam&quot;, &quot;1221&quot;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;Here&#39;s the code:&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: #fefdfa; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; Palindrome_Checker&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Program&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; Main(&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;[] args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&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;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;PalindromeChecker_class&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; palindrome = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;PalindromeChecker_class&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&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;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;Enter phrase to be checked:&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&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;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;switch&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; (palindrome.PalindromeChecker((&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;.ReadLine())))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;Yes, this phrase is Palindromic&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;No, this phrase is not Palindromic&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&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;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;PalindromeChecker_class&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;[] phrase;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;bool&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; ispalindrome = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;bool&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; PalindromeChecker(&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; phrase_to_be_checked)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; phrase = phrase_to_be_checked.ToString().ToCharArray();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&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;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;switch&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; (phrase_to_be_checked.Length)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; 1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; 2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; (phrase[0] == phrase[1]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; 3:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; (phrase[0] == phrase[2]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; j = 0; ispalindrome &amp;amp;&amp;amp; j &amp;lt; phrase.Length / 2; j++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ispalindrome = (phrase[j] == phrase[phrase.Length - (j + 1)]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; ispalindrome;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt; line-height: 107%;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; color: #252525; font-size: 14px; line-height: 22.399999618530273px;&quot;&gt;Some of the features of this Program are:&lt;br /&gt;1. Input can be anything: a number, special characters, sentence in English or any other language.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; color: #252525; font-size: 14px; line-height: 22.399999618530273px;&quot;&gt;It can check number&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;&quot;&gt;and sentence&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;&quot;&gt;of such a big length that when we assign that number or sentence to an array, the size of array does not exceed 2GB. (Since in .NET 4.5 &quot;No object can have size greater than 2GB).&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hope you like it!&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 14px; line-height: 16px; text-align: center;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;bio clearfix&quot; style=&quot;background-color: #f8f8f8; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; font-style: italic; line-height: 24.479999542236328px; margin: 2em 0px 4em; padding: 2em; text-align: start; zoom: 1;&quot;&gt;&lt;a href=&quot;https://plus.google.com/+MSSaggoo/about&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;M.S. Saggoo&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;&amp;nbsp;is a Software Engineer&amp;nbsp;and founder of&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://mssaggoo.blogspot.in/&quot; rel=&quot;author&quot; style=&quot;margin: 0px; outline: none; padding: 0px;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Programming Inspiration&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;, a popular &amp;nbsp;programming news and development blog since 2013.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #282828;&quot;&gt;What can I do for you? I can be found on&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.facebook.com/saggoo.ms&quot; rel=&quot;author&quot; style=&quot;margin: 0px; outline: none; padding: 0px;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Facebook&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;&amp;nbsp;and can be reached by&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;mailto:dreamhighandwin@gmail.com&quot; style=&quot;margin: 0px; outline: none; padding: 0px;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;email&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;mailto:dreamhighandwin@gmail.com&quot; style=&quot;color: #282828; margin: 0px; outline: none; padding: 0px;&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;span style=&quot;color: #282828;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mssaggoo.blogspot.com/feeds/4841448315070614181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssaggoo.blogspot.com/2014/06/how-to-check-if-number-or-phrase-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/4841448315070614181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/4841448315070614181'/><link rel='alternate' type='text/html' href='http://mssaggoo.blogspot.com/2014/06/how-to-check-if-number-or-phrase-is.html' title='Code to Check whether Given Number or Sentence is Palindrome'/><author><name>M.S. Saggoo</name><uri>https://plus.google.com/105534980738722698812</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-XuY92sbi1fw/AAAAAAAAAAI/AAAAAAAAA8g/cAFqNfZ2Eow/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6543783748215125893.post-4664454883855798766</id><published>2014-05-03T06:33:00.001-07:00</published><updated>2014-05-03T06:33:34.127-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Abstraction"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Encapsulation"/><category scheme="http://www.blogger.com/atom/ns#" term="OOPS"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual C#"/><title type='text'>Precise Difference between Encapsulation and Abstraction</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;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;A priori, they&#39;ve got nothing in common.&lt;/div&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;point x = { 1, 4 };&lt;br /&gt;point y = { 23, 42 };&lt;br /&gt;&lt;br /&gt;int d = distance(x, y);&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;Here,&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;distance&lt;/code&gt;&amp;nbsp;encapsulates the calculation of the (euclidean) distance between two points in a plane: it hides implementation details. This is encapsulation, pure and simple.&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Abstraction&lt;/strong&gt;&amp;nbsp;is the process of&amp;nbsp;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;generalization&lt;/em&gt;: taking a concrete implementation and making it applicable to different, albeit somewhat related, types of data. The classical example of abstraction is C&#39;s&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;qsort&lt;/code&gt;function which sorts data.&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;The thing about&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;qsort&lt;/code&gt;&amp;nbsp;is that it doesn&#39;t care about the data it sorts – in fact, it&amp;nbsp;&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;doesn&#39;t know&lt;/strong&gt;&amp;nbsp;what data it sorts. Rather, its input type is a typeless pointer (&lt;code style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;void*&lt;/code&gt;) which is just C&#39;s way of saying “I don&#39;t care about the type of data” (this is also called type erasure). The important point is that the implementation of&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;qsort&lt;/code&gt;&amp;nbsp;always stays the same, regardless of data type. The only thing that&amp;nbsp;&lt;em style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;has&lt;/em&gt;&amp;nbsp;to change is the compare function, which differs from data type to data type.&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;qsort&lt;/code&gt;&amp;nbsp;therefore expects the user to provide said compare function as a function argument.&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;i&gt;Encapsulation is hiding the implementation details which may or may not be for generic or specialized behavior(s).&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;i&gt;Abstraction is providing a generalization (say, over a set of behaviors).&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mssaggoo.blogspot.com/feeds/4664454883855798766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssaggoo.blogspot.com/2014/05/precise-difference-between.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/4664454883855798766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/4664454883855798766'/><link rel='alternate' type='text/html' href='http://mssaggoo.blogspot.com/2014/05/precise-difference-between.html' title='Precise Difference between Encapsulation and Abstraction'/><author><name>M.S. Saggoo</name><uri>https://plus.google.com/105534980738722698812</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-XuY92sbi1fw/AAAAAAAAAAI/AAAAAAAAA8g/cAFqNfZ2Eow/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6543783748215125893.post-6125445735505071440</id><published>2014-04-30T02:09:00.000-07:00</published><updated>2014-05-03T06:35:55.184-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASCII"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="OOPS"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual C#"/><title type='text'>Get First 55203 ASCII Symbols</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;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Language: Microsoft Visual C#&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hi Friends, today i will tell you code to get &lt;b&gt;First 55,295 ASCIIs &lt;/b&gt;symbols stored in your computer. It can be also written in C++. This program even writes (and saves) all the values of ASCII symbols in a Microsoft WordPad file.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;pre-action-link&quot; id=&quot;premain0&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right;&quot; width=&quot;100%&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre id=&quot;pre0&quot; lang=&quot;cs&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;        static void Main(string[] args)&lt;br /&gt;        {&lt;br /&gt;            int i = 1;&lt;br /&gt;            List&amp;lt;string&amp;gt; ascii_values = new List&amp;lt;string&amp;gt;();&lt;br /&gt;            Console.WriteLine(&quot;How many First ASCII values do you want?&quot;);&lt;br /&gt;            int max = Convert.ToInt32(Console.ReadLine());&lt;br /&gt;            DateTime start_time = DateTime.Now;&lt;br /&gt;            while (i &amp;lt;= max) { ascii_values.Add(i + &quot; = &quot; + Char.ConvertFromUtf32(i)); i++; }&lt;br /&gt;            ascii_values.Add(&quot;\nTOTAL TIME ELEAPSED: &quot; + (DateTime.Now - start_time).TotalMilliseconds.ToString() + &quot; Milliseconds&quot;);&lt;br /&gt;            ascii_values.Add(&quot;\nCreated ON: &quot; +DateTime.Now.ToString());&lt;br /&gt;            ascii_values.Add(&quot;\nDeveloped By Malwinder Singh&quot;);&lt;br /&gt;            ascii_values.Add(&quot;\nVisit my Personal Blog: http://www.mssaggoo.blogspot.in&quot;);&lt;br /&gt;            File.WriteAllLines(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) + &quot;\\First &quot; + max.ToString() + &quot; ASCII Symbols.rtf&quot;, ascii_values.ToArray(), System.Text.Encoding.Unicode);&lt;br /&gt;            System.Diagnostics.Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) + &quot;\\First &quot; + max.ToString() + &quot; ASCII Symbols.rtf&quot;);&lt;br /&gt;        }&lt;/span&gt; &lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Console Output will be:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-71kl0_jFTms/U2C8sr1h7oI/AAAAAAAAA5w/DlZLlOfFPFI/s1600/Untitled.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-71kl0_jFTms/U2C8sr1h7oI/AAAAAAAAA5w/DlZLlOfFPFI/s1600/Untitled.jpg&quot; height=&quot;201&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Enter value not more than 55203 and press Enter...&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Program will stream list of these ASCII symbols to a word pad file which opens automatically and is saved in your desktop.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Output in Word file:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&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://3.bp.blogspot.com/-SEAwnK-_y98/U2C9jYVtfPI/AAAAAAAAA58/0Z5COCuda7U/s1600/Capture.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-SEAwnK-_y98/U2C9jYVtfPI/AAAAAAAAA58/0Z5COCuda7U/s1600/Capture.JPG&quot; height=&quot;170&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&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;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 13px; text-align: left;&quot;&gt;&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;&quot;&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&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;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt; line-height: 107%;&quot;&gt;&lt;/span&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;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mssaggoo.blogspot.com/feeds/6125445735505071440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssaggoo.blogspot.com/2014/04/get-first-55203-ascii-symbols.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/6125445735505071440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6543783748215125893/posts/default/6125445735505071440'/><link rel='alternate' type='text/html' href='http://mssaggoo.blogspot.com/2014/04/get-first-55203-ascii-symbols.html' title='Get First 55203 ASCII Symbols'/><author><name>M.S. Saggoo</name><uri>https://plus.google.com/105534980738722698812</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-XuY92sbi1fw/AAAAAAAAAAI/AAAAAAAAA8g/cAFqNfZ2Eow/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-71kl0_jFTms/U2C8sr1h7oI/AAAAAAAAA5w/DlZLlOfFPFI/s72-c/Untitled.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>