<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CkcMR3wyeCp7ImA9WhdUEkQ.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764</id><updated>2011-09-29T02:54:46.290-07:00</updated><title>Roman Pelepei's .Net How To? Blog</title><subtitle type="html">Roman Pelepei gives smart answers on questions about C# .Net, ASP .Net, WPF and Silverlight programming with examples and source code.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://rpelepei.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>327</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/RomanPelepeisBlog" /><feedburner:info uri="romanpelepeisblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CkcMR307cSp7ImA9WhdUEkQ.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-77608100584742167</id><published>2011-09-29T02:54:00.000-07:00</published><updated>2011-09-29T02:54:46.309-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-29T02:54:46.309-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Javascript" /><category scheme="http://www.blogger.com/atom/ns#" term="Objects" /><title>3 ways to define a JavaScript class</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: #fefefe; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 14px; line-height: 25px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 style="font-family: Consolas, 'Courier New'; font-size: 1.6em; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 30px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Introduction&lt;/h3&gt;JavaScript is a very flexible object-oriented language when it comes to syntax. In this article you can find three ways of defining and instantiating an object. Even if you have already picked your favorite way of doing it, it helps to know some alternatives in order to read other people's code.&lt;br /&gt;
It's important to note that there are no classes in JavaScript. Functions can be used to somewhat simulate classes, but in general JavaScript is a class-less language. Everything is an object. And when it comes to inheritance, objects inherit from objects, not classes from classes as in the "class"-ical languages.&lt;br /&gt;
&lt;h3 style="font-family: Consolas, 'Courier New'; font-size: 1.6em; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 30px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;1. Using a function&lt;/h3&gt;This is probably one of the most common ways. You define a normal JavaScript function and then create an object by using the&amp;nbsp;&lt;code style="font: normal normal normal 1.1em/normal 'Courier New', Courier, Fixed;"&gt;new&lt;/code&gt;&amp;nbsp;keyword. To define properties and methods for an object created using&amp;nbsp;&lt;code style="font: normal normal normal 1.1em/normal 'Courier New', Courier, Fixed;"&gt;function()&lt;/code&gt;, you use the&amp;nbsp;&lt;code style="font: normal normal normal 1.1em/normal 'Courier New', Courier, Fixed;"&gt;this&lt;/code&gt;&amp;nbsp;keyword, as seen in the following example.&lt;br /&gt;
&lt;div class="hl-main" style="background-color: lightgrey;"&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 10pt;"&gt;&lt;span class="hl-reserved" style="color: green;"&gt;function&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;Apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;(&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;)&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;{&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt;red&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;getInfo&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;getAppleInfo&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;}&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;

&lt;/span&gt;&lt;span class="hl-comment" style="color: orange;"&gt;//&lt;/span&gt;&lt;span class="hl-comment" style="color: orange;"&gt; anti-pattern! keep reading...&lt;/span&gt;&lt;span class="hl-comment" style="color: orange;"&gt;&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
&lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;function&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;getAppleInfo&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;(&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;)&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;{&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;return&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt; &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt; apple&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;To instantiate an object using the Apple&amp;nbsp;&lt;em&gt;constructor function&lt;/em&gt;, set some properties and call methods you can do the following:&lt;br /&gt;
&lt;div class="hl-main" style="background-color: lightgrey;"&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 10pt;"&gt;&lt;span class="hl-reserved" style="color: green;"&gt;var&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;new&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;Apple&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;(&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt;macintosh&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;)&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt;reddish&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;alert&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;(&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;getInfo&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;())&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 style="font-family: Consolas, 'Courier New'; font-size: 1.6em; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 30px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;1.1. Methods defined internally&lt;/h3&gt;In the example above you see that the method getInfo() of the Apple "class" was defined in a separate function getAppleInfo(). While this works fine, it has one drawback – you may end up defining a lot of these functions and they are all in the "global namespece". This means you may have naming conflicts if you (or another library you are using) decide to create another function with the same name. The way to prevent pollution of the global namespace, you can define your methods within the constructor function, like this:&lt;br /&gt;
&lt;div class="hl-main" style="background-color: lightgrey;"&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 10pt;"&gt;&lt;span class="hl-reserved" style="color: green;"&gt;function&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;Apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;(&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;)&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;{&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt;red&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;getInfo&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;function&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;()&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;{&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
        &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;return&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt; &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt; apple&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
    &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;}&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;Using this syntax changes nothing in the way you instantiate the object and use its properties and methods.&lt;br /&gt;
&lt;h3 style="font-family: Consolas, 'Courier New'; font-size: 1.6em; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 30px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;1.2. Methods added to the prototype&lt;/h3&gt;A drawback of 1.1. is that the method getInfo() is recreated every time you create a new object. Sometimes that may be what you want, but it's rare. A more inexpensive way is to add getInfo() to the&amp;nbsp;&lt;em&gt;prototype&lt;/em&gt;&amp;nbsp;of the constructor function.&lt;br /&gt;
&lt;div class="hl-main" style="background-color: lightgrey;"&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 10pt;"&gt;&lt;span class="hl-reserved" style="color: green;"&gt;function&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;Apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;(&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;)&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;{&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt;red&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;}&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;

&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;Apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;prototype&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;getInfo&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;function&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;(&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;)&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;{&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;return&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt; &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt; apple&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;}&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;Again, you can use the new objects exactly the same way as in 1. and 1.1.&lt;br /&gt;
&lt;h3 style="font-family: Consolas, 'Courier New'; font-size: 1.6em; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 30px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;2. Using object literals&lt;/h3&gt;Literals are shorter way to define objects and arrays in JavaScript. To create an empty object using you can do:&lt;br /&gt;
&lt;code style="font: normal normal normal 1.1em/normal 'Courier New', Courier, Fixed;"&gt;var o = {};&lt;/code&gt;&lt;br /&gt;
instead of the "normal" way:&lt;br /&gt;
&lt;code style="font: normal normal normal 1.1em/normal 'Courier New', Courier, Fixed;"&gt;var o = new Object();&lt;/code&gt;&lt;br /&gt;
For arrays you can do:&lt;br /&gt;
&lt;code style="font: normal normal normal 1.1em/normal 'Courier New', Courier, Fixed;"&gt;var a = [];&lt;/code&gt;&lt;br /&gt;
instead of:&lt;br /&gt;
&lt;code style="font: normal normal normal 1.1em/normal 'Courier New', Courier, Fixed;"&gt;var a = new Array();&lt;/code&gt;&lt;br /&gt;
So you can skip the class-like stuff and create an instance (object) immediately. Here's the same functionality as described in the previous examples, but using object literal syntax this time:&lt;br /&gt;
&lt;div class="hl-main" style="background-color: lightgrey;"&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 10pt;"&gt;&lt;span class="hl-reserved" style="color: green;"&gt;var&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;{&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
    &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;: &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt;macintosh&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;,
    &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;: &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt;red&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;,
    &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;getInfo&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;: &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;function&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;()&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;{&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
        &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;return&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt; &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt; apple&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
    &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;}&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;In this case you don't need to (and cannot) create an instance of the class, it already exists. So you simply start using this instance.&lt;br /&gt;
&lt;div class="hl-main" style="background-color: lightgrey;"&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 10pt;"&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt;reddish&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;alert&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;(&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;getInfo&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;())&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;Such an object is also sometimes called&amp;nbsp;&lt;em&gt;singleton&lt;/em&gt;. It "classical" languages such as Java,&lt;em&gt;singleton&lt;/em&gt;&amp;nbsp;means that you can have only one single instance of this class at any time, you cannot create more objects of the same class. In JavaScript (no classes, remember?) this concept makes no sense anymore since all objects are singletons to begin with.&lt;br /&gt;
&lt;h3 style="font-family: Consolas, 'Courier New'; font-size: 1.6em; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 30px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;3. Singleton using a function&lt;/h3&gt;Again with the singleton, eh?&amp;nbsp;&lt;img alt=":)" class="wp-smiley" src="http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif" style="max-width: 100%; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br /&gt;
The third way presented in this article is a combination of the other two you already saw. You can use a function to define a singleton object. Here's the syntax:&lt;br /&gt;
&lt;div class="hl-main" style="background-color: lightgrey;"&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 10pt;"&gt;&lt;span class="hl-reserved" style="color: green;"&gt;var&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;new&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;function&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;()&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;{&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt;macintosh&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt;red&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
    &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;getInfo&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;function&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;()&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;{&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;
        &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;return&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt; &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-reserved" style="color: green;"&gt;this&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;type&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; + &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt; apple&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;'&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
    &lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;}&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;So you see that this is very similar to 1.1. discussed above, but the way to use the object is exactly like in 2.&lt;br /&gt;
&lt;div class="hl-main" style="background-color: lightgrey;"&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-size: 10pt;"&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;color&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt; = &lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-string" style="color: red;"&gt;reddish&lt;/span&gt;&lt;span class="hl-quotes" style="color: darkred;"&gt;"&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;
&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;alert&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;(&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;apple&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;.&lt;/span&gt;&lt;span class="hl-identifier" style="color: blue;"&gt;getInfo&lt;/span&gt;&lt;span class="hl-brackets" style="color: olive;"&gt;())&lt;/span&gt;&lt;span class="hl-code" style="color: grey;"&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;code style="font: normal normal normal 1.1em/normal 'Courier New', Courier, Fixed;"&gt;new function(){...}&lt;/code&gt;&amp;nbsp;does two things at the same time: define a function (an anonymous constructor function) and invoke it with&amp;nbsp;&lt;code style="font: normal normal normal 1.1em/normal 'Courier New', Courier, Fixed;"&gt;new&lt;/code&gt;. It might look a bit confusing if you're not used to it and it's not too common, but hey, it's an option, when you really want a constructor function that you'll use only once and there's no sense of giving it a name.&lt;br /&gt;
&lt;h3 style="font-family: Consolas, 'Courier New'; font-size: 1.6em; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 30px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Summary&lt;/h3&gt;You saw three (plus one) ways of creating objects in JavaScript. Remember that (despite the article's title) there's no such thing as a class in JavaScript. Looking forward to start coding using the new knowledge? Happy JavaScript-ing!&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-77608100584742167?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HxUXJV4GkiXX2fToNiZLqfbjCl8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HxUXJV4GkiXX2fToNiZLqfbjCl8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HxUXJV4GkiXX2fToNiZLqfbjCl8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HxUXJV4GkiXX2fToNiZLqfbjCl8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/98n-Gg-EVbE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/77608100584742167/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=77608100584742167&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/77608100584742167?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/77608100584742167?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/98n-Gg-EVbE/3-ways-to-define-javascript-class.html" title="3 ways to define a JavaScript class" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/09/3-ways-to-define-javascript-class.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkQERH8-fSp7ImA9WhdVFUw.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-6409248366871943650</id><published>2011-09-20T04:31:00.001-07:00</published><updated>2011-09-20T04:31:45.155-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-20T04:31:45.155-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="extern alias" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>Extern alias walkthrough</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: #ced5db; color: #333333; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Extern aliases is a feature that was introduced in VS 2005 that I don’t believe is being used very often.&lt;span&gt;&amp;nbsp;&lt;/span&gt;There are two reasons for this.&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;First, the feature is somewhat undiscoverable, particularly if you don’t happen to be looking for it.&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Second, the feature itself is useful in the somewhat narrow scenario of needing to explicitly differentiate between two type names that are identical except for the assembly strong name (name, version, public key, etc.) in which they are defined.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="float: right;"&gt;&lt;img src="http://cyrino.members.winisp.net/9272006/NewProject.png" style="height: auto !important; max-width: 100%; overflow-x: hidden; overflow-y: hidden;" /&gt;&lt;/div&gt;Of course, if you happen to be in that situation this feature can prove invaluable.&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;I wrote the walkthrough below while we were developing the feature; it should provide a reasonable starting point for how extern aliases can be used in Visual C#.&lt;b&gt;&lt;span style="color: navy; font-family: 'Lucida Sans Unicode', sans-serif; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Create a C# Class Library called FooVersion1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Replace the template code in Class1.cs with the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Lucida Sans Unicode', sans-serif; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt;&amp;nbsp;System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;namespace&lt;/span&gt;&amp;nbsp;Acme&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;public class&lt;/span&gt;&amp;nbsp;&lt;span style="color: teal;"&gt;Foo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;void&lt;/span&gt;&amp;nbsp;Bar()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: teal;"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: maroon;"&gt;"Bar"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-indent: 0.25in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol start="3" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Right-click on the solution in solution explorer and select Add | New Project&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Save the current project (only applicable in express)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Select a Class Library in the new project dialog and change the project name to FooVersion2 and press OK&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Replace the code in Class1.cs with the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Lucida Sans Unicode', sans-serif; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt;&amp;nbsp;System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;namespace&lt;/span&gt;&amp;nbsp;Acme&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style="color: teal;"&gt;Foo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;void&lt;/span&gt;&amp;nbsp;Bar()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: teal;"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: maroon;"&gt;"Bar"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;void&lt;/span&gt;&amp;nbsp;Goo()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: teal;"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: maroon;"&gt;"Goo"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;span style="font-family: 'Lucida Sans Unicode', sans-serif; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol start="7" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Right-click on the solution in solution explorer and select Add | New Project&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Select a Console Application and call it Consumer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Right-click on Consumer and select ‘Set as startup project’&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol start="7" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;img src="http://cyrino.members.winisp.net/9272006/StartupProject.png" style="height: auto !important; max-width: 100%; overflow-x: hidden; overflow-y: hidden;" /&gt;&lt;/ol&gt;&lt;ol start="7" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Right-click on the references node in the Consumer project and select ‘Add Reference’&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Click on the projects tab, and multi-select FooVersion1 and FooVersion2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Click OK&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Add the following line to&amp;nbsp;&lt;st1:place w:st="on"&gt;Main&lt;/st1:place&gt;&amp;nbsp;in the Program type of the Consumer project:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Lucida Sans Unicode', sans-serif; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;Acme.&lt;span style="color: teal;"&gt;Foo&lt;/span&gt;&amp;nbsp;f =&amp;nbsp;&lt;span style="color: blue;"&gt;new&lt;/span&gt;&amp;nbsp;Acme.&lt;span style="color: teal;"&gt;Foo&lt;/span&gt;();&lt;/span&gt;&lt;span style="font-family: 'Lucida Sans Unicode', sans-serif; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol start="14" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Build the solution via Ctrl+Shift+B (or F6)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Notice that you get two build errors:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol start="14" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;img src="http://cyrino.members.winisp.net/9272006/ErrorList.png" style="height: auto !important; max-width: 100%; overflow-x: hidden; overflow-y: hidden;" /&gt;&lt;/ol&gt;&lt;ol start="14" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Open solution explorer and select FooVersion1 in the References folder of the Consumer project&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol start="14" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;img src="http://cyrino.members.winisp.net/9272006/References.png" style="height: auto !important; max-width: 100%; overflow-x: hidden; overflow-y: hidden;" /&gt;&lt;/ol&gt;&lt;ol start="14" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Hit F4 (or select View | Properties Window)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Change the Aliases property to FooVersion1&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol start="14" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;img src="http://cyrino.members.winisp.net/9272006/AliasesProperty.png" style="height: auto !important; max-width: 100%; overflow-x: hidden; overflow-y: hidden;" /&gt;&lt;/ol&gt;&lt;ol start="14" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Build the solution&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Now everything will build correctly, because Acme.Foo unambiguously refers to FooVersion2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Add the following directive to the top of Program.cs in the Consumer project:&lt;/span&gt;&lt;span style="font-family: 'Lucida Sans Unicode', sans-serif; font-size: 10pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; text-indent: 0.25in;"&gt;&lt;span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; extern&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;alias&lt;/span&gt;&amp;nbsp;FooVersion1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol start="22" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Change the usage of Acme.Foo to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Lucida Sans Unicode', sans-serif; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;FooVersion1::Acme.&lt;span style="color: teal;"&gt;Foo&lt;/span&gt;&amp;nbsp;f =&amp;nbsp;&lt;span style="color: blue;"&gt;new&lt;/span&gt;&amp;nbsp;FooVersion1::Acme.&lt;span style="color: teal;"&gt;Foo&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;f.Bar();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol start="23" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Notice that when you type ‘f.’ the completion list contains only those methods in FooVersion1 of Acme.Foo (notably it does not include Goo)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Build the solution and everything will build correctly&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Finally add the following code under f.Bar() in Program.cs of the Consumer project:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Lucida Sans Unicode', sans-serif; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Acme.&lt;span style="color: teal;"&gt;Foo&lt;/span&gt;&amp;nbsp;f2 =&amp;nbsp;&lt;span style="color: blue;"&gt;new&lt;/span&gt;&amp;nbsp;Acme.&lt;span style="color: teal;"&gt;Foo&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;f2.Goo();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol start="26" style="list-style-type: decimal; margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Notice that f2’s completion list contains Goo.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;Build again using Ctrl+Shift+B and notice that there are still no build errors&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;"&gt;&lt;span style="font-family: Tahoma, sans-serif; font-size: 10pt;"&gt;This shows a usage pattern which we expect to be relatively common when these ambiguities exist.&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;The assembly which will be used less often will be aliased while the other will continue to exist in the global namespace (such that it doesn’t require qualification through an extern alias).&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-6409248366871943650?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/w5VETg6epge3TZp7ugSiGhq6epM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/w5VETg6epge3TZp7ugSiGhq6epM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/w5VETg6epge3TZp7ugSiGhq6epM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/w5VETg6epge3TZp7ugSiGhq6epM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/pqjk2zAjPfU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/6409248366871943650/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=6409248366871943650&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/6409248366871943650?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/6409248366871943650?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/pqjk2zAjPfU/extern-alias-walkthrough.html" title="Extern alias walkthrough" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/09/extern-alias-walkthrough.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EGRn08fCp7ImA9WhdVFUw.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-6608536251110475193</id><published>2011-09-20T03:47:00.000-07:00</published><updated>2011-09-20T03:47:07.374-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-20T03:47:07.374-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="new" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>C# - new keyword in method signature</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-size: 14px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;New keyword reference from MSDN:&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-size: 14px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/435f1dw2.aspx" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0077cc; cursor: pointer; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; vertical-align: baseline;"&gt;MSDN Reference&lt;/a&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-size: 14px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;Here is an example I found on the net from a Microsoft MVP that made good sense:&amp;nbsp;&lt;a href="http://social.msdn.microsoft.com/forums/en-US/Vsexpressvcs/thread/65e02299-300f-4b74-8f0a-679f490605f5" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0077cc; cursor: pointer; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; vertical-align: baseline;"&gt;Link to Original&lt;/a&gt;&lt;/div&gt;&lt;pre class="lang-cs prettyprint" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;public&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;class&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; A&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;{&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;public&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; virtual &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;void&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;One&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;();&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;public&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;void&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Two&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;();&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;}&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;public&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;class&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; B &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;:&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; A&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;{&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;public&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;override&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;void&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;One&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;();&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;public&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;new&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;void&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Two&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;();&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;}&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;

B b &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;new&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; B&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;();&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
A a &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; b &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;as&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; A&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;;&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;

a&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;One&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;();&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="com" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: grey; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;// Calls implementation in B&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
a&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Two&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;();&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="com" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: grey; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;// Calls implementation in A&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
b&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;One&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;();&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="com" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: grey; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;// Calls implementation in B&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
b&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Two&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;();&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="com" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: grey; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;// Calls implementation in B&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-size: 14px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;Override can only be used in very specific cases. From MSDN:&lt;/div&gt;&lt;blockquote style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 1px; padding-left: 10px; padding-right: 10px; padding-top: 10px; quotes: none; vertical-align: baseline;"&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-size: 14px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;You cannot override a non-virtual or static method. The overridden base method must be virtual, abstract, or override.&lt;/div&gt;&lt;/blockquote&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-size: 14px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;So the 'new' keyword is needed to allow you to 'override' non-virtual and static methods.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-6608536251110475193?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/D85B9gTAX-aVYg52PC7roh43wZM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D85B9gTAX-aVYg52PC7roh43wZM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/D85B9gTAX-aVYg52PC7roh43wZM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D85B9gTAX-aVYg52PC7roh43wZM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/oVrCBfmFyfc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/6608536251110475193/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=6608536251110475193&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/6608536251110475193?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/6608536251110475193?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/oVrCBfmFyfc/c-new-keyword-in-method-signature.html" title="C# - new keyword in method signature" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/09/c-new-keyword-in-method-signature.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkEBRHc8cCp7ImA9WhdVEU8.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-2177628398883957988</id><published>2011-09-15T14:04:00.000-07:00</published><updated>2011-09-15T14:04:15.978-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-15T14:04:15.978-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Trojan.Winlock" /><title>100% метод удаления любого блокировщика Windows (Trojan.Winlock)</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: 18px; font-weight: bold; line-height: 23px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Если вдруг такая беда или что-то на подобии, текст может отличаться:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Windows заблокирован!&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Microsoft Security обнаружил нарушения использования сети интернет.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Причина: Вы смотрели фильмысодержащие гей-порно.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Для разблокировки Windows необходимо:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Пополнить номер абонента Билайн 8-963-328-45-78 на сумму 400 рублей.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Оплатить можно через терминалы для оплаты сотовой связи.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;После оплаты, на выданном терминалом чеке, Вы найдете Ваш персональный код разблокировки, который необходимо ввести ниже.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;Если в течение 12 часов с момента появления данного сообщения не будет введен код, все данные, включая Windows и bios будут БЕЗВОЗВРАТНО УДАЛЕНЫ! Попытка переустановить систему приведет к нарушениям работы компьютера.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: 18px; font-weight: bold; line-height: 23px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: 18px; font-weight: bold; line-height: 23px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;1.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px;"&gt;&lt;b style="color: #4d4d4d;"&gt;&amp;nbsp;&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #4d4d4d;"&gt;Перезагружаем&amp;nbsp;компьютер, выбираем &lt;/span&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;загрузку в безопасном режиме с поддержкой&amp;nbsp;командной&amp;nbsp;строки.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Helvetica, Arial, FreeSans, sans-serif; line-height: 23px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b style="color: red;"&gt;2.&amp;nbsp;&lt;/b&gt;В командной строке пишем&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b style="color: red;"&gt; regedit&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #4d4d4d;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&amp;nbsp;...&amp;nbsp;откроется окно&amp;nbsp;&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Registry Editor&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;img border="0" class="caption" src="http://www.stlserg.com/images/stories/Computers/MSWINDOWS/udalenie_blokirovshika_windows/udalenie_blokirovshika_windows_04.jpg" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;" title="Удаление блокировщика Виндус - картинка 4" /&gt;&lt;/div&gt;&lt;div class="img_caption" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center !important; vertical-align: baseline;"&gt;Удаление блокировщика Виндус - картинка 4&lt;/div&gt;&lt;div style="color: #4d4d4d; font-size: 14px;"&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;4.&lt;/span&gt;&lt;/span&gt;&amp;nbsp;Последовательно открывайте нижеперечисленные разделы реестра&amp;nbsp;&lt;em style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;/em&gt;&lt;em style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;дважды кликайте мышкой на нижеперечисленных желтых&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;em style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;папках, которые расположены в левой части окна ERD Registry Editor)&lt;/span&gt;&lt;/em&gt;:&lt;/strong&gt;&lt;/div&gt;&lt;ul style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; list-style-image: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 15px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;li style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;HKEY_LOCAL_MACHINE (откроются вложенные разделы/папки, и в этих открытых ищите следующие &amp;nbsp;разделы/папки)&lt;/li&gt;
&lt;li style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;SOFTWARE&lt;/li&gt;
&lt;li style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Microsoft&lt;/li&gt;
&lt;li style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;WindowsNT&lt;/li&gt;
&lt;li style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;CurrentVersion&lt;/li&gt;
&lt;li style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Winlogon&lt;/li&gt;
&lt;/ul&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;em style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(на самом деле пишется все это в одну строчку \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon и для понимания того, в каком месте реестра мы находимся, в самом низу окна&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: navy; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;E&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: navy; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;RD Registry Editor&lt;/span&gt;&amp;nbsp;пишется этот путь.)&lt;/em&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;После этого окно ERD Registry Editor будет выглядеть примерно как на картинке.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;img border="0" class="caption" src="http://www.stlserg.com/images/stories/Computers/MSWINDOWS/udalenie_blokirovshika_windows/udalenie_blokirovshika_windows_05.jpg" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;" title="Удаление блокировщика Виндус - картинка 5" /&gt;&lt;/div&gt;&lt;div class="img_caption" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center !important; vertical-align: baseline;"&gt;Удаление блокировщика Виндус - картинка 5&lt;/div&gt;&lt;div style="color: #4d4d4d; font-size: 14px;"&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Теперь переходим к правой части.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;5.&lt;/span&gt;&lt;/span&gt;&amp;nbsp;В правой части окна кликните мышкой на ключе с именем&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Shell&lt;/span&gt;&lt;/strong&gt;. В параметре&amp;nbsp;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Value data&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;не должно быть ничего кроме&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Explorer.exe&lt;/span&gt;&lt;/strong&gt;. Если там что-то другое, наберите Explorer.exe и нажмите&amp;nbsp;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;ОК&lt;/span&gt;&lt;/strong&gt;.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;img border="0" class="caption" src="http://www.stlserg.com/images/stories/Computers/MSWINDOWS/udalenie_blokirovshika_windows/udalenie_blokirovshika_windows_06.jpg" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;" title="Удаление блокировщика Виндус - картинка 6" /&gt;&lt;/div&gt;&lt;div class="img_caption" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center !important; vertical-align: baseline;"&gt;Удаление блокировщика Виндус - картинка 6&lt;/div&gt;&lt;div style="color: #4d4d4d; font-size: 14px;"&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;6.&lt;/span&gt;&lt;/span&gt;&amp;nbsp;В правой части окна кликните мышкой на ключе с именем&amp;nbsp;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Userinit&lt;/span&gt;&lt;/strong&gt;. В параметре&amp;nbsp;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Value data&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;должен быть прописан путь, оканчивающийся на&amp;nbsp;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;\system32\userinit.exe&lt;/strong&gt;. Обычно это C:\WINDOWS\system32\userinit.exe, или что-то оканчивающееся на \system32\userinit.exe и&amp;nbsp;ничего более. &amp;nbsp;Если там что-то другое, наберите C:\WINDOWS\system32\userinit.exe,&amp;nbsp;и нажмите&amp;nbsp;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;ОК&lt;/span&gt;&lt;/strong&gt;.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;em style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(для тех, кто записал в пункте 4 путь к Windows, строчка должна выглядеть так:&amp;nbsp;&lt;/em&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;em style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;путь\system32\userinit.exe&lt;/em&gt;&lt;/strong&gt;&lt;em style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;, например D:\WINDOWS\system32\userinit.exe)&lt;/em&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;img border="0" class="caption" src="http://www.stlserg.com/images/stories/Computers/MSWINDOWS/udalenie_blokirovshika_windows/udalenie_blokirovshika_windows_07.jpg" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;" title="Удаление блокировщика Виндус - картинка 7" /&gt;&lt;/div&gt;&lt;div class="img_caption" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center !important; vertical-align: baseline;"&gt;Удаление блокировщика Виндус - картинка 7&lt;/div&gt;&lt;div style="color: #4d4d4d; font-size: 14px;"&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;7.&lt;/span&gt;&lt;/span&gt;&amp;nbsp;Все, ваш Windows разблокирован.&amp;nbsp;&lt;/strong&gt;Осталось только загрузиться с CD c антивирусом и удалить все вирусы и зловреды на диске. Но об этом другой статье.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Если вы по каким-либо причинам не хотите удалять блокировщик Windows самостоятельно&lt;/strong&gt;&amp;nbsp;и вы находитесь в Москве -&amp;nbsp;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;звоните&lt;/strong&gt;,&lt;em style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: xx-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;телефон указан вверху странички&lt;/span&gt;&lt;/em&gt;, в&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;сегда буду рад помочь&lt;/strong&gt;.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;PS &amp;nbsp;Если не удалить вирусы и зловреды, то скорее всего, после того, как вы или какой-то процесс, запустит этот неудаленный зловред, &amp;nbsp;Windows через какое-то время будет опять окажется в заблокированном состоянии.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; vertical-align: baseline;"&gt;UPDATE 1.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;8.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Для тех, у кого в 9-м пункте параметр&amp;nbsp;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Value data&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;оканчивается на&amp;nbsp;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.../SYSTEM32.EXE&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;необходимо&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;ОБЯЗАТЕЛЬНО&lt;/span&gt;&amp;nbsp;удалить этот файл system32.exe c диска. &amp;nbsp;Сдеать это можно запустив START - EXPLORER в том же ERD Commander. В Explorer пройти по пути, указанном в &amp;nbsp;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;9-м пункте в параметре&amp;nbsp;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333399; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Value data&lt;/span&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;, и удалить мерзавца system32.exe Позже выложу картинки и опишу поподробнее.&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; vertical-align: baseline;"&gt;UPDATE 2.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4d4d4d; font-size: 14px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;9.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Возьмите с работающего компьютера с такой же операционной системой (у друзей, коллег) файл&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;/WINDOWS/SYSTEM32/USERINIT.EXE&lt;/strong&gt;&lt;/strong&gt;&amp;nbsp;и замените им файл на зараженном компьютере.&lt;/strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-2177628398883957988?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hOOOFakArN8wiNkKnvpKKRtRFcY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hOOOFakArN8wiNkKnvpKKRtRFcY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hOOOFakArN8wiNkKnvpKKRtRFcY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hOOOFakArN8wiNkKnvpKKRtRFcY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/sZwTgtsjXlk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/2177628398883957988/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=2177628398883957988&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/2177628398883957988?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/2177628398883957988?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/sZwTgtsjXlk/100-windows-trojanwinlock.html" title="100% метод удаления любого блокировщика Windows (Trojan.Winlock)" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/09/100-windows-trojanwinlock.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0ENRnY7fyp7ImA9WhdWFEU.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-3224012086053472391</id><published>2011-09-08T05:41:00.001-07:00</published><updated>2011-09-08T05:41:37.807-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-08T05:41:37.807-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SkyDrive" /><title>Обновление SkyDrive и как подключить SkyDrive в виде сетевого ресурса</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;Недавно веб-интерфейс бесплатного облачного хранилища файлов&amp;nbsp;&lt;a href="http://skydrive.live.com/" style="color: #6da3bd;"&gt;Microsoft SkyDrive&lt;/a&gt;&amp;nbsp;получил обновление. Этот ресурс по-прежнему предлагает 25 гигабайт бесплатного хранилища, однако в ходе обновления размер отдельного загружаемого файла теперь был увеличен с 50 мегабайт до 100 мегабайт.&lt;br /&gt;
&lt;br /&gt;
Веб-интерфейс теперь использует новое представление для отображения папок и просмотра галереи изображений.&lt;br /&gt;
&lt;br /&gt;
&lt;img alt="image" src="http://microgeek.ru/upload/blog/windowslive/644/64402762e9e8e30cd27eebd9dd2d7701.png" style="max-width: 100%; vertical-align: bottom;" title="image" /&gt;&amp;nbsp;&lt;img alt="image" src="http://microgeek.ru/upload/blog/windowslive/a0a/a0a971f78b1d9a20fb7371f32bf48329.png" style="max-width: 100%; vertical-align: bottom;" title="image" /&gt;&lt;br /&gt;
&lt;br /&gt;
Кроме того заявлены следующие изменения:&lt;/span&gt;&lt;br /&gt;
&lt;ul style="list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 1.5em; margin-left: 2.65em; margin-right: 1em; margin-top: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;закрепление сайта на панели задач через Internet Explorer 9&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;один и тот же интерфейс для всех типов файлов&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;новая панель информации о файле&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;новый просмотрщик фотографий&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;увеличена скорость работы ресурса&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;100 мб лимит файлов&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;больше нет рекламы, убран баннер.&lt;/li&gt;
&lt;/ul&gt;Но самое интересно, что теперь есть способ подключения вашего хранилища SkyDrive в качестве сетевого диска с полной поддержкой копирования, вставки, удаления, предпросмотра файлов.&amp;nbsp;&lt;b&gt;Пока для записи в хранилище поддерживаются офисные файлы. Остальные файлы можно загрузить через веб-интерфейс. Доступ к загруженным через веб-интерфейс файлам доступен для всех типов.&lt;/b&gt;&amp;nbsp;Для того, чтобы подключить SkyDrive в качестве сетевого диска проделайте следующие шаги:&lt;a href="" name="habracut" style="color: #6da3bd;"&gt;&lt;/a&gt;&lt;ol style="list-style-image: initial; list-style-position: initial; list-style-type: decimal; margin-bottom: 1.5em; margin-left: 3em; margin-right: 1em; margin-top: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Перейдите на&amp;nbsp;&lt;a href="http://skydrive.live.com/" style="color: #4d7285;"&gt;http://skydrive.live.com/&lt;/a&gt;.&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Залогиньтесь со своим Windows Live ID.&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Скопируйте идентификатор cid из URL&amp;nbsp;&lt;a href="https://skydrive.live.com/?wa=wsignin1.0#cid=ED3080C73007CBED" style="color: #6da3bd;"&gt;https://skydrive.live.com/?wa=wsignin1.0#cid=1234567890abcdef&lt;/a&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Откройте Windows Explorer.&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;На левой панели щелкните правой кнопкой на&amp;nbsp;&lt;i&gt;Network (Сетевое окружение)&lt;/i&gt;. Выберите&amp;nbsp;&lt;i&gt;Map network drive (Подключить сетевой диск)&lt;/i&gt;.&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Введите в качестве адреса URL:&amp;nbsp;&lt;a href="http://file////docs.live.net@SSL/1234567890abcdef" style="color: #6da3bd;"&gt;\\docs.live.net@SSL\&lt;b&gt;1234567890abcdef&lt;/b&gt;&lt;/a&gt;&amp;nbsp;(замените 1234567890abcdef на ваш идентификатор)&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Выберите букву диска и нажмите ОК.&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Вас попросят ввести учетные записи Windows Live ID. Введите их.&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Теперь ваш сетевой диск подключен!&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-3224012086053472391?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WRcZKVQoP-doQ7DiQM9VmQbjzQE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WRcZKVQoP-doQ7DiQM9VmQbjzQE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WRcZKVQoP-doQ7DiQM9VmQbjzQE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WRcZKVQoP-doQ7DiQM9VmQbjzQE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/8uLY8dHuWgs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/3224012086053472391/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=3224012086053472391&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/3224012086053472391?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/3224012086053472391?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/8uLY8dHuWgs/skydrive-skydrive.html" title="Обновление SkyDrive и как подключить SkyDrive в виде сетевого ресурса" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/09/skydrive-skydrive.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYASXw6cSp7ImA9WhdXEUU.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-6104991504119573083</id><published>2011-08-24T04:59:00.000-07:00</published><updated>2011-08-24T04:59:08.219-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-24T04:59:08.219-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="windows froms" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>MessageBox display called from a separate thread</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Verdana, Geneva, Arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;It is modal only to the windows you created in the same thread.&amp;nbsp; None, I'm sure in your case.&amp;nbsp; Just use Control.Invole() to make it modal to the UI thread.&amp;nbsp; For example:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; public partial class Form1 : Form {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public Form1() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private delegate DialogResult MessageBoxDelegate(string msg, string title, MessageBoxButtons buttons, MessageBoxIcon icon);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private void button1_Click(object sender, EventArgs e) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; backgroundWorker1.RunWorkerAsync();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Invoke(new MessageBoxDelegate(ShowMessage), "waz here", "nobugz", MessageBoxButtons.OK, MessageBoxIcon.Information);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private DialogResult ShowMessage(string msg, string title, MessageBoxButtons buttons, MessageBoxIcon icon) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return MessageBox.Show(this, msg, title, buttons, icon);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-6104991504119573083?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kMoNibxkbucqnWPpmfchd8tFyTg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kMoNibxkbucqnWPpmfchd8tFyTg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kMoNibxkbucqnWPpmfchd8tFyTg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kMoNibxkbucqnWPpmfchd8tFyTg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/CRtpyAJFaa4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/6104991504119573083/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=6104991504119573083&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/6104991504119573083?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/6104991504119573083?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/CRtpyAJFaa4/messagebox-display-called-from-separate.html" title="MessageBox display called from a separate thread" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/08/messagebox-display-called-from-separate.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkACQ3g-fip7ImA9WhdXEE8.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-4688314784382208163</id><published>2011-08-22T08:59:00.000-07:00</published><updated>2011-08-22T08:59:22.656-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-22T08:59:22.656-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="directory" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>Get Application Directory [C#]</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #303030; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;
Following examples show how to get application or assembly folder.&lt;br /&gt;
&lt;h2 style="font-size: 1.2em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 1.8em;"&gt;Directory of windows forms application (.exe)&lt;/h2&gt;Class Application in System.Window­s.Forms namespace has static property&amp;nbsp;&lt;a href="http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.executablepath.aspx" rel="nofollow" style="color: #286ea0; text-decoration: none;"&gt;ExecutablePath&lt;/a&gt;. It contains path of the .exe file (that started the application) including the executable file name. To get only the folder part of the path, use static method&amp;nbsp;&lt;a href="http://msdn2.microsoft.com/en-us/library/system.io.path.getdirectoryname.aspx" rel="nofollow" style="color: #286ea0; text-decoration: none;"&gt;GetDirectoryName&lt;/a&gt;&amp;nbsp;of Path&amp;nbsp;class.&lt;br /&gt;
[C#]&lt;br /&gt;
&lt;pre class="code" style="background-color: #e8e8e8; color: black; font-family: 'Courier New', Courier, Consolas, monospace; overflow-x: auto; width: 599px;"&gt;&lt;span class="keyword" style="color: blue;"&gt;using&lt;/span&gt; System.IO;
&lt;span class="keyword" style="color: blue;"&gt;using&lt;/span&gt; System.Windows.Forms;

&lt;span class="keyword" style="color: blue;"&gt;string&lt;/span&gt; appPath = &lt;span class="type" style="color: #2b91af;"&gt;Path&lt;/span&gt;.GetDirectoryName(&lt;span class="type" style="color: #2b91af;"&gt;Application&lt;/span&gt;.&lt;strong&gt;ExecutablePath&lt;/strong&gt;);

&lt;/pre&gt;&lt;h2 style="font-size: 1.2em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 1.8em;"&gt;Directory of any loaded assembly (.exe or .dll)&lt;/h2&gt;First get reference to the assembly. You can use static methods of Assembly class. To get assembly of currently executing code use method Assembly.&lt;a href="http://msdn2.microsoft.com/en-us/library/system.reflection.assembly.getexecutingassembly.aspx" rel="nofollow" style="color: #286ea0; text-decoration: none;"&gt;GetE­xecutingAssem­bly&lt;/a&gt;. To get assembly in which the specified class is defined use method Assembly.&lt;a href="http://msdn2.microsoft.com/en-us/library/system.reflection.assembly.getassembly.aspx" rel="nofollow" style="color: #286ea0; text-decoration: none;"&gt;GetAs­sembly&lt;/a&gt;&amp;nbsp;(with the specified class type as a paramater). The assembly must be loaded. Next get assembly file path using Assembly.&lt;a href="http://msdn2.microsoft.com/en-us/library/system.reflection.assembly.codebase.aspx" rel="nofollow" style="color: #286ea0; text-decoration: none;"&gt;CodeBase&lt;/a&gt;&amp;nbsp;property.&lt;br /&gt;
[C#]&lt;br /&gt;
&lt;pre class="code" style="background-color: #e8e8e8; color: black; font-family: 'Courier New', Courier, Consolas, monospace; overflow-x: auto; width: 599px;"&gt;&lt;span class="keyword" style="color: blue;"&gt;using&lt;/span&gt; System.IO;
&lt;span class="keyword" style="color: blue;"&gt;using&lt;/span&gt; System.Reflection;

&lt;span class="keyword" style="color: blue;"&gt;string&lt;/span&gt; path = &lt;span class="type" style="color: #2b91af;"&gt;Path&lt;/span&gt;.GetDirectoryName(
                     &lt;span class="type" style="color: #2b91af;"&gt;Assembly&lt;/span&gt;.&lt;strong&gt;GetAssembly&lt;/strong&gt;(&lt;span class="keyword" style="color: blue;"&gt;typeof&lt;/span&gt;(&lt;span class="type" style="color: #2b91af;"&gt;&lt;strong&gt;MyClass&lt;/strong&gt;&lt;/span&gt;)).CodeBase);

&lt;/pre&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #303030; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 14px; font-weight: bold; line-height: 19px;"&gt;See also&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #303030; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 19px;"&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.executablepath.aspx" rel="nofollow" style="color: #286ea0; text-decoration: none;"&gt;Application.E­xecutablePath&lt;/a&gt;&amp;nbsp;– MSDN&amp;nbsp;– returns path of application .exe&amp;nbsp;file&lt;/li&gt;
&lt;li&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/system.reflection.assembly.getassembly.aspx" rel="nofollow" style="color: #286ea0; text-decoration: none;"&gt;Assembly.GetAs­sembly&lt;/a&gt;&amp;nbsp;– MSDN&amp;nbsp;– returns assembly for the specified&amp;nbsp;class&lt;/li&gt;
&lt;li&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/system.io.path.getdirectoryname.aspx" rel="nofollow" style="color: #286ea0; text-decoration: none;"&gt;Path.GetDirec­toryName&lt;/a&gt;&amp;nbsp;– MSDN&amp;nbsp;– returns the dir part of the specified&amp;nbsp;path&lt;/li&gt;
&lt;/ul&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-4688314784382208163?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IdMgsyA-oAk1Qc6Mq02MxTYWaPs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IdMgsyA-oAk1Qc6Mq02MxTYWaPs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IdMgsyA-oAk1Qc6Mq02MxTYWaPs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IdMgsyA-oAk1Qc6Mq02MxTYWaPs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/UWNmxMWtTlA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/4688314784382208163/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=4688314784382208163&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/4688314784382208163?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/4688314784382208163?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/UWNmxMWtTlA/get-application-directory-c.html" title="Get Application Directory [C#]" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/08/get-application-directory-c.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMDQ3w5fip7ImA9WhdQF0k.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-6192063585288333126</id><published>2011-08-19T02:01:00.000-07:00</published><updated>2011-08-19T02:01:12.226-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-19T02:01:12.226-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Life Cycle" /><category scheme="http://www.blogger.com/atom/ns#" term="page" /><category scheme="http://www.blogger.com/atom/ns#" term="asp .net" /><title>ASP.NET Page Life Cycle</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;img alt="ASP.NET Page Life Cycle Diagram" id="ASPNET_LifeCycleOverview" src="http://i.msdn.microsoft.com/dynimg/IC386473.png" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;" title="ASP.NET Page Life Cycle Diagram" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-6192063585288333126?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hr3hEocPHaUdcOKYwALc5aMi3Tg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hr3hEocPHaUdcOKYwALc5aMi3Tg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hr3hEocPHaUdcOKYwALc5aMi3Tg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hr3hEocPHaUdcOKYwALc5aMi3Tg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/Eojh5fxM6-8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/6192063585288333126/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=6192063585288333126&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/6192063585288333126?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/6192063585288333126?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/Eojh5fxM6-8/aspnet-page-life-cycle.html" title="ASP.NET Page Life Cycle" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/08/aspnet-page-life-cycle.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEIHQX49cCp7ImA9WhdQFEQ.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-5726543346998357362</id><published>2011-08-16T04:02:00.000-07:00</published><updated>2011-08-16T04:02:10.068-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-16T04:02:10.068-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="TFS" /><category scheme="http://www.blogger.com/atom/ns#" term="rollback" /><title>Rollback or Undo a ChangeSet in TFS 2010</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: 'Times New Roman', serif; font-size: 12pt; margin-bottom: 10px; margin-left: 0in; margin-right: 0in; margin-top: 10px;"&gt;&lt;span style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;TFS 2010 provides you the ability to Rollback or Undo a ChangeSet from TFS Product itself. You can also see it as a new pending change type as Rollback&amp;nbsp;(new change type in the history) inside Team Explorer.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman', serif; font-size: 12pt; margin-bottom: 10px; margin-left: 0in; margin-right: 0in; margin-top: 10px;"&gt;&lt;span style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;This feature was earlier&amp;nbsp;available in TFS 2008 as part of TFS Power Tools only, where you have to Rollback the Change Set using&amp;nbsp;&lt;strong&gt;&lt;span style="font-family: Calibri, sans-serif;"&gt;tfpt.exe&lt;/span&gt;&lt;/strong&gt;. Here&amp;nbsp;in TFS 2010 implementation&amp;nbsp;you have to use the command-line application&amp;nbsp;&lt;strong&gt;&lt;span style="font-family: Calibri, sans-serif;"&gt;tf.exe&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;to actually perform the rollback information.&amp;nbsp; More information about the tool is available here in the MSDN Library:&amp;nbsp;&amp;nbsp;&lt;a href="http://www.edsquared.com/ct.ashx?id=762b9371-3576-4e77-8311-0acdbb5a455e&amp;amp;url=http%3a%2f%2fmsdn.microsoft.com%2fen-us%2flibrary%2fdd380776%28VS.100%29.aspx" style="color: blue; text-decoration: underline;"&gt;&lt;span style="color: #3366aa;"&gt;http://msdn.microsoft.com/en-us/library/dd380776(VS.100).aspx&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman', serif; font-size: 12pt; margin-bottom: 10px; margin-left: 0in; margin-right: 0in; margin-top: 10px;"&gt;&lt;strong&gt;&lt;span style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;The syntax is:&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;&lt;br /&gt;
tf rollback /changeset:changesetfrom~changesetto [itemspec] [/recursive]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [/lock:none|checkin|checkout] [/version:versionspec]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [/keepmergehistory] [/noprompt] [/login:username,[password]]&lt;br /&gt;
tf rollback /toversion:versionspec itemspec [/recursive]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [/lock:none|checkin|checkout] [/version:versionspec]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [/keepmergehistory] [/noprompt] [/login:username,[password]]&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman', serif; font-size: 12pt; margin-bottom: 10px; margin-left: 0in; margin-right: 0in; margin-top: 10px;"&gt;&lt;span style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;Here, I am performing a Rollback of ChangeSet Number 22 which contains Form1.cs file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman', serif; font-size: 12pt; margin-bottom: 10px; margin-left: 0in; margin-right: 0in; margin-top: 10px;"&gt;&lt;span style="font-family: conso; font-size: xx-small;"&gt;&lt;img alt="" src="http://geekswithblogs.net/images/geekswithblogs_net/jehan/Rollback/Rollback1.png" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman', serif; font-size: 12pt; margin-bottom: 10px; margin-left: 0in; margin-right: 0in; margin-top: 10px;"&gt;&lt;span style="font-family: conso; font-size: xx-small;"&gt;&lt;img alt="" src="http://geekswithblogs.net/images/geekswithblogs_net/jehan/Rollback/Rollback2.png" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman', serif; font-size: 12pt; margin-bottom: 10px; margin-left: 0in; margin-right: 0in; margin-top: 10px;"&gt;&amp;nbsp;&lt;img alt="" height="426" src="http://geekswithblogs.net/images/geekswithblogs_net/jehan/Rollback/Rollback3.png" width="628" /&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman', serif; font-size: 12pt; margin-bottom: 10px; margin-left: 0in; margin-right: 0in; margin-top: 10px;"&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman', serif; font-size: 12pt; margin-bottom: 10px; margin-left: 0in; margin-right: 0in; margin-top: 10px;"&gt;&lt;span style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;Just do a check-in, your Rollback of ChangeSet will be done.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-5726543346998357362?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WL0VTUv8NM99Tj2xj6tdgYtcOmg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WL0VTUv8NM99Tj2xj6tdgYtcOmg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WL0VTUv8NM99Tj2xj6tdgYtcOmg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WL0VTUv8NM99Tj2xj6tdgYtcOmg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/dTdTvu2jtac" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/5726543346998357362/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=5726543346998357362&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/5726543346998357362?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/5726543346998357362?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/dTdTvu2jtac/rollback-or-undo-changeset-in-tfs-2010.html" title="Rollback or Undo a ChangeSet in TFS 2010" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/08/rollback-or-undo-changeset-in-tfs-2010.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk4NSXg5fCp7ImA9WhdSGU4.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-1793218421997507274</id><published>2011-07-29T03:22:00.001-07:00</published><updated>2011-07-29T03:23:18.624-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-29T03:23:18.624-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql" /><title>SQL: If Exists Update Else Insert</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-top: 0px;"&gt;This is a pretty common situation that comes up when performing database operations.&amp;nbsp; A stored procedure is called and the data needs to be updated if it already exists and inserted if it does not.&amp;nbsp; If we refer to the Books Online documentation, it gives examples that are similar to:&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-top: 0px;"&gt;IF EXISTS (SELECT * FROM Table1 WHERE Column1='SomeValue')&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; UPDATE Table1 SET (...) WHERE Column1='SomeValue'&lt;br /&gt;
ELSE&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; INSERT INTO Table1 VALUES (...)&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-top: 0px;"&gt;This approach does work, however it might not always be the best approach.&amp;nbsp; This will do a table/index scan for both the SELECT statement and the UPDATE statement.&amp;nbsp; In most standard approaches, the following statement will likely provide better performance.&amp;nbsp; It will only perform one table/index scan instead of the two that are performed in the previous approach.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-top: 0px;"&gt;UPDATE Table1 SET (...) WHERE Column1='SomeValue'&lt;br /&gt;
IF @@ROWCOUNT=0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; INSERT INTO Table1 VALUES (...)&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-top: 0px;"&gt;The saved table/index scan can increase performance quite a bit as the number of rows in the targeted table grows.&lt;/div&gt;&lt;div style="margin-top: 0px;"&gt;Just remember, the examples in the MSDN documentation are usually the easiest way to implement something, not necessarily the best way.&amp;nbsp; Also (as I re-learned recently), with any database operation, it is good to performance test the different approaches that you take.&amp;nbsp; Sometimes the method that you think would be the worst might actually outperform the way that you think would be the better way.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-1793218421997507274?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kfIl_AGZ20y6BQteVKIFYDvhtk0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kfIl_AGZ20y6BQteVKIFYDvhtk0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kfIl_AGZ20y6BQteVKIFYDvhtk0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kfIl_AGZ20y6BQteVKIFYDvhtk0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/ji-pZ0_SVFc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/1793218421997507274/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=1793218421997507274&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/1793218421997507274?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/1793218421997507274?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/ji-pZ0_SVFc/sql-if-exists-update-else-insert.html" title="SQL: If Exists Update Else Insert" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/sql-if-exists-update-else-insert.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUAEQXo-cSp7ImA9WhdSF0U.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-7176286789040530042</id><published>2011-07-27T09:21:00.001-07:00</published><updated>2011-07-27T09:21:40.459-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-27T09:21:40.459-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="windows 7" /><title>Как установить Windows 7 на нетбуке</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'segoe ui', verdana, arial, sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;В случае если вы желаете установить Windows 7 на нетбук с другой предустановленной операционной системой или вам требуется переустановить существующую копию Windows 7, вы можете выполнить свое намерение несколькими различными способами в зависимости от наличия в вашем распоряжении внешнего привода для чтения DVD-дисков, DVD-диска с дистрибутивом Windows 7 или подлинного образа диска Windows 7, приобретенного в Microsoft Store.&lt;/div&gt;&lt;a href="" name="section_1" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;&lt;/a&gt;&lt;div class="section sectionNormal" style="display: inline; min-height: 0px; position: static; z-index: 0;"&gt;&lt;h2 class="title_section" style="color: #22436c; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 0px; position: static; z-index: 0;"&gt;Проверка готовности вашего нетбука для Windows 7&lt;/h2&gt;&lt;div class="" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Если вы приобрели нетбук с операционной системой, отличной от Windows 7, и ваш нетбук не имеет соответствующих логотипов сертификации, вам следует проверить его на совместимость с Windows 7. Для этого вы можете воспользоваться&amp;nbsp;&lt;a class="navigationLink" href="http://windows.microsoft.com/ru-RU/windows7/downloads/upgrade-advisor" id="pageContainer0_ID0ENH" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;советником по переходу на Windows 7&lt;/a&gt;.&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Советник по переходу – универсальное средство для обнаружения потенциальных проблем с оборудованием и устройствами, которые могут возникнуть при установке и работе Windows 7. Кроме того, советник по переходу уведомит вас о том, какие из дополнительных возможностей Windows 7 будут доступны на вашем нетбуке.&lt;/div&gt;&lt;/div&gt;&lt;div class="linkTopOfPage" style="clear: left; margin-bottom: 32px; padding-top: 4px; position: static; z-index: 0;"&gt;&lt;a class="linkTopOfPage" href="http://windows.microsoft.com/ru-RU/windows7/installing-windows-7-on-a-netbook#TopOfPageTarget" logginginteractiontypeid="none" style="background-image: url(http://windows.microsoft.com/Resources/3.1/shared/images/top_of_page_arrow.png); background-position: 0% 4px; background-repeat: no-repeat no-repeat; color: #0066cc; display: inline-block; font-size: 13px; font-weight: normal; margin-bottom: 0px; padding-left: 12px; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;К началу страницы&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href="" name="section_2" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;&lt;/a&gt;&lt;div class="section sectionNormal" style="display: inline; min-height: 0px; position: static; z-index: 0;"&gt;&lt;h2 class="title_section" style="color: #22436c; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 0px; position: static; z-index: 0;"&gt;Загрузка компьютера с внешнего устройства: DVD-привода или флэш-накопителя USB&lt;/h2&gt;&lt;div class="" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Как правило, на большинстве нетбуков отсутствует внутренней привод для чтения DVD-дисков. Для установки Windows 7 на таком нетбуке вам потребуется прибегнуть либо к использованию внешнего DVD-привода, либо к загрузочному флэш-накопителю USB (“флешки”). В обоих случаях вам потребуется произвести загрузку нетбука с внешнего устройства.&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Особенности настройки нетбука для загрузки с внешних устройств определяются конкретной моделью. Для получения дополнительных сведений обратитесь к документации вашего нетбука, на веб-сайт его производителя или к страницам&lt;a class="navigationLink" href="http://windows.microsoft.com/ru-RU/windows7/Installing-and-reinstalling-Windows-7" id="pageContainer0_ID0EBAAC" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;Установка и переустановка Windows 7&lt;/a&gt;&amp;nbsp;и&amp;nbsp;&lt;a class="navigationLink" href="http://windows.microsoft.com/ru-RU/windows7/Start-your-computer-from-a-Windows-7-installation-disc-or-USB-flash-drive" id="pageContainer0_ID0EIAAC" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;Запуск Windows с компакт-диска или DVD-диска&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div class="linkTopOfPage" style="clear: left; margin-bottom: 32px; padding-top: 4px; position: static; z-index: 0;"&gt;&lt;a class="linkTopOfPage" href="http://windows.microsoft.com/ru-RU/windows7/installing-windows-7-on-a-netbook#TopOfPageTarget" logginginteractiontypeid="none" style="background-image: url(http://windows.microsoft.com/Resources/3.1/shared/images/top_of_page_arrow.png); background-position: 0% 4px; background-repeat: no-repeat no-repeat; color: #0066cc; display: inline-block; font-size: 13px; font-weight: normal; margin-bottom: 0px; padding-left: 12px; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;К началу страницы&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href="" name="section_3" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;&lt;/a&gt;&lt;div class="section sectionNormal" style="display: inline; min-height: 0px; position: static; z-index: 0;"&gt;&lt;h2 class="title_section" style="color: #22436c; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 0px; position: static; z-index: 0;"&gt;Установка Windows 7 на нетбуке с помощью внешнего DVD-привода&lt;/h2&gt;&lt;div class="" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Если в вашем распоряжении имеется внешний привод для чтения DVD-дисков, вы можете произвести установку Windows 7 с установочного диска.&lt;/div&gt;&lt;div class="example" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Внешний привод для чтения DVD-дисков" class="embedObject" height="314" id="pageContainer0_ID0E2AAC" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/4/9/49e24957-10ed-4343-b6dc-d5c4b2eed55c/49e24957-10ed-4343-b6dc-d5c4b2eed55c.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Внешний привод для чтения DVD-дисков" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Установку Windows 7 на нетбуке с установочного диска можно произвести при помощи внешнего DVD-привода&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Для этого:&lt;/div&gt;&lt;ol class="ordered_dec" style="font-weight: normal; list-style-type: decimal; margin-bottom: 0px; margin-left: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; z-index: 0;"&gt;&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Подключите внешний DVD-привод к вашему нетбуку. Как правило, для подключения к компьютеру внешнего DVD-привода используется разъем USB.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Вставьте в DVD-привод установочный диск Windows 7.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Для обновления предыдущей версии Windows до Windows 7 запустите процесс установки Windows 7 из существующей операционной системы. Для полной переустановки существующей операционной системы загрузите нетбук с установочного диска Windows 7. Более подробно об установке и обновлении читайте&amp;nbsp;&lt;a class="navigationLink" href="http://windows.microsoft.com/ru-RU/windows7/help/install-upgrade-activate" id="pageContainer0_ID0E3BAC" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;здесь&lt;/a&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;В случае отсутствия в вашем распоряжении внешнего DVD-привода, вы также можете произвести установку Windows 7 с установочного диска в вашем местном компьютерном магазине.&lt;/div&gt;&lt;/div&gt;&lt;div class="linkTopOfPage" style="clear: left; margin-bottom: 32px; padding-top: 4px; position: static; z-index: 0;"&gt;&lt;a class="linkTopOfPage" href="http://windows.microsoft.com/ru-RU/windows7/installing-windows-7-on-a-netbook#TopOfPageTarget" logginginteractiontypeid="none" style="background-image: url(http://windows.microsoft.com/Resources/3.1/shared/images/top_of_page_arrow.png); background-position: 0% 4px; background-repeat: no-repeat no-repeat; color: #0066cc; display: inline-block; font-size: 13px; font-weight: normal; margin-bottom: 0px; padding-left: 12px; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;К началу страницы&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href="" name="section_4" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;&lt;/a&gt;&lt;div class="section sectionNormal" style="display: inline; min-height: 0px; position: static; z-index: 0;"&gt;&lt;h2 class="title_section" style="color: #22436c; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 0px; position: static; z-index: 0;"&gt;Установка Windows 7 на нетбуке с помощью флэш-накопителя USB при наличии установочного диска Windows 7&lt;/h2&gt;&lt;div class="" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Вы можете и самостоятельно создать загрузочный USB-накопитель, используя файлы c загрузочного диска Windows 7. Для этого вам потребуются:&lt;/div&gt;&lt;ul class="unordered" style="font-weight: normal; list-style-type: disc; margin-bottom: 0px; margin-left: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; z-index: 0;"&gt;&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Флэш-накопитель USB объемом 4 Гб или более.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Установочный диск Windows 7.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Компьютер под управлением Windows Vista или Windows 7, оснащенный приводом для чтения DVD-дисков.&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class="section sectionNormal" style="display: inline; min-height: 0px; position: static; z-index: 0;"&gt;&lt;h3 class="title_section" style="color: #006e12; font-size: 16px; font-weight: normal; margin-bottom: 8px; margin-top: 0px; position: static; z-index: 0;"&gt;Подготовка флэш-накопителя USB&lt;/h3&gt;&lt;div class="" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Перед тем как приступить к созданию загрузочного флэш-накопителя USB, вам необходимо выполнить его форматирование. Обратите внимание, что в ходе форматирования все содержащиеся на флэш-накопителе данные будут утеряны.&lt;/div&gt;&lt;ol class="ordered_dec" style="font-weight: normal; list-style-type: decimal; margin-bottom: 0px; margin-left: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; z-index: 0;"&gt;&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Подключите к нетбуку флэш-накопитель USB.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Откройте Командную строку с повышенными привилегиями (пройдите в меню “Пуск” &amp;gt; Все программы &amp;gt; Стандартные, произведите щелчок правой кнопкой мыши на приложении “Командная строка” и выберите “Запуск от имени администратора”).&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 524px; z-index: 0;"&gt;&lt;img alt="Запуск Командной строки с повышенными привилегиями" class="embedObject" height="347" id="pageContainer0_ID0EYDAC" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/f/2/f28d9626-e953-4faa-adf8-3c3babb68b18/f28d9626-e953-4faa-adf8-3c3babb68b18.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Запуск Командной строки с повышенными привилегиями" width="524" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Запустите Командную строку с повышенными привилегиями, выбрав “Запуск от имени администратора”&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;В окне командной строки последовательно введите и выполните (клавиша Enter) следующие команды:&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;diskpart&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;list disk&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;В окне будет отображен список накопителей, установленных на вашем нетбуке. Определите номер вашего флэш-накопителя USB, сверив размер вашего накопителя с приведенными в списке (в примере на изображении – Диск 1).&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Подготовка флэш-накопителя" class="embedObject" height="290" id="pageContainer0_ID0EYEAC" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/d/1/d163b76b-2ea3-45cd-b761-06995cff353f/d163b76b-2ea3-45cd-b761-06995cff353f.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Подготовка флэш-накопителя" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Определите номер вашего флэш-накопителя&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Произведите форматирование вашего флэш-накопителя USB, последовательно вводя и выполняя приведенные ниже команды, где X – цифра вашего флэш-накопителя USB, определенная в предыдущем шаге (в примере на изображении – 1):&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;select disk X&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;clean&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;create partition primary&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;select partition&amp;nbsp;&lt;/span&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;active&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;format fs=NTFS&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;assign&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;exit&lt;/span&gt;&amp;nbsp;&lt;br style="position: static; z-index: 0;" /&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;ВНИМАНИЕ! Внимательно проверьте, что вы указываете цифру именно для флеш-накопителя. В случае, если вы укажете неверную цифру – номер жесткого диска вашего компьютера, вы можете потерять все данные.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Форматирование флэш-накопителя USB через Командную строку" class="embedObject" height="439" id="pageContainer0_ID0E3GAC" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/d/b/dba217d5-6e3d-48fa-99e7-7ac26683aa59/dba217d5-6e3d-48fa-99e7-7ac26683aa59.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Форматирование флэш-накопителя USB через Командную строку" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Произведите форматирование флэш-накопителя USB&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="section sectionNormal" style="display: inline; min-height: 0px; position: static; z-index: 0;"&gt;&lt;h3 class="title_section" style="color: #006e12; font-size: 16px; font-weight: normal; margin-bottom: 8px; margin-top: 0px; position: static; z-index: 0;"&gt;Создание загрузочного флэш-накопителя USB&lt;/h3&gt;&lt;div class="" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;После выполнения этих шагов вы можете перейти к созданию загрузочного флэш-накопителя USB. Для этого:&lt;/div&gt;&lt;ol class="ordered_dec" style="font-weight: normal; list-style-type: decimal; margin-bottom: 0px; margin-left: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; z-index: 0;"&gt;&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Вставьте загрузочный диск Windows 7 в DVD-привод.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Откройте Командную строку с повышенными привилегиями.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Перейдите в корневой каталог установочного диска Windows 7, последовательно введя и выполнив следующий команды, где D – буква вашего DVD-привода:&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;D&lt;/span&gt;&amp;nbsp;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;cd&amp;nbsp;&lt;/span&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;D&lt;/span&gt;&amp;nbsp;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;:\boot&lt;/span&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Командная строка Windows" class="embedObject" height="290" id="pageContainer0_ID0ETIAC" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/e/0/e0442ebc-5c12-473c-a5b2-a134a9f49ff0/e0442ebc-5c12-473c-a5b2-a134a9f49ff0.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Командная строка Windows" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Перейдите в корневой каталог установочного диска Windows 7&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Введите и примените следующую команду, где&amp;nbsp;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;F&lt;/span&gt;&amp;nbsp;– буква вашего флэш-накопителя USB, чтобы добавить загрузочный код Windows 7 на флэш-накопитель USB.&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;bootsect /nt60&amp;nbsp;&lt;/span&gt;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;F&lt;/span&gt;&amp;nbsp;&lt;span class="newTerm" style="font-style: italic; position: static; z-index: 0;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="example" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Командная строка Windows" class="embedObject" height="290" id="pageContainer0_ID0EXJAC" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/f/1/f11a3b9c-b965-4236-9d22-c9fab72f4c22/f11a3b9c-b965-4236-9d22-c9fab72f4c22.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Командная строка Windows" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Добавьте загрузочный код Windows 7 на ваш флэш-накопитель USB&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Для завершения создания загрузочного флэш-накопителя USB вам необходимо произвести копирование всех файлов с установочного диска Windows 7 на ваш флэш-накопитель. Для этого:&lt;/div&gt;&lt;ol class="ordered_dec" style="font-weight: normal; list-style-type: decimal; margin-bottom: 0px; margin-left: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; z-index: 0;"&gt;&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Через окно “Компьютер” найдите и откройте DVD-привод с установочным диском Windows 7 и флэш-накопитель USB.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;В окне DVD-привода выделите все файлы, содержащиеся на диске, щелкните правой кнопкой мыши по любому из файлов и выберите пункт “Копировать”.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Перейдите в окно вашего флэш-накопителя USB, щелкните правой кнопкой мыши по пустому пространству в окне и выберите пункт “Вставить”.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Дождитесь окончания процесса копирования файлов.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2.5em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;По завершении этого процесса вы можете использовать ваш флэш-накопитель USB для установки Windows 7 на нетбуке. Для проведения полной установки вам потребуется загрузить нетбук с флэш-накопителя USB.&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="linkTopOfPage" style="clear: left; margin-bottom: 32px; padding-top: 4px; position: static; z-index: 0;"&gt;&lt;a class="linkTopOfPage" href="http://windows.microsoft.com/ru-RU/windows7/installing-windows-7-on-a-netbook#TopOfPageTarget" logginginteractiontypeid="none" style="background-image: url(http://windows.microsoft.com/Resources/3.1/shared/images/top_of_page_arrow.png); background-position: 0% 4px; background-repeat: no-repeat no-repeat; color: #0066cc; display: inline-block; font-size: 13px; font-weight: normal; margin-bottom: 0px; padding-left: 12px; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;К началу страницы&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href="" name="section_5" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;&lt;/a&gt;&lt;div class="section sectionNormal" style="display: inline; min-height: 0px; position: static; z-index: 0;"&gt;&lt;h2 class="title_section" style="color: #22436c; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 0px; position: static; z-index: 0;"&gt;Установка Windows 7 на нетбуке с помощью флэш-накопителя USB при наличии оригинального ISO-образа Windows 7&lt;/h2&gt;&lt;div class="" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;На веб-сайте&amp;nbsp;&lt;a class="navigationLink" href="http://go.microsoft.com/fwlink/?LinkId=160999" id="pageContainer0_ID0ENLAC" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;Microsoft Store&lt;/a&gt;&amp;nbsp;вы можете приобрести Windows 7 в виде образа установочного диска ISO, предназначенного для дальнейшей записи на внешний носитель. В случае отсутствия возможности установить Windows 7 с установочного диска или записать образ на DVD-диск, вы можете произвести установку с флэш-накопителя USB. Для упрощения процесса записи Microsoft предлагает инструмент&lt;a class="navigationLink" href="http://go.microsoft.com/fwlink/?LinkId=182674" id="pageContainer0_ID0EULAC" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;Windows 7 USB/DVD Download Tool&lt;/a&gt;&amp;nbsp;(страница на английском языке).&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Для создания установочного флэш-накопителя USB вам потребуется:&lt;/div&gt;&lt;ul class="unordered" style="font-weight: normal; list-style-type: disc; margin-bottom: 0px; margin-left: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; z-index: 0;"&gt;&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Компьютер или нетбук под управлением Windows XP SP2, Windows Vista или Windows 7 (32- или 64-разрядная версия).&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Подлинный образ Windows 7 в формате ISO, приобретенный на веб-сайте&lt;a class="navigationLink" href="http://go.microsoft.com/fwlink/?LinkId=160999" id="pageContainer0_ID0EKMAC" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;Microsoft Store&lt;/a&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;li class="listItem" style="font-weight: normal; list-style-position: outside; margin-bottom: 0px; margin-left: 2em; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Чистый флэш-накопитель USB объемом не менее 4 Гб.&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Для создания установочного флэш-накопителя USB следуйте приведенной ниже инструкции:&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Скачайте приложение&amp;nbsp;&lt;a class="navigationLink" href="http://go.microsoft.com/fwlink/?LinkId=182674" id="pageContainer0_ID0E4MAC" style="color: #0066cc; position: static; text-decoration: none; vertical-align: baseline; z-index: 0;"&gt;Windows 7 DVD/USB Download Tool&lt;/a&gt;&amp;nbsp;(страница на английском языке) с веб-сайта Microsoft Store и установите его на ваш нетбук.&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Запустите Windows 7 DVD/USB Download Tool.&lt;/div&gt;&lt;div class="example" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Окно приложения Windows 7 USB/DVD Download Tool" class="embedObject" height="290" id="pageContainer0_ID0ELNAC" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/e/5/e57e34af-b8dd-4159-be3d-e856712ae217/e57e34af-b8dd-4159-be3d-e856712ae217.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Окно приложения Windows 7 USB/DVD Download Tool" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Окно приложения Windows 7 USB/DVD Download Tool&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Укажите путь к образу установочного диска. Для этого нажмите кнопку “Browse” и найдите соответствующий файл образа ISO на вашем компьютере. По завершении нажмите кнопку “Next”.&lt;/div&gt;&lt;div class="example" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Выбор образа для записи в приложении Windows 7 USB/DVD Download Tool" class="embedObject" height="377" id="pageContainer0_ID0E6NAC" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/7/a/7ab92460-5fbb-424a-9b69-73c103f06bcb/7ab92460-5fbb-424a-9b69-73c103f06bcb.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Выбор образа для записи в приложении Windows 7 USB/DVD Download Tool" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Нажмите кнопку “Browse” и найдите файл образа на вашем компьютере&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="example" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Окно приложения Windows 7 USB/DVD Download Tool" class="embedObject" height="290" id="pageContainer0_ID0EROAC" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/2/8/2821a181-df57-49a0-84dc-abdbc110d103/2821a181-df57-49a0-84dc-abdbc110d103.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Окно приложения Windows 7 USB/DVD Download Tool" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;После выбора файла образа нажмите кнопку “Next”&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Выберите соответствующий носитель информации для записи. Для создания установочного флэш-накопителя USB нажмите кнопку “USB device”.&lt;/div&gt;&lt;div class="example" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Окно приложения Windows 7 USB/DVD Download Tool, выбор носителя информации для записи" class="embedObject" height="290" id="pageContainer0_ID0EFPAC" src="http://res1.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/5/6/564586a3-6bd4-4b3c-a0ed-65a9112f4a48/564586a3-6bd4-4b3c-a0ed-65a9112f4a48.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Окно приложения Windows 7 USB/DVD Download Tool, выбор носителя информации для записи" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Выберите “USB device” для записи образа Windows 7 на флэш-накопитель USB&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Укажите флэш-накопитель USB, на который следует произвести запись (накопитель “МОЯ ФЛЕШКА” на изображении ниже). После выбора флэш-накопителя, нажмите на кнопку “Begin copying” для начала записи.&lt;/div&gt;&lt;div class="example" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Окно приложения Windows 7 USB/DVD Download Tool, выбор флэш-накопителя USB для записи" class="embedObject" height="290" id="pageContainer0_ID0EZPAC" src="http://res1.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/e/8/e871ce52-b157-4f76-962e-0d0faa57ead6/e871ce52-b157-4f76-962e-0d0faa57ead6.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Окно приложения Windows 7 USB/DVD Download Tool, выбор флэш-накопителя USB для записи" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Выберите ваш флэш-накопитель USB из ниспадающего списка&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;В случае если флэш-накопитель не подключен к компьютеру, будет отображено окно, сообщающее о том, что совместимых устройств USB не обнаружено (No compatible USB devices detected).&lt;/div&gt;&lt;div class="example" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Окно приложения Windows 7 USB/DVD Download Tool, совместимых устройств USB не обнаружено" class="embedObject" height="290" id="pageContainer0_ID0EOAAE" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/0/d/0d387a9d-a618-41cf-9f8a-f3e44a7d3aa0/0d387a9d-a618-41cf-9f8a-f3e44a7d3aa0.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Окно приложения Windows 7 USB/DVD Download Tool, совместимых устройств USB не обнаружено" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Если флэш-накопитель USB не подключен, приложение уведомит вас о том, что совместимых устройств USB не обнаружено&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;В таком случае, подключите флэш-накопитель USB и нажмите на кнопку обновления “Refresh”, расположенную рядом с ниспадающим списком.&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Обратите внимание, что в ходе записи все файлы, содержащиеся на флэш-накопителе, будут удалены. Для продолжения нажмите кнопку “Erase USB Device”.&lt;/div&gt;&lt;div class="example" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Флэш-накопитель USB должен быть отформатирован перед началом записи" class="embedObject" height="320" id="pageContainer0_ID0EEBAE" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/6/4/64fe68f7-14e0-45da-ab5e-2ac9e182c8d6/64fe68f7-14e0-45da-ab5e-2ac9e182c8d6.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Флэш-накопитель USB должен быть отформатирован перед началом записи" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Флэш-накопитель USB должен быть отформатирован перед началом записи&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;Далее Windows 7 DVD/USB Download Tool произведет форматирование вашего флэш-накопителя USB и запись образа Windows 7. Продолжительность этого этапа зависит от производительности вашего оборудования.&lt;/div&gt;&lt;div class="example" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Процесс записи образа Windows 7 на флэш-накопитель USB" class="embedObject" height="290" id="pageContainer0_ID0EYBAE" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/c/b/cbbe7a89-6260-4b3c-9d00-786c1eee0575/cbbe7a89-6260-4b3c-9d00-786c1eee0575.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Процесс записи образа Windows 7 на флэш-накопитель USB" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;Windows 7 DVD/USB Download Tool произведет запись установочного образа Windows 7 на ваш флэш-накопитель USB&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; margin-bottom: 0px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;По завершении этого процесса вы можете использовать ваш флэш-накопитель USB для установки Windows 7 на нетбуке. Для проведения полной установки вам потребуется загрузить нетбук с флэш-накопителя USB.&lt;/div&gt;&lt;div class="example" style="position: static; z-index: 0;"&gt;&lt;div class="para" style="color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 16px; margin-top: 0px; position: static; z-index: 0;"&gt;&lt;/div&gt;&lt;div class="embedObject" style="float: none; margin-right: 0px; position: static; width: 550px; z-index: 0;"&gt;&lt;img alt="Загрузочный флэш-накопитель USB успешно создан" class="embedObject" height="290" id="pageContainer0_ID0EMCAE" src="http://res2.windows.microsoft.com/resbox/ru-RU/Windows%207/Main/b/1/b1976804-7373-43ec-a566-7f7009b52458/b1976804-7373-43ec-a566-7f7009b52458.png" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: static; z-index: 0;" title="Загрузочный флэш-накопитель USB успешно создан" width="550" /&gt;&lt;span class="caption" style="color: #666666; display: block; font-size: 11px; font-style: italic; margin-bottom: 20px; margin-top: 8px; position: static; z-index: 0;"&gt;После завершения процесса записи установочного флэш-накопителя USB вы можете использовать его для установки Windows 7&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-7176286789040530042?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yu13GLwnqI6MQk6F-KRya1OI_ig/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yu13GLwnqI6MQk6F-KRya1OI_ig/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yu13GLwnqI6MQk6F-KRya1OI_ig/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yu13GLwnqI6MQk6F-KRya1OI_ig/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/QL0MtCUT50s" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/7176286789040530042/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=7176286789040530042&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/7176286789040530042?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/7176286789040530042?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/QL0MtCUT50s/windows-7.html" title="Как установить Windows 7 на нетбуке" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/windows-7.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIESH05cCp7ImA9WhdSEkg.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-4717790795261398989</id><published>2011-07-21T06:04:00.000-07:00</published><updated>2011-07-21T06:05:09.328-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-21T06:05:09.328-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="windows froms" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>Exporting a DataGridView to Excel</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;Add a reference to the ‘Microsoft Office 11.0 Object Library’ to your project from COM components.&lt;/li&gt;
&lt;li style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;Create an object of the ApplicationClass in the Excel namespace&lt;div class="pre-action-link" id="premain5" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre id="pre5" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;Excel.ApplicationClass ExcelApp = &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt; Excel.ApplicationClass();&lt;/pre&gt;&lt;/li&gt;
&lt;li style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;Add a new workbook to the object of the Application class. The parameter to the Add method below is the name of the workbook. We are going to provide the name later (while saving the file). So Type.Missing can be used here.&lt;div class="pre-action-link" id="premain6" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre id="pre6" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;ExcelApp.Application.Workbooks.Add(Type.Missing);&lt;/pre&gt;&lt;/li&gt;
&lt;li style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;Change properties of the Workbook&lt;div class="pre-action-link" id="premain7" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre id="pre7" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;ExcelApp.Columns.ColumnWidth = &lt;span class="code-digit" style="color: navy;"&gt;30&lt;/span&gt;;&lt;/pre&gt;&lt;/li&gt;
&lt;li style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;Copy the contents of the DataGridView object to the cells of the Excel Application object. In the code below ReportDataGrodView is the name of my DataGridView object.&lt;div class="pre-action-link" id="premain8" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre id="pre8" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;for&lt;/span&gt; (&lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; i = &lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;; i &amp;lt; ReportDataGridView.Rows.Count; i++)
{
    DataGridViewRow row = ReportDataGridView.Rows[i];
    &lt;span class="code-keyword" style="color: blue;"&gt;for&lt;/span&gt;(&lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; j=0; j&amp;lt; row.Cells.Count; j++)
    {
        ExcelApp.Cells[i+1, j+1] = row.Cells[j].ToString();
    }
}&lt;/pre&gt;&lt;/li&gt;
&lt;li style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;Save the workbook at any suitable location. In the code below FileName is a string representing full path to the name of the file. This can be obtained from a SaveFileDialog if you want.&lt;div class="pre-action-link" id="premain9" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre id="pre9" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;ExcelApp.ActiveWorkbook.SaveCopyAs(FileName);
ExcelApp.ActiveWorkbook.Saved = &lt;span class="code-keyword" style="color: blue;"&gt;true&lt;/span&gt;;&lt;/pre&gt;&lt;/li&gt;
&lt;li style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;Exit the Excel Application and free up the resources&lt;div class="pre-action-link" id="premain10" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre id="pre10" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;ExcelApp.Quit();&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-4717790795261398989?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hBVhNSIi6PYVw4CjEntphksP9RE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hBVhNSIi6PYVw4CjEntphksP9RE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hBVhNSIi6PYVw4CjEntphksP9RE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hBVhNSIi6PYVw4CjEntphksP9RE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/qLrVtcGW_-8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/4717790795261398989/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=4717790795261398989&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/4717790795261398989?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/4717790795261398989?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/qLrVtcGW_-8/exporting-datagridview-to-excel.html" title="Exporting a DataGridView to Excel" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/exporting-datagridview-to-excel.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUEAQnY6cCp7ImA9WhdSEUo.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-8449666391436976533</id><published>2011-07-20T07:51:00.001-07:00</published><updated>2011-07-20T07:54:03.818-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-20T07:54:03.818-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Javascript" /><category scheme="http://www.blogger.com/atom/ns#" term="asp .net" /><title>Check uncheck all checkboxes in a gridview using javascript</title><content type="html">Step 1:&lt;br /&gt;
&lt;br /&gt;
Put this script below head tag&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script type="text/javascript" language="javascript"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function changeCheckState(chk)&lt;br /&gt;
{&lt;br /&gt;
var frm = document.forms[0];&lt;br /&gt;
for (i=0; i&amp;lt;frm.length; i++)&lt;br /&gt;
{&lt;br /&gt;
if (frm.elements[i].id.indexOf('checkBox') != -1)&lt;br /&gt;
{&lt;br /&gt;
frm.elements[i].checked = chk;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Step :2&lt;br /&gt;
&lt;br /&gt;
Put this checkbox in header template &lt;br /&gt;
&lt;br /&gt;
&amp;lt;asp:CheckBox ID="checkBox" runat="server" /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Step 3:&lt;br /&gt;
&lt;br /&gt;
Put this checkbox in Itemtemplate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;input id="changeCheckStateId" onclick="changeCheckState(this.checked);" runat="server"&amp;nbsp;type="checkbox" /&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-8449666391436976533?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3tPZPv-y2NHjcuc_iskEYmBhL_o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3tPZPv-y2NHjcuc_iskEYmBhL_o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3tPZPv-y2NHjcuc_iskEYmBhL_o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3tPZPv-y2NHjcuc_iskEYmBhL_o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/xutGioXeh0g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/8449666391436976533/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=8449666391436976533&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/8449666391436976533?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/8449666391436976533?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/xutGioXeh0g/check-uncheck-all-checkboxes-in.html" title="Check uncheck all checkboxes in a gridview using javascript" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/check-uncheck-all-checkboxes-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YMQnc8eip7ImA9WhdTF0k.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-5719638228708130204</id><published>2011-07-15T07:46:00.000-07:00</published><updated>2011-07-15T07:46:23.972-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-15T07:46:23.972-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><category scheme="http://www.blogger.com/atom/ns#" term="LINQ" /><title>LINQ: Select where object does not contain items from list</title><content type="html">&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-size: 14px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;dump this into a more specific collection of just the ids you don't want&lt;/div&gt;&lt;pre class="lang-cs prettyprint" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;var&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; notTheseBarIds &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; filterBars&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Select&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;fb &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; fb&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;BarId&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;);&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-size: 14px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;then try this:&lt;/div&gt;&lt;pre class="lang-cs prettyprint" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;fooSelect &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;from&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; f &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;in&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; fooBunch
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;!&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;notTheseBarIds&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Contains&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;f&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;BarId&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;select&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; f&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;).&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;ToList&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;();&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-size: 14px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;or this:&lt;/div&gt;&lt;pre class="lang-cs prettyprint" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;fooSelect &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; fooBunch&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Where&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;f &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;!&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;notTheseBarIds&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Contains&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;f&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;BarId&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;)).&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;ToList&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;();&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-5719638228708130204?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cYkDmuKAaaitYL4xILEasrX3FNA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cYkDmuKAaaitYL4xILEasrX3FNA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cYkDmuKAaaitYL4xILEasrX3FNA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cYkDmuKAaaitYL4xILEasrX3FNA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/QzfjorY8O7A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/5719638228708130204/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=5719638228708130204&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/5719638228708130204?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/5719638228708130204?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/QzfjorY8O7A/linq-select-where-object-does-not.html" title="LINQ: Select where object does not contain items from list" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/linq-select-where-object-does-not.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QARXk5cSp7ImA9WhdTFk4.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-3449898418499728451</id><published>2011-07-14T01:15:00.001-07:00</published><updated>2011-07-14T01:15:44.729-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-14T01:15:44.729-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="windows froms" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>Привязка к DataGridView - Есть ли способ "привязать" цвет фона ячейки?</title><content type="html">&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, 'Liberation Sans', FreeSans, sans-serif; font-size: 11px; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 11px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Вы можете написать обработчик для события CellFormatting DataGridView к настроить цвет фона. Здесь работали примера (вы должны иметь вытащили DataGridView на форму по умолчанию дважды нажал на CellFormatting событием для создания обработчика):&lt;/div&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #eaeaea; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-color: silver; border-left-style: solid; border-left-width: 3px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 11px; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 18px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 12px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 11px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;using System.Drawing; 
using System.Windows.Forms; 
namespace WindowsFormsApplication1 
{ 
    public partial class Form1 : Form 
    { 
        private BindingSource _source = new BindingSource(); 
        public Form1() 
        { 
            InitializeComponent(); 
            _source.Add(new MyData(Status.Amber, "Item A")); 
            _source.Add(new MyData(Status.Red, "Item B")); 
            _source.Add(new MyData(Status.Green, "Item C")); 
            _source.Add(new MyData(Status.Green, "Item D")); 
            dataGridView1.DataSource = _source; 
            dataGridView1.Columns[0].Visible = false; 
        } 
        private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) 
        { 
            if (e.ColumnIndex == 1) 
            { 
                DataGridView dgv = sender as DataGridView; 
                MyData data = dgv.Rows[e.RowIndex].DataBoundItem as MyData; 
                switch (data.Status) 
                { 
                    case Status.Green: 
                        e.CellStyle.BackColor = Color.Green; 
                        break; 
                    case Status.Amber: 
                        e.CellStyle.BackColor = Color.Orange; 
                        break; 
                    case Status.Red: 
                        e.CellStyle.BackColor = Color.Red; 
                        break; 
                } 
            } 
        } 
    } 
    public class MyData 
    { 
        public Status Status { get; set; } 
        public string Text { get; set; } 
        public MyData(Status status, string text) 
        { 
            Status = status; 
            Text = text; 
        } 
    } 
    public enum Status 
    { 
        Green, 
        Amber, 
        Red 
    } 
} &lt;/code&gt;&lt;/pre&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 11px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Объекты здесь просто о статусе и текст для простоты. Я создаю BindingSource по примеру этих объектов, а затем использовать его в качестве источника данных для DataGridView. По умолчанию, автоматически генерирует сетку колонн когда вы связываете, поэтому нет необходимости делать это вручную. Я также скрыть первую колонку, которая связана со стоимостью статуса, как мы собираемся Цвет текста вместо клетки.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 11px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Чтобы действительно сделать картину, мы ответим на CellFormatting событие. Получить ссылку на DataGridView методом литья отправитель, а затем используйте RowIndex собственности DataGridViewCellFormattingEventArgs объект, чтобы добраться до пункта iteself данных (каждая строка имеет DataBoundItem собственности, что дает нам удобнее это). Как DataBoundItem это тип объекта, мы должны привести его к нашим конкретным типом, то мы действительно можем получить в собственность статус самой ... Уф!&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 11px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;У меня не было никакого опыта программирования с подсказкой, но я бы подумал, что вы должны реагировать на события MouseHover, то работа по выявлению, какая строка в настоящее время указано по адресу, чтобы начать с.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 11px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Я надеюсь, это поможет.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-3449898418499728451?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4HZaL9eEYOGfV6601aO92OU3nYo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4HZaL9eEYOGfV6601aO92OU3nYo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/4HZaL9eEYOGfV6601aO92OU3nYo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4HZaL9eEYOGfV6601aO92OU3nYo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/GWmVdzJx6Os" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/3449898418499728451/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=3449898418499728451&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/3449898418499728451?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/3449898418499728451?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/GWmVdzJx6Os/datagridview.html" title="Привязка к DataGridView - Есть ли способ &quot;привязать&quot; цвет фона ячейки?" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/datagridview.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0UDR3w5cCp7ImA9WhdTFk4.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-4754419039135463995</id><published>2011-07-14T01:14:00.000-07:00</published><updated>2011-07-14T01:14:36.228-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-14T01:14:36.228-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="windows froms" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>Color DataGridView Cells Based On Data</title><content type="html">&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;a href="http://www.getdotnetcode.com/gdncstore/free/ColorDataGridViewCellsBasedOnData/ColorDataGridViewCellsBasedOnData.zip"&gt;ColorDataGridViewCellsBasedOnData.zip&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;This article, and the source code it provides, demonstrate how to handle the Windows Forms DataGridView CellFormatting event to set the BackColor of a cell based on the cell's value.&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;The example application in the source code provides users a way to mark inactive customers and/or customers who have not placed an order in the last 30 days.&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;img border="0" height="275" src="http://www.getdotnetcode.com/gdncstore/free/ColorDataGridViewCellsBasedOnData/customerDataGridView.jpg" width="729" /&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;The CellFormatting event occurs when the contents of a cell in a Windows Forms DataGridView control needs to be formatted for display.&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;To set the BackColor of a cells based on their values, create a CellFormatting event handler. Within the handler add code to set the BackColor of individual cells based on their value.&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;b&gt;Code Example&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-collapse: collapse; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Private&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Sub&lt;/span&gt;&amp;nbsp;customerDataGridView_CellFormatting(&lt;span style="color: blue;"&gt;ByVal&lt;/span&gt;&amp;nbsp;sender&amp;nbsp;&lt;span style="color: blue;"&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Object&lt;/span&gt;,&amp;nbsp;&lt;span style="color: blue;"&gt;ByVal&lt;/span&gt;&amp;nbsp;e&amp;nbsp;&lt;span style="color: blue;"&gt;As&lt;/span&gt;DataGridViewCellFormattingEventArgs)&amp;nbsp;&lt;span style="color: blue;"&gt;Handles&lt;/span&gt;&amp;nbsp;customerDataGridView.CellFormatting&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: green;"&gt;' If the column being formatted is the column named 'Status' ..&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;If&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Me&lt;/span&gt;.customerDataGridView.Columns(e.ColumnIndex).Name =&amp;nbsp;&lt;span style="color: maroon;"&gt;"Status"&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Then&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;If&lt;/span&gt;&amp;nbsp;e.Value&amp;nbsp;&lt;span style="color: blue;"&gt;IsNot&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Nothing&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Then&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6&lt;/span&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 style="color: green;"&gt;' If the value of the cell is "Inactive" AND this form's inactiveCustomersCheckBox control is checked..&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7&lt;/span&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 style="color: blue;"&gt;If&lt;/span&gt;&amp;nbsp;e.Value.ToString =&amp;nbsp;&lt;span style="color: maroon;"&gt;"Inactive"&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;And&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Me&lt;/span&gt;.inactiveCustomersCheckBox.Checked&amp;nbsp;&lt;span style="color: blue;"&gt;Then&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&lt;/span&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;&lt;span style="color: green;"&gt;' Set the BackColor of the cell to yellow.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;9&lt;/span&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; e.CellStyle.BackColor = Color.Yellow&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&lt;/span&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 style="color: blue;"&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;If&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;11&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;If&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;12&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;If&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;13&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;14&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: green;"&gt;' If the column being formatted is the column named 'LastOrderDate'..&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;15&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;If&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Me&lt;/span&gt;.customerDataGridView.Columns(e.ColumnIndex).Name =&amp;nbsp;&lt;span style="color: maroon;"&gt;"LastOrderDate"&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Then&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;16&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;If&lt;/span&gt;&amp;nbsp;e.Value&amp;nbsp;&lt;span style="color: blue;"&gt;IsNot&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Nothing&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Then&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;17&lt;/span&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 style="color: green;"&gt;' If LastOrderDate was more than 30 days ago AND this form's ordersOverdueCheckBox control is checked..&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;18&lt;/span&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 style="color: blue;"&gt;If&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Date&lt;/span&gt;.Now.Subtract(&lt;span style="color: blue;"&gt;CType&lt;/span&gt;(e.Value,&amp;nbsp;&lt;span style="color: blue;"&gt;Date&lt;/span&gt;)).Days &amp;gt; 30&amp;nbsp;&lt;span style="color: blue;"&gt;And&lt;/span&gt;&lt;span style="color: blue;"&gt;Me&lt;/span&gt;.orderOverdueCheckBox.Checked&amp;nbsp;&lt;span style="color: blue;"&gt;Then&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;19&lt;/span&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;&lt;span style="color: green;"&gt;' Set the BackColor of the cell to yellow-green.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;20&lt;/span&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; e.CellStyle.BackColor = Color.YellowGreen&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;21&lt;/span&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 style="color: blue;"&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;If&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;22&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;If&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;23&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;If&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 8pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;24&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;/div&gt;&lt;div face="Verdana" font="" size="2" style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;The CellFormatting event occurs every time each cell is painted, so you should avoid lengthy processing when handling this event.&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;For more information visit the link below:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.cellformatting.aspx"&gt;DataGridView.CellFormatting Event&lt;/a&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;/div&gt;&lt;div face="Verdana" font="" size="2" style="-webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; border-collapse: collapse;"&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Click the link above to download Visual Basic source code in a Visual Studio 2005 solution which demonstrates how to handle the Windows Forms DataGridView CellFormatting event to set the BackColor of a cell based on the cell's value.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-4754419039135463995?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WHZ-pTqT6Uu0nVETj2vEkNIKftU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WHZ-pTqT6Uu0nVETj2vEkNIKftU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WHZ-pTqT6Uu0nVETj2vEkNIKftU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WHZ-pTqT6Uu0nVETj2vEkNIKftU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/uT7q-OxUfq4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/4754419039135463995/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=4754419039135463995&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/4754419039135463995?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/4754419039135463995?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/uT7q-OxUfq4/color-datagridview-cells-based-on-data.html" title="Color DataGridView Cells Based On Data" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/color-datagridview-cells-based-on-data.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEAAQ38zcCp7ImA9WhdTFUg.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-2416019664229324581</id><published>2011-07-13T04:32:00.000-07:00</published><updated>2011-07-13T04:32:22.188-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-13T04:32:22.188-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mvc" /><category scheme="http://www.blogger.com/atom/ns#" term="asp .net" /><title>Roundup: ASP.NET MVC Request Processing Pipeline</title><content type="html">&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;ASP.NET MVC's request processing pipeline shares many things in common with traditional ASP.NET Web Forms for they both take advantage of IIS sits underlying. However, unlike ASP.NET Web Forms, MVC gives you much more flexibility, you can modify any piece to your own liking, and even rearrange or replace components outright. The most significant difference is the place where routing (of course you can do routing alike MVC in traditional ASP.NET Web Forms, but it's not by default) and controllers kick in, and filters extend your capability to a larger scale as well.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;This article will guide you through this infinitely extensible request processing pipeline and mostly discuss the four major steps involved to help you grab the big idea and comprehend what is going on behind the scene.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;1.IIS&lt;/strong&gt;&lt;br /&gt;
Internet Information Services, as Microsoft's web server system, works as the backbone of ASP.NET request processing. When each HTTP request arrives the server, a kernel-mode Windows device driver called HTTP.SYS will first classify the request based on its requested URL, port and IP address combination and then forward it to a registered application such as an IIS web site.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;Essentially, ASP.NET MVC is built upon ASP.NET core, ASP.NET must be enabled for its application pool to guarantee ASP.NET MVC to work properly. When you create such a site in IIS, an application pool properly setup shall be assigned which is a pool of ASP.NET worker threads to take care of HTTP requests. You could tinker with many settings for application pools such as its managed pipeline modes, but that aspect is distracting from this article's purpose and will not be discussed here.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;When an incoming request reaches an ASP.NET enabled IIS web site, ASP.NET kicks in and a worker thread from the application pool is dispatched to cope with that request. It notifies each registered HTTP module that a new request is starting. HTTP modules are .NET classes which implement IHttpModule interface that you can plug into the ASP.NET request processing pipeline. They are commonly used to handle certain events such as routing and information logging in a request's life cycle.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;One particularly important HTTP module is registered by default in any ASP.NET MVC application: UrlRoutingModule. This module is the beginning of the core routing system which plays the most important role in the second step of request processing pipeline. If you are working on MVC 2 targeting .NET 3.5, you will find this module registered in your web.config file. On the other hand with .NET 4, UrlRoutingModule is removed from web.config and is referenced in machine-wide configuration by default. To see it's setup and running, you can take a look at Modules under IIS tab for your site in Internet Information Services(IIS) Manager.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;2. Core Routing&lt;/strong&gt;&lt;br /&gt;
System.Web.Routing assembly is invoked when UrlRoutingModule gets involved in processing a request. The core job of routing is about to recognize and parse incoming URL, setting up a request context data structure that subsequent components can use whatever they wish such as ASP.NET MVC uses it to transfer control to the relevant MVC controller class and to supply action method parameters.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;Core routing for ASP.NET MVC will first check if the incoming request's URL is towards a static file (e.g. an image file or a style sheet file) on the disk. If so, core routing will simply pass by and leave it to IIS. IIS will serve them back to clients directly so that the process can be done efficiently.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;On the other hand, if the incoming URL doesn't target a static file on disk, for example, it's mapped to a MVC controller, the core routing system will investigate its active configuration to figure out how to handle that incoming URL.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;How routing is directed is configured in a static collection called System.Web.Routing.RouteTable.Routes. Each entry in this collection represents a distinct URL pattern your application wish to accept, for instance, /Shop/Catalog/{ID}, and constraints which limit the range of acceptable values for each parameters. Additionally, each entry will supply a route handler - an object which implements IRouteHandler thus it can take over and process the request. The RouteTable.Routes collection in an ASP.NET MVC application is usually setup by adding code to a method called RegisterRoutes() in Global.asax file.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;To match a certain incoming request, the core routing system looks through RouteTable.Routes collection from top to bottom, picking the first entry that matches the URL pattern. Having found the matching entry, routing transfers control to that entry's specified route handler, with a request context data structure that describes the route entry and parameters parsed from the URL. MVC framework then gets in on the action.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;3. Controllers and Actions&lt;/strong&gt;&lt;br /&gt;
Reaching this step, core routing system has selected a particular entry in RouteTable.Routes, and has parsed any routing parameters out of the URL and packed them inside a request context data structure. Now is the time for controllers and actions to enter the scene.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;In general, for ASP.NET MVC applications, almost all route entries specify one particular route handler: MvcRouteHandler. It is the built-in default route handler for ASP.NET MVC and it knows how to take the request context data and invoke the corresponding controller class. It does so by using a controller factory object. By default, the DefaultControllerFactory is used, however it can be replaced by custom controller factory in case special concern is raised for example dependency injection needs.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;When a corresponding controller is picked by the controller factory object, its Execute method is called. Execute is the only method defined in the IController interface and every controller class must implement such interface:&lt;/div&gt;&lt;div class="wp_syntax" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: silver; border-top-style: solid; border-top-width: 1px; color: #110000; font-family: Tahoma; font-size: 11px; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; width: 705px;"&gt;&lt;div class="code" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 4px; padding-right: 4px; padding-top: 2px; vertical-align: top;"&gt;&lt;pre class="csharp" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; float: none; font-family: monospace; font-size: 12px; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; white-space: pre; width: auto;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0600ff; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;public&lt;/span&gt; &lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6666cc; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;interface&lt;/span&gt; IController
&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: green; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;{&lt;/span&gt;
    &lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #6666cc; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;void&lt;/span&gt; Execute&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: green; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;RequestContext requestContext&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: green; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: green; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;;&lt;/span&gt;
&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: green; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;Note that the requestContext parameter provides all the request context data constructed by the routing system, including parameters parsed out from the incoming URL request. It also provides access to the Request and Response objects.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;In most of the cases, you will work with high-level controller classes which wrap and hide the low-level details of the Execute method defined in IController interface. Thus you basically won't write data to response stream directly. Instead, you return an action result that describes the intended output in your controllers. For instance, you return a ViewResult if the goal for such controller is to render a view, or a RedirectToRouteResult if you want redirect request to a different action method or a different controller. MVC framework will then take care of executing that result at the appropriate moment in the request processing pipeline.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;Note that filters can be attached onto a controller class or an action method and inject extra logic that runs before or after action methods, or before or after action results are executed. Filters are extremely flexible and their logic can be run at many possible moment during this step of the request processing pipeline.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;In a nut shell, controllers and actions are the central pillars of the whole ASP.NET MVC framework.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;4. Action Results and Views&lt;/strong&gt;&lt;br /&gt;
At this point, the MVC framework will ask the ActionResult object returned by your controller to execute. The ActionResult does whatever that type of ActionResult does, either return a string to browser, issue an HTTP redirection or the most fun part to render a view.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;The ActionResult which does the job of rendering a view is namely ViewResult. This one is able to locate and render a particular view, passing along whatever ViewData structure the action method has constructed. It does so by calling a "view engine" (for example, web form view engine for MVC 2 and razor view engine for MVC 3) determined by the controller.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;In traditional ASP.NET Web Forms, each web form ASPX page have a dedicated pipeline on its own, starting with on-the-fly ASPX/ASCX compilation and running through a series of events known as the page life cycle. ASP.NET MVC tells a different story here. Its view pages are simple and contain only UI logic. There is no code-behind files nor web form page life cycle is involved, which save you from the marsh from a smart UI design to a much better architecture imposes separation of concerns.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2c2c29; font-family: Tahoma; font-size: 1.2em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 1px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;"&gt;------------------------------------------------------&lt;br /&gt;
The following work flow diagram will help you better comprehend ASP.NET MVC request processing pipeline.&lt;br /&gt;
&lt;a href="http://www.freewebdevelopersite.com/wp-content/uploads/2011/06/mvcpipeline.png" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #807d7a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;img alt="" class="alignnone size-full wp-image-453" height="1362" src="http://www.freewebdevelopersite.com/wp-content/uploads/2011/06/mvcpipeline.png" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-bottom-width: 0px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 0px; border-right-style: none; border-right-width: 0px; border-style: initial; border-top-style: none; border-top-width: 0px; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 713px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;" title="mvcpipeline" width="700" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-2416019664229324581?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uz2yjhVMMRDZb8JlxLjwHYi2fMs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uz2yjhVMMRDZb8JlxLjwHYi2fMs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uz2yjhVMMRDZb8JlxLjwHYi2fMs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uz2yjhVMMRDZb8JlxLjwHYi2fMs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/xa4R0qKyUpI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/2416019664229324581/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=2416019664229324581&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/2416019664229324581?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/2416019664229324581?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/xa4R0qKyUpI/roundup-aspnet-mvc-request-processing.html" title="Roundup: ASP.NET MVC Request Processing Pipeline" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/roundup-aspnet-mvc-request-processing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUIFSXk9fSp7ImA9WhdTEEk.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-4142950370949398533</id><published>2011-07-07T07:05:00.000-07:00</published><updated>2011-07-07T07:05:18.765-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-07T07:05:18.765-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="excel" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>Office Interop Excel</title><content type="html">&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="pre-action-link" id="premain0" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg0" preid="0" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse0" preid="0" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre0" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;using&lt;/span&gt; Microsoft.Office.Interop.Excel;&lt;/pre&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;I've created a console application and just kept all the code within the&amp;nbsp;&lt;code lang="cs" style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;main&lt;/code&gt;&amp;nbsp;method. I've done this to make it a bit easier to follow. Next, we need to setup the objects that we'll be working with.&lt;/div&gt;&lt;div class="pre-action-link" id="premain1" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg1" preid="1" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse1" preid="1" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre1" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;ApplicationClass app = &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt; ApplicationClass(); &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; the Excel application.
&lt;/span&gt;
    &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; the reference to the workbook,
&lt;/span&gt;
    &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; which is the xls document to read from.
&lt;/span&gt;
    Workbook book = &lt;span class="code-keyword" style="color: blue;"&gt;null&lt;/span&gt;;
    &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; the reference to the worksheet,
&lt;/span&gt;
    &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; we'll assume the first sheet in the book.
&lt;/span&gt;
    Worksheet sheet = &lt;span class="code-keyword" style="color: blue;"&gt;null&lt;/span&gt;;
    Range range = &lt;span class="code-keyword" style="color: blue;"&gt;null&lt;/span&gt;;
    &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; the range object is used to hold the data
&lt;/span&gt;
    &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; we'll be reading from and to find the range of data.&lt;/span&gt;&lt;/pre&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;The following options will help speed up the Excel application. They can also be set to&amp;nbsp;&lt;code lang="cs" style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;true&lt;/span&gt;&lt;/code&gt;&amp;nbsp;which will help us see what's going on with the document while debugging.&lt;/div&gt;&lt;div class="pre-action-link" id="premain2" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg2" preid="2" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse2" preid="2" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre2" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;app.Visible = &lt;span class="code-keyword" style="color: blue;"&gt;false&lt;/span&gt;;
    app.ScreenUpdating = &lt;span class="code-keyword" style="color: blue;"&gt;false&lt;/span&gt;;
    app.DisplayAlerts = &lt;span class="code-keyword" style="color: blue;"&gt;false&lt;/span&gt;;&lt;/pre&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;Now that the application setup is out of the way, we can open an XLS document and get the first worksheet in the workbook. Excel seems to prefer a full path to the document. As such, I get the current executing directory and move up two directories to the XLS document.&lt;/div&gt;&lt;div class="pre-action-link" id="premain3" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg3" preid="3" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse3" preid="3" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre3" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;string&lt;/span&gt; execPath = 
         Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase);

    book = app.Workbooks.Open(execPath + &lt;span class="code-string" style="color: purple;"&gt;@"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;\..\..\Book1.xls"&lt;/span&gt;, 
           Missing.Value, Missing.Value, Missing.Value, 
           Missing.Value, Missing.Value, Missing.Value, Missing.Value, 
           Missing.Value, Missing.Value, Missing.Value, Missing.Value, 
           Missing.Value, Missing.Value, Missing.Value);
    sheet = (Worksheet)book.Worksheets[&lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;];&lt;/pre&gt;&lt;h3 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 11pt; font-weight: bold; line-height: 1.2em;"&gt;&lt;a href="" name="Findingtherangeofdata4" style="color: #004cd5; text-decoration: none;"&gt;Finding the range of data&lt;/a&gt;&lt;/h3&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;Next, we need to get an initial range to work with. We'll start with A1, you can start with the row your data starts on, to exclude the header information.&lt;/div&gt;&lt;div class="pre-action-link" id="premain4" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg4" preid="4" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse4" preid="4" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre4" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;range = sheet.get_Range(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;A1"&lt;/span&gt;, Missing.Value);&lt;/pre&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;Now that we have a range to work with, we can use the&amp;nbsp;&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;get_End&lt;/code&gt;&amp;nbsp;method of the&amp;nbsp;&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;Range&lt;/code&gt;&amp;nbsp;object and the&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;XlDirection&lt;/code&gt;&amp;nbsp;enumeration to specify which direction to find the end. We'll go to the right first and down second. The&amp;nbsp;&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;get_End&lt;/code&gt;&amp;nbsp;stops at the first empty cell. And works on the first row or column in the range. So based on our initial range selection of A1, it will look for the first empty cell in row 1 moving to the right from column A.&lt;/div&gt;&lt;div class="pre-action-link" id="premain5" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg5" preid="5" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse5" preid="5" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre5" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;range = range.get_End(XlDirection.xlToRight);&lt;/pre&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;In this example, it will find cell F1 is empty, and return E1 as the end range. We'll use this range, meaning cell E1, to find the end of the data moving down.&lt;/div&gt;&lt;div class="pre-action-link" id="premain6" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg6" preid="6" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse6" preid="6" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre6" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;range = range.get_End(XlDirection.xlDown);&lt;/pre&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;This will get us to cell E20. Using this method, we get the bottom right cell with data. Now we can obtain the full range of data using the starting cell, A1, and the ending cell, E20. In order to get the address of the cell from the&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;Range&lt;/code&gt;, we use the&amp;nbsp;&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;get_Address&lt;/code&gt;&amp;nbsp;method of the&amp;nbsp;&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;Range&lt;/code&gt;&amp;nbsp;object. The&amp;nbsp;&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;XlReferenceStyle&lt;/code&gt;&amp;nbsp;specifies the format of the address returned. We want xlA1 because the&amp;nbsp;&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;get_Range&lt;/code&gt;&amp;nbsp;method expects that format. The following returns a string containing E20:&lt;/div&gt;&lt;div class="pre-action-link" id="premain7" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg7" preid="7" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse7" preid="7" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre7" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;string&lt;/span&gt; downAddress = range.get_Address(
        &lt;span class="code-keyword" style="color: blue;"&gt;false&lt;/span&gt;, &lt;span class="code-keyword" style="color: blue;"&gt;false&lt;/span&gt;, XlReferenceStyle.xlA1, 
        Type.Missing, Type.Missing);&lt;/pre&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;We'll use the&amp;nbsp;&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;get_Range&lt;/code&gt;&amp;nbsp;method to get a range from A1 to E20.&lt;/div&gt;&lt;div class="pre-action-link" id="premain8" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg8" preid="8" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse8" preid="8" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre8" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;range = sheet.get_Range(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;A1"&lt;/span&gt;, downAddress);&lt;/pre&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;We now have a reference to the data.&lt;/div&gt;&lt;h3 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 11pt; font-weight: bold; line-height: 1.2em;"&gt;&lt;a href="" name="Readingthedata5" style="color: #004cd5; text-decoration: none;"&gt;Reading the data&lt;/a&gt;&lt;/h3&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;Range objects will return their data in a two dimensional array of objects with the&amp;nbsp;&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;Value2&lt;/code&gt;&amp;nbsp;property. Dimension one represents the rows, while dimension two represents the columns. This is much faster than reading the data cell by cell.&lt;/div&gt;&lt;div class="pre-action-link" id="premain9" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg9" preid="9" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse9" preid="9" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre9" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;object&lt;/span&gt;[,] values = (&lt;span class="code-keyword" style="color: blue;"&gt;object&lt;/span&gt;[,])range.Value2;

    Console.WriteLine(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Row Count: "&lt;/span&gt; + values.GetLength(&lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;).ToString());
    Console.WriteLine(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Col Count: "&lt;/span&gt; + values.GetLength(&lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;).ToString());&lt;/pre&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;With the&amp;nbsp;&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;values&lt;/code&gt;&amp;nbsp;object array, all we need to do is loop through to get the data. We'll start by writing out the column numbers.&lt;/div&gt;&lt;div class="pre-action-link" id="premain10" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg10" preid="10" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse10" preid="10" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre10" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;Console.Write(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;);
    &lt;span class="code-keyword" style="color: blue;"&gt;for&lt;/span&gt; (&lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; j = &lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;; j &amp;lt;= values.GetLength(&lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;); j++) {
        Console.Write(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;{0}"&lt;/span&gt;, j);
    }&lt;/pre&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;What we really want is the data, so we'll need to loop through the rows, then the columns to access each value in&lt;code style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;values&lt;/code&gt;.&lt;/div&gt;&lt;div class="pre-action-link" id="premain11" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg11" preid="11" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse11" preid="11" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre11" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;Console.WriteLine();
    &lt;span class="code-keyword" style="color: blue;"&gt;for&lt;/span&gt; (&lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; i = &lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;; i &amp;lt;= values.GetLength(&lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;); i++) {
        Console.Write(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;{0}"&lt;/span&gt;, i);
        &lt;span class="code-keyword" style="color: blue;"&gt;for&lt;/span&gt; (&lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; j = &lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;; j &amp;lt;= values.GetLength(&lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;); j++) {
            Console.Write(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;{0}"&lt;/span&gt;, values[i, j]);
        }
        Console.WriteLine();
    }&lt;/pre&gt;&lt;h3 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 11pt; font-weight: bold; line-height: 1.2em;"&gt;&lt;a href="" name="Cleanup6" style="color: #004cd5; text-decoration: none;"&gt;Clean up&lt;/a&gt;&lt;/h3&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 10pt; line-height: 1.2em;"&gt;In order for the GC to collect the objects, which can have a large memory footprint, we want to set the references to&lt;code lang="cs" style="color: #990000; font: normal normal normal 11pt/normal 'Courier New', Courier, mono;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;null&lt;/span&gt;&lt;/code&gt;, close the workbook, and quit the Excel application.&lt;/div&gt;&lt;div class="pre-action-link" id="premain12" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; display: block; font-size: 0.8em; text-align: right;" width="100%"&gt;&lt;img height="9" id="preimg12" preid="12" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow-x: auto; overflow-y: auto;" width="9" /&gt;&lt;span id="precollapse12" preid="12" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;&lt;pre id="pre12" lang="cs" style="background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font: normal normal normal 9pt/normal 'Courier New', Courier, mono; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;range = &lt;span class="code-keyword" style="color: blue;"&gt;null&lt;/span&gt;;
    sheet = &lt;span class="code-keyword" style="color: blue;"&gt;null&lt;/span&gt;;
    &lt;span class="code-keyword" style="color: blue;"&gt;if&lt;/span&gt; (book != &lt;span class="code-keyword" style="color: blue;"&gt;null&lt;/span&gt;)
        book.Close(&lt;span class="code-keyword" style="color: blue;"&gt;false&lt;/span&gt;, Missing.Value, Missing.Value);
    book = &lt;span class="code-keyword" style="color: blue;"&gt;null&lt;/span&gt;;
    &lt;span class="code-keyword" style="color: blue;"&gt;if&lt;/span&gt; (app != &lt;span class="code-keyword" style="color: blue;"&gt;null&lt;/span&gt;)
        app.Quit();
    app = &lt;span class="code-keyword" style="color: blue;"&gt;null&lt;/span&gt;;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-4142950370949398533?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sYDT5cl2O-kSs2dnx7YieWXYbYo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sYDT5cl2O-kSs2dnx7YieWXYbYo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sYDT5cl2O-kSs2dnx7YieWXYbYo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sYDT5cl2O-kSs2dnx7YieWXYbYo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/XX6BCYif4pc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/4142950370949398533/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=4142950370949398533&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/4142950370949398533?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/4142950370949398533?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/XX6BCYif4pc/office-interop-excel.html" title="Office Interop Excel" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/office-interop-excel.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkEAQno6fCp7ImA9WhZaGUk.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-5823996017478449086</id><published>2011-07-06T02:30:00.000-07:00</published><updated>2011-07-06T02:30:43.414-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-06T02:30:43.414-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>How to create a generic List of anonymous types?</title><content type="html">&lt;div style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 1.6em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;There was a question on one of the forums asking how to create a list of anonymous types given a single instance of an anonymous type:&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;pre class="code" style="background-color: #fcfcfa; border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; font-family: Consolas, Courier; font-size: 10pt; line-height: 1.4em; margin-bottom: 0px; margin-left: 40px; margin-top: 0px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; white-space: pre;"&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt; Customer = &lt;span style="color: blue;"&gt;new&lt;/span&gt; { FirstName = &lt;span style="color: #a31515;"&gt;"John"&lt;/span&gt;, LastName = &lt;span style="color: #a31515;"&gt;"Doe"&lt;/span&gt; };
            &lt;span style="color: blue;"&gt;var&lt;/span&gt; customerList = &lt;span style="color: blue;"&gt;new&lt;/span&gt; List&amp;lt;&lt;strong&gt;????&lt;/strong&gt;&amp;gt;();&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 1.6em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;My first reaction was to answer that this was impossible, and even if it was, for what purpose, but thankfully people replied before me, who knew better. I was amazed by these ingenious tricks. For example, Kael Rowan suggested:&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;pre class="code" style="background-color: #fcfcfa; border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; font-family: Consolas, Courier; font-size: 10pt; line-height: 1.4em; margin-bottom: 0px; margin-left: 40px; margin-top: 0px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; white-space: pre;"&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt; Customer = &lt;span style="color: blue;"&gt;new&lt;/span&gt; { FirstName = &lt;span style="color: #a31515;"&gt;"John"&lt;/span&gt;, LastName = &lt;span style="color: #a31515;"&gt;"Doe"&lt;/span&gt; };
            &lt;span style="color: blue;"&gt;var&lt;/span&gt; customerList = (&lt;span style="color: blue;"&gt;new&lt;/span&gt;[] { Customer }).ToList();
            
            customerList.Add(&lt;span style="color: blue;"&gt;new&lt;/span&gt; { FirstName = &lt;span style="color: #a31515;"&gt;"Bill"&lt;/span&gt;, LastName = &lt;span style="color: #a31515;"&gt;"Smith"&lt;/span&gt; });&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 1.6em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;I think this is brilliant! This technique is called&amp;nbsp;&lt;a href="http://tomasp.net/articles/cannot-return-anonymous-type-from-method.aspx" style="color: #5588aa; text-decoration: underline;" target="_blank"&gt;casting by example&lt;/a&gt;. Here's another implementation, using a "list factory":&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;pre class="code" style="background-color: #fcfcfa; border-bottom-color: rgb(153, 153, 153); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: solid; border-top-width: 1px; font-family: Consolas, Courier; font-size: 10pt; line-height: 1.4em; margin-bottom: 0px; margin-left: 40px; margin-top: 0px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; white-space: pre;"&gt;&lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; Main(&lt;span style="color: blue;"&gt;string&lt;/span&gt;[] args)
        {
            &lt;span style="color: blue;"&gt;var&lt;/span&gt; Customer = &lt;span style="color: blue;"&gt;new&lt;/span&gt; { FirstName = &lt;span style="color: #a31515;"&gt;"John"&lt;/span&gt;, LastName = &lt;span style="color: #a31515;"&gt;"Doe"&lt;/span&gt; };
            &lt;span style="color: blue;"&gt;var&lt;/span&gt; customerList = MakeList(Customer);
            
            customerList.Add(&lt;span style="color: blue;"&gt;new&lt;/span&gt; { FirstName = &lt;span style="color: #a31515;"&gt;"Bill"&lt;/span&gt;, LastName = &lt;span style="color: #a31515;"&gt;"Smith"&lt;/span&gt; });
        }

        &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;List&lt;/span&gt;&lt;t&gt; MakeList&lt;t&gt;(T itemOftype)
        {
            &lt;span style="color: #2b91af;"&gt;List&lt;/span&gt;&lt;t&gt; newList = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;List&lt;/span&gt;&lt;t&gt;();
            &lt;span style="color: blue;"&gt;return&lt;/span&gt; newList;
        }        &lt;/t&gt;&lt;/t&gt;&lt;/t&gt;&lt;/t&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 1.6em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;They use generic type inference here to "name" the anonymous type to T and return a List of it.&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 1.6em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;This somewhat made me think of var as a black hole - once a type is being "converted" to a var, it can never come back explicitly (well, unless you want to cast :) It can reappear in another method as another "var" (casting by example) or be remanifested as inferred generic type parameter, but it can't get an explicit name ever again.&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 1.6em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;There was a discussion a while ago (between&amp;nbsp;&lt;a href="http://www.wilcob.com/" style="color: #5588aa; text-decoration: underline;" target="_blank"&gt;Wilco Bauwer&lt;/a&gt;,&amp;nbsp;&lt;a href="http://www.west-wind.com/weblog/" style="color: #5588aa; text-decoration: underline;" target="_blank"&gt;Rick Strahl&lt;/a&gt;&amp;nbsp;and yours truly), whether C# should extend type inference to return types of methods, types of fields, properties etc. :&amp;nbsp;&lt;a href="http://www.wilcob.com/Wilco/Articles/returning_var_from_a_method_in_csharp_3.0.aspx" style="color: #5588aa; text-decoration: underline;" target="_blank"&gt;Returning var from a method in C# 3.0&lt;/a&gt;&amp;nbsp;Generally it was agreed that this would not be a good thing to do, for various reasons.&amp;nbsp;&lt;a href="http://blogs.msdn.com/ericlippert" style="color: #5588aa; text-decoration: underline;" target="_blank"&gt;Eric Lippert&lt;/a&gt;&amp;nbsp;gave a good summary of all the trouble it might bring:&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;ul style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;li&gt;what if languages consume the method, which don't support type inference?&lt;/li&gt;

&lt;li&gt;how to store this in CLR metadata?&lt;/li&gt;

&lt;li&gt;how to detect versioning problems once you update your class?&lt;/li&gt;

&lt;li&gt;how to deal with two structurally identical types from different assemblies?&lt;/li&gt;

&lt;li&gt;etc.&lt;/li&gt;
&lt;/ul&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 1.6em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;My personal feeling about this all (which sort of corresponds with the general consensus), is that one shouldn't use anonymous types for more than trivial LINQ operations. If a type is going to be reused, give it a proper name and declaration. Anonymous types don't scale (at least, not in C# 3.0).&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div style="color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 1.6em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;If there is ever going to be a C# feature to use var as a return type of members, this is going to be the first time ever I'll want the C# team&amp;nbsp;&lt;em&gt;not&lt;/em&gt;&amp;nbsp;to implement a feature :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-5823996017478449086?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lRm1RtmcrkGBCrte8r8LS6cyllk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lRm1RtmcrkGBCrte8r8LS6cyllk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lRm1RtmcrkGBCrte8r8LS6cyllk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lRm1RtmcrkGBCrte8r8LS6cyllk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/Zny6NM3fm-0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/5823996017478449086/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=5823996017478449086&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/5823996017478449086?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/5823996017478449086?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/Zny6NM3fm-0/how-to-create-generic-list-of-anonymous.html" title="How to create a generic List of anonymous types?" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/how-to-create-generic-list-of-anonymous.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMCRHc-fip7ImA9WhZaGUk.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-279025134356029972</id><published>2011-07-06T02:27:00.000-07:00</published><updated>2011-07-06T02:27:45.956-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-06T02:27:45.956-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="excel" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>How to select column from Excel sheet</title><content type="html">&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: blue; font-family: Courier; line-height: 21px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;OleDbConnection connection = null;
        String sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + @"c:\Book.xls" + ";" + "Extended Properties=Excel 8.0;";
        DataTable dtCH = new DataTable();
        connection = new OleDbConnection(sConnectionString);
        OleDbCommand command = new OleDbCommand("Select column1,column2 FROM [Sheet1$]", connection);
        connection.Open();
        dtCH = new DataTable("Table");
        OleDbDataReader db_reader = command.ExecuteReader();

        dtCH.Load(db_reader);
        DataTable table = dtCH;

        connection.Close();&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-279025134356029972?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5Mb03U9334DSkBH2ROL9qvACDZU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5Mb03U9334DSkBH2ROL9qvACDZU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5Mb03U9334DSkBH2ROL9qvACDZU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5Mb03U9334DSkBH2ROL9qvACDZU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/wQ5EIrSpQxg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/279025134356029972/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=279025134356029972&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/279025134356029972?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/279025134356029972?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/wQ5EIrSpQxg/how-to-select-column-from-excel-sheet.html" title="How to select column from Excel sheet" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/how-to-select-column-from-excel-sheet.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkQDQ3s_eyp7ImA9WhZaGUk.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-7816208795471579638</id><published>2011-07-06T02:26:00.000-07:00</published><updated>2011-07-06T02:26:12.543-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-06T02:26:12.543-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="excel" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>Reading a Excel Sheet using OLEDB Connection Object</title><content type="html">&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: blue; font-family: Courier; line-height: 21px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;/// &lt;summary&gt;
        /// This function is used to read Excel Sheet using OLEDB connection
        /// &lt;/summary&gt;
        /// file name of the excel file
        public void ReadExcel(string filename)
        {
            try
            {
                //Create a OLEDB connection for Excel file
                string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" +
                                            "Data Source=" + filename + ";" +
                                            "Extended Properties=Excel 8.0;";
                OleDbConnection objConn = new OleDbConnection(connectionString);
                objConn.Open();
                // Creating a command object to read the values from Excel file
                OleDbCommand ObjCommand = new OleDbCommand("SELECT * FROM [Sheet1$]", objConn);
                // Creating a Read object
                OleDbDataReader objReader = ObjCommand.ExecuteReader();
                // Looping through the values and displaying
                while (objReader.Read())
                {
                    MessageBox.Show(objReader[0].ToString() + " " + objReader[1].ToString());
                }
                //Disposing the objects
                objReader.Dispose();
                ObjCommand.Dispose();
                objConn.Dispose();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-7816208795471579638?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2UlgLD-JAQVR3YUsA_-eILrmQHU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2UlgLD-JAQVR3YUsA_-eILrmQHU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2UlgLD-JAQVR3YUsA_-eILrmQHU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2UlgLD-JAQVR3YUsA_-eILrmQHU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/cHGQqYwaFys" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/7816208795471579638/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=7816208795471579638&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/7816208795471579638?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/7816208795471579638?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/cHGQqYwaFys/reading-excel-sheet-using-oledb.html" title="Reading a Excel Sheet using OLEDB Connection Object" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/07/reading-excel-sheet-using-oledb.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIMRXoyeSp7ImA9WhZVE0w.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-2153121727969787911</id><published>2011-05-25T01:53:00.000-07:00</published><updated>2011-05-25T01:53:04.491-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-25T01:53:04.491-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wpf" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>How to force the ObservableCollection to notify change when a property of an item changes</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="border-bottom-style: none; border-bottom-width: 0px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 0px; border-right-style: none; border-right-width: 0px; border-style: initial; border-top-style: none; border-top-width: 0px; border-width: initial; font-family: inherit; font-style: inherit; font-weight: inherit; list-style-type: none; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;To make the DataGrid refresh automatically when the property values of data items in the data source are changed, the data item should implement the INotifyPropertyChanged interface.&amp;nbsp;The collection does&amp;nbsp;no need&amp;nbsp;to notify property change at all. For example:&lt;/div&gt;&lt;div style="border-bottom-style: none; border-bottom-width: 0px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 0px; border-right-style: none; border-right-width: 0px; border-style: initial; border-top-style: none; border-top-width: 0px; border-width: initial; font-family: inherit; font-style: inherit; font-weight: inherit; list-style-type: none; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;class SomeClass:INotifyPropertyChanged&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public event PropertyChangedEventHanlder PropertyChanged;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void OnPropertyChanged(string prop)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(PropertyChanged!=null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PropertyChanged(this, new PropertyChangedEventArgs(prop));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private string name;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public string Name&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;get {return name;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(name!=value)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name=value;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OnPropertyChanged("Name");&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style="border-bottom-style: none; border-bottom-width: 0px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 0px; border-right-style: none; border-right-width: 0px; border-style: initial; border-top-style: none; border-top-width: 0px; border-width: initial; font-family: inherit; font-style: inherit; font-weight: inherit; list-style-type: none; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;Hope this helps.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5606859874105810764-2153121727969787911?l=rpelepei.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sEulF9Rx7FozU6bpP0EA600G7YE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sEulF9Rx7FozU6bpP0EA600G7YE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sEulF9Rx7FozU6bpP0EA600G7YE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sEulF9Rx7FozU6bpP0EA600G7YE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RomanPelepeisBlog/~4/M7NZxQAVOtI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rpelepei.blogspot.com/feeds/2153121727969787911/comments/default" title="Комментарии к сообщению" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=5606859874105810764&amp;postID=2153121727969787911&amp;isPopup=true" title="Комментарии: 0" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/2153121727969787911?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5606859874105810764/posts/default/2153121727969787911?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RomanPelepeisBlog/~3/M7NZxQAVOtI/how-to-force-observablecollection-to.html" title="How to force the ObservableCollection to notify change when a property of an item changes" /><author><name>rpelepei</name><uri>http://www.blogger.com/profile/04696078487154469040</uri><email>rpelepei@gmail.com</email></author><thr:total>0</thr:total><feedburner:origLink>http://rpelepei.blogspot.com/2011/05/how-to-force-observablecollection-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUDRn45fyp7ImA9WhZXFU0.&quot;"><id>tag:blogger.com,1999:blog-5606859874105810764.post-1569516520517789509</id><published>2011-05-04T04:21:00.001-07:00</published><updated>2011-05-04T04:24:37.027-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-04T04:24:37.027-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="asp .net" /><category scheme="http://www.blogger.com/atom/ns#" term="jQuery" /><title>Best Way to Register jquery and other scripts in asp.net pages</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-size: 1em; line-height: 1.5em; margin-bottom: 0.4em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static !important;"&gt;&lt;span style="font-size: 11px; position: static !important;"&gt;This time I want to explain the best way to register scripts in asp.net pages using the script manager. If you need to know what is the script manager go to&amp;nbsp;&lt;a href="http://www.asp.net/Ajax/Documentation/Live/overview/ScriptManagerOverview.aspx" rel="nofollow" style="color: #176092; font-size: 1em; position: static !important; text-decoration: none;"&gt;script manager Overview&lt;/a&gt;.&lt;br style="f
