<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Coder buddy</title>
	<atom:link href="https://coderbuddy.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://coderbuddy.wordpress.com</link>
	<description>Simple and easy solutions to your coding problems in C#.net</description>
	<lastBuildDate>Mon, 30 Nov 2020 09:35:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='coderbuddy.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://s0.wp.com/i/buttonw-com.png</url>
		<title>Coder buddy</title>
		<link>https://coderbuddy.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://coderbuddy.wordpress.com/osd.xml" title="Coder buddy" />
	<atom:link rel='hub' href='https://coderbuddy.wordpress.com/?pushpress=hub'/>
	<item>
		<title>$MFT bug in windows 7 &#038; others</title>
		<link>https://coderbuddy.wordpress.com/2017/05/26/mft-bug-in-windows-7-others/</link>
		
		<dc:creator><![CDATA[vkbandi]]></dc:creator>
		<pubDate>Fri, 26 May 2017 12:22:46 +0000</pubDate>
				<category><![CDATA[C#.net]]></category>
		<guid isPermaLink="false">http://coderbuddy.wordpress.com/2017/05/26/mft-bug-in-windows-7-others/</guid>

					<description><![CDATA[A new bug found in older versions of windows like 7, 8 &#38; 8.1, will allow  malicious websites to crash the visitors computer by just including a single html line in their website. Since Microsoft has officially ended support for these operating systems, it is hard to tell when/if a patch will be released. It [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>A new bug found in older versions of windows like 7, 8 &amp; 8.1, will allow  malicious websites to crash the visitors computer by just including a single html line in their website. Since Microsoft has officially ended support for these operating systems, it is hard to tell when/if a patch will be released. It is good practise to update/upgrade your PC to the latest software to avoid issues like this.</p>
<p>If you want to experience this bug, you can save the contents of the following gist to a html file and open it on a <b style="font-style:italic;">vulnerable </b>system, please be aware that by doing so your system might crash and become unresponsive, during my verification i found the bug to have no impact on the PC after i restart, <b>however I dont guarantee anything, if you are trying this, you are doing at your own risk.</b></p>
<p>Now to the code</p>
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist48072965" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-donotopen_mft_bugdemo-html" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-html  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="DoNotOpen_MFT_BugDemo.html content, created by vkbandi on 12:04PM on May 26, 2017."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="DoNotOpen_MFT_BugDemo.html">
        <tr>
          <td id="file-donotopen_mft_bugdemo-html-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-donotopen_mft_bugdemo-html-LC1" class="blob-code blob-code-inner js-file-line">&lt;html&gt;</td>
        </tr>
        <tr>
          <td id="file-donotopen_mft_bugdemo-html-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-donotopen_mft_bugdemo-html-LC2" class="blob-code blob-code-inner js-file-line">  &lt;head&gt;</td>
        </tr>
        <tr>
          <td id="file-donotopen_mft_bugdemo-html-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-donotopen_mft_bugdemo-html-LC3" class="blob-code blob-code-inner js-file-line">    &lt;title&gt;</td>
        </tr>
        <tr>
          <td id="file-donotopen_mft_bugdemo-html-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-donotopen_mft_bugdemo-html-LC4" class="blob-code blob-code-inner js-file-line">      Restart your PC, if you are on windows 7, 8, 8.1</td>
        </tr>
        <tr>
          <td id="file-donotopen_mft_bugdemo-html-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-donotopen_mft_bugdemo-html-LC5" class="blob-code blob-code-inner js-file-line">      &lt;/title&gt;</td>
        </tr>
        <tr>
          <td id="file-donotopen_mft_bugdemo-html-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-donotopen_mft_bugdemo-html-LC6" class="blob-code blob-code-inner js-file-line">    &lt;/head&gt;</td>
        </tr>
        <tr>
          <td id="file-donotopen_mft_bugdemo-html-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-donotopen_mft_bugdemo-html-LC7" class="blob-code blob-code-inner js-file-line">  &lt;body&gt;</td>
        </tr>
        <tr>
          <td id="file-donotopen_mft_bugdemo-html-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-donotopen_mft_bugdemo-html-LC8" class="blob-code blob-code-inner js-file-line">    &lt;a href=&#39;<a href="https://coderbuddy.wordpress.com/2017/05/26/mft-bug-in-windows-7-others/&#039;&gt;Click">https://coderbuddy.wordpress.com/2017/05/26/mft-bug-in-windows-7-others/&#039;&gt;Click</a> to read more about this&lt;/a&gt;</td>
        </tr>
        <tr>
          <td id="file-donotopen_mft_bugdemo-html-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-donotopen_mft_bugdemo-html-LC9" class="blob-code blob-code-inner js-file-line">    &lt;img src=&#39;C:\$MFT\Test.png&#39; /&gt;</td>
        </tr>
        <tr>
          <td id="file-donotopen_mft_bugdemo-html-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-donotopen_mft_bugdemo-html-LC10" class="blob-code blob-code-inner js-file-line">    &lt;/body&gt;</td>
        </tr>
        <tr>
          <td id="file-donotopen_mft_bugdemo-html-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-donotopen_mft_bugdemo-html-LC11" class="blob-code blob-code-inner js-file-line">  &lt;/html&gt;</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/01a268ff0abf8fc48224ce589672a7f5/raw/809fcf2411cd6b4152b7213f16d0c623954c150a/DoNotOpen_MFT_BugDemo.html" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/01a268ff0abf8fc48224ce589672a7f5#file-donotopen_mft_bugdemo-html" class="Link--inTextBlock">
          DoNotOpen_MFT_BugDemo.html
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>

<p>I have published this on my mobile, so please forgive my errors.</p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://2.gravatar.com/avatar/e06636b4a6007decb142d5c7d271e5e3e4853c59dd3d89d12945046ed84912ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chowdary</media:title>
		</media:content>
	</item>
		<item>
		<title>How to point your root level domain to an AWS Instance</title>
		<link>https://coderbuddy.wordpress.com/2015/10/19/how-to-point-your-naked-domain-to-an-aws-instance/</link>
		
		<dc:creator><![CDATA[vkbandi]]></dc:creator>
		<pubDate>Mon, 19 Oct 2015 10:29:07 +0000</pubDate>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[A Records]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[naked domain pointing]]></category>
		<guid isPermaLink="false">http://coderbuddy.wordpress.com/?p=410</guid>

					<description><![CDATA[An elastic Ip address can be used to point naked domain like example.com to point to an AWS instance, by updating the A record with the elastci ip value]]></description>
										<content:encoded><![CDATA[<p>The answer is to use <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html" target="_blank">Elastic IP Address</a>, If your instance (the one you want to point your root level domain(naked domain) like example.com to) has existing Elastic IP address, just update your domain&#8217;s A record to point to this IP address, if not, then follow the AWS documentation on how to assign an <a href="http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/getting-started-assign-eip.html" target="_blank">Elastic IP address to your instance</a> and assign an elastic IP to you instance.</p>
<h3>What is Root level domain or Naked domain ?</h3>
<p>Root level domain or a Naked domain is the domain name with out the www sub domain, that is <b>example.com</b> instead of <b><a href="http://www.example.com" rel="nofollow">http://www.example.com</a>,</b> this is usually helpful when a website administrator wants, to give the users flexibility to visit their website without typing the www.</p>
<p>There are many websites that does this, and it can be achieved in AWS, either by pointing the A record directly to the IP address to where the website is hosted, or to a placeholder IP and redirecting all the web request to the www url.</p>
<h3>Drawbacks of pointing root level domains to a web application</h3>
<ul>
<li>Pointing your domain name to a web application is known to cause issues with SMTP servers and may impact mail delivery for that domain name.</li>
<li>Hard coding an IP address to your website address also might not be scalable.</li>
</ul>
]]></content:encoded>
					
		
		
		
		<media:content url="https://2.gravatar.com/avatar/e06636b4a6007decb142d5c7d271e5e3e4853c59dd3d89d12945046ed84912ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chowdary</media:title>
		</media:content>
	</item>
		<item>
		<title>Micro Performance optimisation using If-Else</title>
		<link>https://coderbuddy.wordpress.com/2011/10/18/micro-performance-optimisation-using-if-else/</link>
		
		<dc:creator><![CDATA[vkbandi]]></dc:creator>
		<pubDate>Mon, 17 Oct 2011 18:50:20 +0000</pubDate>
				<category><![CDATA[C#.net]]></category>
		<category><![CDATA[Conditional (programming)]]></category>
		<category><![CDATA[if-else]]></category>
		<category><![CDATA[performance-optimization]]></category>
		<guid isPermaLink="false">http://coderbuddy.wordpress.com/?p=317</guid>

					<description><![CDATA[This post is actually a question I asked on Stackoverflow, The question is Which performs better if or if-else ?, this might seem to be a silly question for a few because of 2 reasons. If block will have relatively less lines of code, if both the blocks are having the same code, it is [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This post is actually a question I asked on <a title="Does IF perform better than IF-ELSE?" href="http://stackoverflow.com/questions/7741033/does-if-perform-better-than-if-else">Stackoverflow</a>,</p>
<p>The question is Which performs better if or if-else ?, this might seem to be a silly question for a few because of 2 reasons.</p>
<ul>
<li>If block will have relatively less lines of code, if both the blocks are having the same code, it is apparently a matter of commonsense.</li>
<li>And if they are not having the same code then we should not compare them in the first place</li>
</ul>
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist26420952" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-conditionalperformance-cs" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-c  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="ConditionalPerformance.cs content, created by vkbandi on 07:52PM on September 16, 2015."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="ConditionalPerformance.cs">
        <tr>
          <td id="file-conditionalperformance-cs-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-conditionalperformance-cs-LC1" class="blob-code blob-code-inner js-file-line">public class ConditionalPerformance</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-conditionalperformance-cs-LC2" class="blob-code blob-code-inner js-file-line">{</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-conditionalperformance-cs-LC3" class="blob-code blob-code-inner js-file-line">  //If block</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-conditionalperformance-cs-LC4" class="blob-code blob-code-inner js-file-line">  public long WithOnlyIf(int myFlag)</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-conditionalperformance-cs-LC5" class="blob-code blob-code-inner js-file-line">  {</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-conditionalperformance-cs-LC6" class="blob-code blob-code-inner js-file-line">          Stopwatch myTimer = new Stopwatch();</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-conditionalperformance-cs-LC7" class="blob-code blob-code-inner js-file-line">          string someString = &quot;&quot;;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-conditionalperformance-cs-LC8" class="blob-code blob-code-inner js-file-line">          myTimer.Start();</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-conditionalperformance-cs-LC9" class="blob-code blob-code-inner js-file-line">          for (int i = 0; i &lt; 1000000; i++)</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-conditionalperformance-cs-LC10" class="blob-code blob-code-inner js-file-line">          {</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-conditionalperformance-cs-LC11" class="blob-code blob-code-inner js-file-line">              string height = &quot;80%&quot;;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-conditionalperformance-cs-LC12" class="blob-code blob-code-inner js-file-line">              string width = &quot;80%&quot;;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-conditionalperformance-cs-LC13" class="blob-code blob-code-inner js-file-line">              if (myFlag == 1)</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-conditionalperformance-cs-LC14" class="blob-code blob-code-inner js-file-line">              {</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-conditionalperformance-cs-LC15" class="blob-code blob-code-inner js-file-line">                  height = &quot;60%&quot;;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-conditionalperformance-cs-LC16" class="blob-code blob-code-inner js-file-line">                  width = &quot;60%&quot;;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-conditionalperformance-cs-LC17" class="blob-code blob-code-inner js-file-line">              }</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L18" class="blob-num js-line-number js-blob-rnum" data-line-number="18"></td>
          <td id="file-conditionalperformance-cs-LC18" class="blob-code blob-code-inner js-file-line">              someString = &quot;Height: &quot; + height + Environment.NewLine + &quot;Width: &quot; + width;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L19" class="blob-num js-line-number js-blob-rnum" data-line-number="19"></td>
          <td id="file-conditionalperformance-cs-LC19" class="blob-code blob-code-inner js-file-line">          }</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L20" class="blob-num js-line-number js-blob-rnum" data-line-number="20"></td>
          <td id="file-conditionalperformance-cs-LC20" class="blob-code blob-code-inner js-file-line">          myTimer.Stop();</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L21" class="blob-num js-line-number js-blob-rnum" data-line-number="21"></td>
          <td id="file-conditionalperformance-cs-LC21" class="blob-code blob-code-inner js-file-line">          File.WriteAllText(&quot;testif.txt&quot;, someString);</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L22" class="blob-num js-line-number js-blob-rnum" data-line-number="22"></td>
          <td id="file-conditionalperformance-cs-LC22" class="blob-code blob-code-inner js-file-line">          return myTimer.ElapsedMilliseconds;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L23" class="blob-num js-line-number js-blob-rnum" data-line-number="23"></td>
          <td id="file-conditionalperformance-cs-LC23" class="blob-code blob-code-inner js-file-line">  }</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L24" class="blob-num js-line-number js-blob-rnum" data-line-number="24"></td>
          <td id="file-conditionalperformance-cs-LC24" class="blob-code blob-code-inner js-file-line">  </td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L25" class="blob-num js-line-number js-blob-rnum" data-line-number="25"></td>
          <td id="file-conditionalperformance-cs-LC25" class="blob-code blob-code-inner js-file-line">  //If-else block</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L26" class="blob-num js-line-number js-blob-rnum" data-line-number="26"></td>
          <td id="file-conditionalperformance-cs-LC26" class="blob-code blob-code-inner js-file-line">  public long WithIfAndElse(int myFlag)</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L27" class="blob-num js-line-number js-blob-rnum" data-line-number="27"></td>
          <td id="file-conditionalperformance-cs-LC27" class="blob-code blob-code-inner js-file-line">    {</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L28" class="blob-num js-line-number js-blob-rnum" data-line-number="28"></td>
          <td id="file-conditionalperformance-cs-LC28" class="blob-code blob-code-inner js-file-line">          Stopwatch myTimer = new Stopwatch();</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L29" class="blob-num js-line-number js-blob-rnum" data-line-number="29"></td>
          <td id="file-conditionalperformance-cs-LC29" class="blob-code blob-code-inner js-file-line">          string someString = &quot;&quot;;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L30" class="blob-num js-line-number js-blob-rnum" data-line-number="30"></td>
          <td id="file-conditionalperformance-cs-LC30" class="blob-code blob-code-inner js-file-line">          myTimer.Start();</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L31" class="blob-num js-line-number js-blob-rnum" data-line-number="31"></td>
          <td id="file-conditionalperformance-cs-LC31" class="blob-code blob-code-inner js-file-line">          for (int i = 0; i &lt; 1000000; i++)</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L32" class="blob-num js-line-number js-blob-rnum" data-line-number="32"></td>
          <td id="file-conditionalperformance-cs-LC32" class="blob-code blob-code-inner js-file-line">          {</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L33" class="blob-num js-line-number js-blob-rnum" data-line-number="33"></td>
          <td id="file-conditionalperformance-cs-LC33" class="blob-code blob-code-inner js-file-line">              string height;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L34" class="blob-num js-line-number js-blob-rnum" data-line-number="34"></td>
          <td id="file-conditionalperformance-cs-LC34" class="blob-code blob-code-inner js-file-line">              string width;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L35" class="blob-num js-line-number js-blob-rnum" data-line-number="35"></td>
          <td id="file-conditionalperformance-cs-LC35" class="blob-code blob-code-inner js-file-line">              if (myFlag == 1)</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L36" class="blob-num js-line-number js-blob-rnum" data-line-number="36"></td>
          <td id="file-conditionalperformance-cs-LC36" class="blob-code blob-code-inner js-file-line">              {</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L37" class="blob-num js-line-number js-blob-rnum" data-line-number="37"></td>
          <td id="file-conditionalperformance-cs-LC37" class="blob-code blob-code-inner js-file-line">                  height = &quot;60%&quot;;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L38" class="blob-num js-line-number js-blob-rnum" data-line-number="38"></td>
          <td id="file-conditionalperformance-cs-LC38" class="blob-code blob-code-inner js-file-line">                  width = &quot;60%&quot;;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L39" class="blob-num js-line-number js-blob-rnum" data-line-number="39"></td>
          <td id="file-conditionalperformance-cs-LC39" class="blob-code blob-code-inner js-file-line">              }</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L40" class="blob-num js-line-number js-blob-rnum" data-line-number="40"></td>
          <td id="file-conditionalperformance-cs-LC40" class="blob-code blob-code-inner js-file-line">              else</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L41" class="blob-num js-line-number js-blob-rnum" data-line-number="41"></td>
          <td id="file-conditionalperformance-cs-LC41" class="blob-code blob-code-inner js-file-line">              {</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L42" class="blob-num js-line-number js-blob-rnum" data-line-number="42"></td>
          <td id="file-conditionalperformance-cs-LC42" class="blob-code blob-code-inner js-file-line">                  height = &quot;80%&quot;;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L43" class="blob-num js-line-number js-blob-rnum" data-line-number="43"></td>
          <td id="file-conditionalperformance-cs-LC43" class="blob-code blob-code-inner js-file-line">                  width = &quot;80%&quot;;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L44" class="blob-num js-line-number js-blob-rnum" data-line-number="44"></td>
          <td id="file-conditionalperformance-cs-LC44" class="blob-code blob-code-inner js-file-line">              }</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L45" class="blob-num js-line-number js-blob-rnum" data-line-number="45"></td>
          <td id="file-conditionalperformance-cs-LC45" class="blob-code blob-code-inner js-file-line">              someString = &quot;Height: &quot; + height + Environment.NewLine + &quot;Width: &quot; + width;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L46" class="blob-num js-line-number js-blob-rnum" data-line-number="46"></td>
          <td id="file-conditionalperformance-cs-LC46" class="blob-code blob-code-inner js-file-line">          }</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L47" class="blob-num js-line-number js-blob-rnum" data-line-number="47"></td>
          <td id="file-conditionalperformance-cs-LC47" class="blob-code blob-code-inner js-file-line">          myTimer.Stop();</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L48" class="blob-num js-line-number js-blob-rnum" data-line-number="48"></td>
          <td id="file-conditionalperformance-cs-LC48" class="blob-code blob-code-inner js-file-line">          File.WriteAllText(&quot;testifelse.txt&quot;, someString);</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L49" class="blob-num js-line-number js-blob-rnum" data-line-number="49"></td>
          <td id="file-conditionalperformance-cs-LC49" class="blob-code blob-code-inner js-file-line">          return myTimer.ElapsedMilliseconds;</td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L50" class="blob-num js-line-number js-blob-rnum" data-line-number="50"></td>
          <td id="file-conditionalperformance-cs-LC50" class="blob-code blob-code-inner js-file-line">      } </td>
        </tr>
        <tr>
          <td id="file-conditionalperformance-cs-L51" class="blob-num js-line-number js-blob-rnum" data-line-number="51"></td>
          <td id="file-conditionalperformance-cs-LC51" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/3efe3fb044227a65be67/raw/16eaf585ebcb3416d3102f3bc41f8cf08949b099/ConditionalPerformance.cs" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/3efe3fb044227a65be67#file-conditionalperformance-cs" class="Link--inTextBlock">
          ConditionalPerformance.cs
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>

<p>So Which one actually performs better, well lets look into the  results</p>
<p>When Condition is true, the If Block took 1700 milliseconds to execute the 1000000 iterations, where as the if-else block took only 1688 milliseconds</p>
<p>When the conditions fails, the if scored 1677 Milliseconds which is still a bit late than the If-Else block&#8217;s 1664 Milliseconds</p>
<p>So the results  say that If-Else performs better than If and guess according to most of SO posters the If-Else block is more readable too</p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://2.gravatar.com/avatar/e06636b4a6007decb142d5c7d271e5e3e4853c59dd3d89d12945046ed84912ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chowdary</media:title>
		</media:content>
	</item>
		<item>
		<title>Sql Query to get domain Name from email column</title>
		<link>https://coderbuddy.wordpress.com/2011/06/27/sql-query-to-get-domain-name-from-email-column/</link>
					<comments>https://coderbuddy.wordpress.com/2011/06/27/sql-query-to-get-domain-name-from-email-column/#comments</comments>
		
		<dc:creator><![CDATA[vkbandi]]></dc:creator>
		<pubDate>Mon, 27 Jun 2011 15:49:01 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[T-SQL]]></category>
		<guid isPermaLink="false">http://coderbuddy.wordpress.com/?p=236</guid>

					<description><![CDATA[The following T-SQL Query will retrieve anything that is after the @ symbol, the query can be very useful for retrieving the domain of an email address]]></description>
										<content:encoded><![CDATA[<p>The following T-SQL Query will retrieve anything that is after the <code>@ </code>symbol, the query can be very useful for retrieving the domain of an email address<br />
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist26420781" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-domainnameextract-sql" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-sql  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="DomainNameExtract.sql content, created by vkbandi on 07:46PM on September 16, 2015."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="DomainNameExtract.sql">
        <tr>
          <td id="file-domainnameextract-sql-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-domainnameextract-sql-LC1" class="blob-code blob-code-inner js-file-line">SELECT SUBSTRING(T.Email,(CHARINDEX(&#39;@&#39;,T.Email)+1),LEN(T.Email) - (CHARINDEX(&#39;@&#39;,T.Email))) as DomainName FROM EmailTable T</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/0057b35d75609cd68abe/raw/3381f2d61cc3dea6667f395e03bf3fdae5cfe1fa/DomainNameExtract.sql" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/0057b35d75609cd68abe#file-domainnameextract-sql" class="Link--inTextBlock">
          DomainNameExtract.sql
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>
</p>
]]></content:encoded>
					
					<wfw:commentRss>https://coderbuddy.wordpress.com/2011/06/27/sql-query-to-get-domain-name-from-email-column/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/e06636b4a6007decb142d5c7d271e5e3e4853c59dd3d89d12945046ed84912ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chowdary</media:title>
		</media:content>
	</item>
		<item>
		<title>Domain name availability search using Whois information in C#</title>
		<link>https://coderbuddy.wordpress.com/2010/10/13/domain-name-search-in-c/</link>
					<comments>https://coderbuddy.wordpress.com/2010/10/13/domain-name-search-in-c/#comments</comments>
		
		<dc:creator><![CDATA[vkbandi]]></dc:creator>
		<pubDate>Wed, 13 Oct 2010 06:23:00 +0000</pubDate>
				<category><![CDATA[C#.net]]></category>
		<category><![CDATA[C# whois]]></category>
		<category><![CDATA[C#.net article]]></category>
		<category><![CDATA[C#.net code]]></category>
		<category><![CDATA[Domain name]]></category>
		<category><![CDATA[Domain name registry]]></category>
		<category><![CDATA[domain search C#]]></category>
		<category><![CDATA[domain search sdk C#]]></category>
		<category><![CDATA[how to domain search]]></category>
		<category><![CDATA[Name Search]]></category>
		<category><![CDATA[Whois]]></category>
		<guid isPermaLink="false">http://coderbuddy.wordpress.com/?p=197</guid>

					<description><![CDATA[A simple C# class to search for domain name availability using whois lookup information]]></description>
										<content:encoded><![CDATA[<p>Programmatically searching for domain name availability is easier than I expected, all we have to do is get the Whois information for the domain name that we are looking for, and look for a specific text inside the Whois response.</p>
<p>I have already written a post on how to write a <a href="https://coderbuddy.wordpress.com/2010/10/12/a-simple-c-class-to-get-whois-information/">C# class to get whois information</a>, you can go over there if you want more information on Whois, but if you just want the class name you can find it below and you can also find the complete source code at the links that I have provided.</p>
<p><strong>Domain Search Code</strong><br />
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist26420384" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-domainsearch-cs" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-c  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="DomainSearch.cs content, created by vkbandi on 07:35PM on September 16, 2015."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="DomainSearch.cs">
        <tr>
          <td id="file-domainsearch-cs-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-domainsearch-cs-LC1" class="blob-code blob-code-inner js-file-line"> public class DomainSearch</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-domainsearch-cs-LC2" class="blob-code blob-code-inner js-file-line"> {</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-domainsearch-cs-LC3" class="blob-code blob-code-inner js-file-line">        /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-domainsearch-cs-LC4" class="blob-code blob-code-inner js-file-line">        /// Check whether a given domain name is available or not</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-domainsearch-cs-LC5" class="blob-code blob-code-inner js-file-line">        /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-domainsearch-cs-LC6" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;domainName&quot;&gt;domain name to be verified&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-domainsearch-cs-LC7" class="blob-code blob-code-inner js-file-line">        /// &lt;returns&gt;&lt;/returns&gt;</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-domainsearch-cs-LC8" class="blob-code blob-code-inner js-file-line">        public static bool IsDomainNameAvailable(string domainName)</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-domainsearch-cs-LC9" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-domainsearch-cs-LC10" class="blob-code blob-code-inner js-file-line">            string whoisData = Whois.Lookup(domainName);</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-domainsearch-cs-LC11" class="blob-code blob-code-inner js-file-line">            string[] ws = whoisData.Split(new string[] { &quot;\r\n&quot;, &quot;\n&quot; }, StringSplitOptions.None);</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-domainsearch-cs-LC12" class="blob-code blob-code-inner js-file-line">            return ws[7].Contains(&quot;No match for domain \&quot;&quot; + domainName.ToUpper() + &quot;\&quot;.&quot;);</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-domainsearch-cs-LC13" class="blob-code blob-code-inner js-file-line">        }</td>
        </tr>
        <tr>
          <td id="file-domainsearch-cs-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-domainsearch-cs-LC14" class="blob-code blob-code-inner js-file-line">  }</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/49f08f55c02fad0c0244/raw/03577bd8e7fb01c0d7b9a72ab2c115e6ad0286b2/DomainSearch.cs" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/49f08f55c02fad0c0244#file-domainsearch-cs" class="Link--inTextBlock">
          DomainSearch.cs
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>
</p>
<p><strong>Whois Information</strong><br />
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist26421085" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-whois-cs" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-c  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="Whois.cs content, created by vkbandi on 07:57PM on September 16, 2015."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="Whois.cs">
        <tr>
          <td id="file-whois-cs-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-whois-cs-LC1" class="blob-code blob-code-inner js-file-line">using System;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-whois-cs-LC2" class="blob-code blob-code-inner js-file-line">using System.Collections.Generic;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-whois-cs-LC3" class="blob-code blob-code-inner js-file-line">using System.IO;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-whois-cs-LC4" class="blob-code blob-code-inner js-file-line">using System.Linq;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-whois-cs-LC5" class="blob-code blob-code-inner js-file-line">using System.Net.Sockets;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-whois-cs-LC6" class="blob-code blob-code-inner js-file-line">using System.Text;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-whois-cs-LC7" class="blob-code blob-code-inner js-file-line">using System.Threading.Tasks;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-whois-cs-LC8" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-whois-cs-LC9" class="blob-code blob-code-inner js-file-line">namespace DomainTools</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-whois-cs-LC10" class="blob-code blob-code-inner js-file-line">{</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-whois-cs-LC11" class="blob-code blob-code-inner js-file-line">    /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-whois-cs-LC12" class="blob-code blob-code-inner js-file-line">    /// A class to lookup whois information.</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-whois-cs-LC13" class="blob-code blob-code-inner js-file-line">    /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-whois-cs-LC14" class="blob-code blob-code-inner js-file-line">    public class Whois</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-whois-cs-LC15" class="blob-code blob-code-inner js-file-line">    {</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-whois-cs-LC16" class="blob-code blob-code-inner js-file-line">        private const int Whois_Server_Default_PortNumber = 43;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-whois-cs-LC17" class="blob-code blob-code-inner js-file-line">        private const string Domain_Record_Type = &quot;domain&quot;;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L18" class="blob-num js-line-number js-blob-rnum" data-line-number="18"></td>
          <td id="file-whois-cs-LC18" class="blob-code blob-code-inner js-file-line">        private const string DotCom_Whois_Server = &quot;whois.verisign-grs.com&quot;;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L19" class="blob-num js-line-number js-blob-rnum" data-line-number="19"></td>
          <td id="file-whois-cs-LC19" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L20" class="blob-num js-line-number js-blob-rnum" data-line-number="20"></td>
          <td id="file-whois-cs-LC20" class="blob-code blob-code-inner js-file-line">        /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L21" class="blob-num js-line-number js-blob-rnum" data-line-number="21"></td>
          <td id="file-whois-cs-LC21" class="blob-code blob-code-inner js-file-line">        /// Retrieves whois information</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L22" class="blob-num js-line-number js-blob-rnum" data-line-number="22"></td>
          <td id="file-whois-cs-LC22" class="blob-code blob-code-inner js-file-line">        /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L23" class="blob-num js-line-number js-blob-rnum" data-line-number="23"></td>
          <td id="file-whois-cs-LC23" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;domainName&quot;&gt;The registrar or domain or name server whose whois information to be retrieved&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L24" class="blob-num js-line-number js-blob-rnum" data-line-number="24"></td>
          <td id="file-whois-cs-LC24" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;recordType&quot;&gt;The type of record i.e a domain, nameserver or a registrar&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L25" class="blob-num js-line-number js-blob-rnum" data-line-number="25"></td>
          <td id="file-whois-cs-LC25" class="blob-code blob-code-inner js-file-line">        /// &lt;returns&gt;&lt;/returns&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L26" class="blob-num js-line-number js-blob-rnum" data-line-number="26"></td>
          <td id="file-whois-cs-LC26" class="blob-code blob-code-inner js-file-line">        public static string Lookup(string domainName)</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L27" class="blob-num js-line-number js-blob-rnum" data-line-number="27"></td>
          <td id="file-whois-cs-LC27" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L28" class="blob-num js-line-number js-blob-rnum" data-line-number="28"></td>
          <td id="file-whois-cs-LC28" class="blob-code blob-code-inner js-file-line">            using (TcpClient whoisClient = new TcpClient())</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L29" class="blob-num js-line-number js-blob-rnum" data-line-number="29"></td>
          <td id="file-whois-cs-LC29" class="blob-code blob-code-inner js-file-line">            {</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L30" class="blob-num js-line-number js-blob-rnum" data-line-number="30"></td>
          <td id="file-whois-cs-LC30" class="blob-code blob-code-inner js-file-line">                whoisClient.Connect(DotCom_Whois_Server, Whois_Server_Default_PortNumber);</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L31" class="blob-num js-line-number js-blob-rnum" data-line-number="31"></td>
          <td id="file-whois-cs-LC31" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L32" class="blob-num js-line-number js-blob-rnum" data-line-number="32"></td>
          <td id="file-whois-cs-LC32" class="blob-code blob-code-inner js-file-line">                string domainQuery = Domain_Record_Type + &quot; &quot; + domainName + &quot;\r\n&quot;;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L33" class="blob-num js-line-number js-blob-rnum" data-line-number="33"></td>
          <td id="file-whois-cs-LC33" class="blob-code blob-code-inner js-file-line">                byte[] domainQueryBytes = Encoding.ASCII.GetBytes(domainQuery.ToCharArray());</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L34" class="blob-num js-line-number js-blob-rnum" data-line-number="34"></td>
          <td id="file-whois-cs-LC34" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L35" class="blob-num js-line-number js-blob-rnum" data-line-number="35"></td>
          <td id="file-whois-cs-LC35" class="blob-code blob-code-inner js-file-line">                Stream whoisStream = whoisClient.GetStream();</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L36" class="blob-num js-line-number js-blob-rnum" data-line-number="36"></td>
          <td id="file-whois-cs-LC36" class="blob-code blob-code-inner js-file-line">                whoisStream.Write(domainQueryBytes, 0, domainQueryBytes.Length);</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L37" class="blob-num js-line-number js-blob-rnum" data-line-number="37"></td>
          <td id="file-whois-cs-LC37" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L38" class="blob-num js-line-number js-blob-rnum" data-line-number="38"></td>
          <td id="file-whois-cs-LC38" class="blob-code blob-code-inner js-file-line">                StreamReader whoisStreamReader = new StreamReader(whoisClient.GetStream(), Encoding.ASCII);</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L39" class="blob-num js-line-number js-blob-rnum" data-line-number="39"></td>
          <td id="file-whois-cs-LC39" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L40" class="blob-num js-line-number js-blob-rnum" data-line-number="40"></td>
          <td id="file-whois-cs-LC40" class="blob-code blob-code-inner js-file-line">                string streamOutputContent = &quot;&quot;;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L41" class="blob-num js-line-number js-blob-rnum" data-line-number="41"></td>
          <td id="file-whois-cs-LC41" class="blob-code blob-code-inner js-file-line">                List&lt;string&gt; whoisData = new List&lt;string&gt;();</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L42" class="blob-num js-line-number js-blob-rnum" data-line-number="42"></td>
          <td id="file-whois-cs-LC42" class="blob-code blob-code-inner js-file-line">                while (null != (streamOutputContent = whoisStreamReader.ReadLine()))</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L43" class="blob-num js-line-number js-blob-rnum" data-line-number="43"></td>
          <td id="file-whois-cs-LC43" class="blob-code blob-code-inner js-file-line">                {</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L44" class="blob-num js-line-number js-blob-rnum" data-line-number="44"></td>
          <td id="file-whois-cs-LC44" class="blob-code blob-code-inner js-file-line">                    whoisData.Add(streamOutputContent);</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L45" class="blob-num js-line-number js-blob-rnum" data-line-number="45"></td>
          <td id="file-whois-cs-LC45" class="blob-code blob-code-inner js-file-line">                }</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L46" class="blob-num js-line-number js-blob-rnum" data-line-number="46"></td>
          <td id="file-whois-cs-LC46" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L47" class="blob-num js-line-number js-blob-rnum" data-line-number="47"></td>
          <td id="file-whois-cs-LC47" class="blob-code blob-code-inner js-file-line">                whoisClient.Close();</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L48" class="blob-num js-line-number js-blob-rnum" data-line-number="48"></td>
          <td id="file-whois-cs-LC48" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L49" class="blob-num js-line-number js-blob-rnum" data-line-number="49"></td>
          <td id="file-whois-cs-LC49" class="blob-code blob-code-inner js-file-line">                return String.Join(Environment.NewLine, whoisData);</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L50" class="blob-num js-line-number js-blob-rnum" data-line-number="50"></td>
          <td id="file-whois-cs-LC50" class="blob-code blob-code-inner js-file-line">            }            </td>
        </tr>
        <tr>
          <td id="file-whois-cs-L51" class="blob-num js-line-number js-blob-rnum" data-line-number="51"></td>
          <td id="file-whois-cs-LC51" class="blob-code blob-code-inner js-file-line">        }        </td>
        </tr>
        <tr>
          <td id="file-whois-cs-L52" class="blob-num js-line-number js-blob-rnum" data-line-number="52"></td>
          <td id="file-whois-cs-LC52" class="blob-code blob-code-inner js-file-line">    }</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L53" class="blob-num js-line-number js-blob-rnum" data-line-number="53"></td>
          <td id="file-whois-cs-LC53" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/ba57fe39738010595362/raw/cf33ae8d4e561333ed50299e165ca6aa6f5abd45/Whois.cs" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/ba57fe39738010595362#file-whois-cs" class="Link--inTextBlock">
          Whois.cs
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>
</p>
<p><strong>Usefull links</strong></p>
<ul>
<li>Browse the <strong><a href="https://github.com/coderbuddyblog/DomainTools">source code on github</a></strong></li>
<li>Download the <strong><a href="https://github.com/coderbuddyblog/DomainTools/archive/master.zip">full source code along with a demo</a>.</strong></li>
<li>Original idea by Anthony of bruteforcenaming.com(website not available)</li>
</ul>
<p>This post is originally published on <a href="https://coderbuddy.wordpress.com/2010/10/12/a-simple-c-class-to-get-whois-information/" rel="me">coderbuddy.wordpress.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://coderbuddy.wordpress.com/2010/10/13/domain-name-search-in-c/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/e06636b4a6007decb142d5c7d271e5e3e4853c59dd3d89d12945046ed84912ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chowdary</media:title>
		</media:content>
	</item>
		<item>
		<title>C# Code to get Whois information of a domain name</title>
		<link>https://coderbuddy.wordpress.com/2010/10/12/a-simple-c-class-to-get-whois-information/</link>
					<comments>https://coderbuddy.wordpress.com/2010/10/12/a-simple-c-class-to-get-whois-information/#comments</comments>
		
		<dc:creator><![CDATA[vkbandi]]></dc:creator>
		<pubDate>Tue, 12 Oct 2010 13:20:47 +0000</pubDate>
				<category><![CDATA[C#.net]]></category>
		<category><![CDATA[C# whois]]></category>
		<category><![CDATA[create whois tool for windows]]></category>
		<category><![CDATA[domain search C#]]></category>
		<category><![CDATA[whois API]]></category>
		<category><![CDATA[whois lookup C#]]></category>
		<guid isPermaLink="false">http://coderbuddy.wordpress.com/?p=188</guid>

					<description><![CDATA[A C# class to obtain whois information of a domain excluding the name servers that usually appear when searching without specifying a record type.]]></description>
										<content:encoded><![CDATA[<p><strong>What is Whois ?</strong><br />
Whois is a protocol to fetch the registered users of a internet resource such as a domain name or an IP block, it is documented in <a class="external mw-magiclink-rfc" href="https://tools.ietf.org/html/rfc3912" rel="nofollow">RFC 3912</a>.</p>
<p>Whois information can be used to know some basic information about a domian name like the person or the organization it is registered to, registration &amp; expiry date etc.,</p>
<p>One of the popular use case for the whois information is to check the availability of a domain name, <a href="https://coderbuddy.wordpress.com/2010/10/13/domain-name-search-in-c/">you can read more about this in my other post</a>.</p>
<p><strong>The protocol</strong><br />
The whois protocol is a pretty straight forward TCP based query response protocol, each TLD or top level domain(example .com, .net, .org, etc., ) will have a whois server that will listen on the port number 43 for the queries, Once a request is received the server will check its internal database for the domain name details and return the information in the response, the availability of a domain name in a particular TLD can be identified from the whois information returned, the structure of the whois might differ from server to server.</p>
<p>The protocol can be explained simply as follows</p>
<pre>Connect to the service host
   TCP: service port 43 decimal
Send a single "command", ending with a new line character(ASCII CR and then ASCII LF)
Receive information in response to the command line.  The
server closes its connections as soon as the output is
finished.
</pre>
<p><strong>Implementation In C#</strong><br />
To get the Whois information of any domain, we need 3 parameters</p>
<ol>
<li>Domain name</li>
<li>Record type, which is &#8220;domain&#8221;</li>
<li>The whois server address for the TLD of the given domain name</li>
</ol>
<p>A collection of Whois server list is maintained by <a href="http://www.nirsoft.net/whois_servers_list.html">nirsoft.net</a> which we can use to determine the correct Whois server for a given domain name based on its TLD</p>
<p>Once we get this, all we have to do is connect to the server on port 43 using TCP and send the query as combination of the text &#8220;domain&#8221; and your domain name, seperated by a single space character &#8221; &#8220;, your query should always end with a new line character.<br />
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist26421085" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-whois-cs" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-c  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="Whois.cs content, created by vkbandi on 07:57PM on September 16, 2015."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="Whois.cs">
        <tr>
          <td id="file-whois-cs-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-whois-cs-LC1" class="blob-code blob-code-inner js-file-line">using System;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-whois-cs-LC2" class="blob-code blob-code-inner js-file-line">using System.Collections.Generic;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-whois-cs-LC3" class="blob-code blob-code-inner js-file-line">using System.IO;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-whois-cs-LC4" class="blob-code blob-code-inner js-file-line">using System.Linq;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-whois-cs-LC5" class="blob-code blob-code-inner js-file-line">using System.Net.Sockets;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-whois-cs-LC6" class="blob-code blob-code-inner js-file-line">using System.Text;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-whois-cs-LC7" class="blob-code blob-code-inner js-file-line">using System.Threading.Tasks;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-whois-cs-LC8" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-whois-cs-LC9" class="blob-code blob-code-inner js-file-line">namespace DomainTools</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-whois-cs-LC10" class="blob-code blob-code-inner js-file-line">{</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-whois-cs-LC11" class="blob-code blob-code-inner js-file-line">    /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-whois-cs-LC12" class="blob-code blob-code-inner js-file-line">    /// A class to lookup whois information.</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-whois-cs-LC13" class="blob-code blob-code-inner js-file-line">    /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-whois-cs-LC14" class="blob-code blob-code-inner js-file-line">    public class Whois</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-whois-cs-LC15" class="blob-code blob-code-inner js-file-line">    {</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-whois-cs-LC16" class="blob-code blob-code-inner js-file-line">        private const int Whois_Server_Default_PortNumber = 43;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-whois-cs-LC17" class="blob-code blob-code-inner js-file-line">        private const string Domain_Record_Type = &quot;domain&quot;;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L18" class="blob-num js-line-number js-blob-rnum" data-line-number="18"></td>
          <td id="file-whois-cs-LC18" class="blob-code blob-code-inner js-file-line">        private const string DotCom_Whois_Server = &quot;whois.verisign-grs.com&quot;;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L19" class="blob-num js-line-number js-blob-rnum" data-line-number="19"></td>
          <td id="file-whois-cs-LC19" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L20" class="blob-num js-line-number js-blob-rnum" data-line-number="20"></td>
          <td id="file-whois-cs-LC20" class="blob-code blob-code-inner js-file-line">        /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L21" class="blob-num js-line-number js-blob-rnum" data-line-number="21"></td>
          <td id="file-whois-cs-LC21" class="blob-code blob-code-inner js-file-line">        /// Retrieves whois information</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L22" class="blob-num js-line-number js-blob-rnum" data-line-number="22"></td>
          <td id="file-whois-cs-LC22" class="blob-code blob-code-inner js-file-line">        /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L23" class="blob-num js-line-number js-blob-rnum" data-line-number="23"></td>
          <td id="file-whois-cs-LC23" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;domainName&quot;&gt;The registrar or domain or name server whose whois information to be retrieved&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L24" class="blob-num js-line-number js-blob-rnum" data-line-number="24"></td>
          <td id="file-whois-cs-LC24" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;recordType&quot;&gt;The type of record i.e a domain, nameserver or a registrar&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L25" class="blob-num js-line-number js-blob-rnum" data-line-number="25"></td>
          <td id="file-whois-cs-LC25" class="blob-code blob-code-inner js-file-line">        /// &lt;returns&gt;&lt;/returns&gt;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L26" class="blob-num js-line-number js-blob-rnum" data-line-number="26"></td>
          <td id="file-whois-cs-LC26" class="blob-code blob-code-inner js-file-line">        public static string Lookup(string domainName)</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L27" class="blob-num js-line-number js-blob-rnum" data-line-number="27"></td>
          <td id="file-whois-cs-LC27" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L28" class="blob-num js-line-number js-blob-rnum" data-line-number="28"></td>
          <td id="file-whois-cs-LC28" class="blob-code blob-code-inner js-file-line">            using (TcpClient whoisClient = new TcpClient())</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L29" class="blob-num js-line-number js-blob-rnum" data-line-number="29"></td>
          <td id="file-whois-cs-LC29" class="blob-code blob-code-inner js-file-line">            {</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L30" class="blob-num js-line-number js-blob-rnum" data-line-number="30"></td>
          <td id="file-whois-cs-LC30" class="blob-code blob-code-inner js-file-line">                whoisClient.Connect(DotCom_Whois_Server, Whois_Server_Default_PortNumber);</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L31" class="blob-num js-line-number js-blob-rnum" data-line-number="31"></td>
          <td id="file-whois-cs-LC31" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L32" class="blob-num js-line-number js-blob-rnum" data-line-number="32"></td>
          <td id="file-whois-cs-LC32" class="blob-code blob-code-inner js-file-line">                string domainQuery = Domain_Record_Type + &quot; &quot; + domainName + &quot;\r\n&quot;;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L33" class="blob-num js-line-number js-blob-rnum" data-line-number="33"></td>
          <td id="file-whois-cs-LC33" class="blob-code blob-code-inner js-file-line">                byte[] domainQueryBytes = Encoding.ASCII.GetBytes(domainQuery.ToCharArray());</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L34" class="blob-num js-line-number js-blob-rnum" data-line-number="34"></td>
          <td id="file-whois-cs-LC34" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L35" class="blob-num js-line-number js-blob-rnum" data-line-number="35"></td>
          <td id="file-whois-cs-LC35" class="blob-code blob-code-inner js-file-line">                Stream whoisStream = whoisClient.GetStream();</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L36" class="blob-num js-line-number js-blob-rnum" data-line-number="36"></td>
          <td id="file-whois-cs-LC36" class="blob-code blob-code-inner js-file-line">                whoisStream.Write(domainQueryBytes, 0, domainQueryBytes.Length);</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L37" class="blob-num js-line-number js-blob-rnum" data-line-number="37"></td>
          <td id="file-whois-cs-LC37" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L38" class="blob-num js-line-number js-blob-rnum" data-line-number="38"></td>
          <td id="file-whois-cs-LC38" class="blob-code blob-code-inner js-file-line">                StreamReader whoisStreamReader = new StreamReader(whoisClient.GetStream(), Encoding.ASCII);</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L39" class="blob-num js-line-number js-blob-rnum" data-line-number="39"></td>
          <td id="file-whois-cs-LC39" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L40" class="blob-num js-line-number js-blob-rnum" data-line-number="40"></td>
          <td id="file-whois-cs-LC40" class="blob-code blob-code-inner js-file-line">                string streamOutputContent = &quot;&quot;;</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L41" class="blob-num js-line-number js-blob-rnum" data-line-number="41"></td>
          <td id="file-whois-cs-LC41" class="blob-code blob-code-inner js-file-line">                List&lt;string&gt; whoisData = new List&lt;string&gt;();</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L42" class="blob-num js-line-number js-blob-rnum" data-line-number="42"></td>
          <td id="file-whois-cs-LC42" class="blob-code blob-code-inner js-file-line">                while (null != (streamOutputContent = whoisStreamReader.ReadLine()))</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L43" class="blob-num js-line-number js-blob-rnum" data-line-number="43"></td>
          <td id="file-whois-cs-LC43" class="blob-code blob-code-inner js-file-line">                {</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L44" class="blob-num js-line-number js-blob-rnum" data-line-number="44"></td>
          <td id="file-whois-cs-LC44" class="blob-code blob-code-inner js-file-line">                    whoisData.Add(streamOutputContent);</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L45" class="blob-num js-line-number js-blob-rnum" data-line-number="45"></td>
          <td id="file-whois-cs-LC45" class="blob-code blob-code-inner js-file-line">                }</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L46" class="blob-num js-line-number js-blob-rnum" data-line-number="46"></td>
          <td id="file-whois-cs-LC46" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L47" class="blob-num js-line-number js-blob-rnum" data-line-number="47"></td>
          <td id="file-whois-cs-LC47" class="blob-code blob-code-inner js-file-line">                whoisClient.Close();</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L48" class="blob-num js-line-number js-blob-rnum" data-line-number="48"></td>
          <td id="file-whois-cs-LC48" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L49" class="blob-num js-line-number js-blob-rnum" data-line-number="49"></td>
          <td id="file-whois-cs-LC49" class="blob-code blob-code-inner js-file-line">                return String.Join(Environment.NewLine, whoisData);</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L50" class="blob-num js-line-number js-blob-rnum" data-line-number="50"></td>
          <td id="file-whois-cs-LC50" class="blob-code blob-code-inner js-file-line">            }            </td>
        </tr>
        <tr>
          <td id="file-whois-cs-L51" class="blob-num js-line-number js-blob-rnum" data-line-number="51"></td>
          <td id="file-whois-cs-LC51" class="blob-code blob-code-inner js-file-line">        }        </td>
        </tr>
        <tr>
          <td id="file-whois-cs-L52" class="blob-num js-line-number js-blob-rnum" data-line-number="52"></td>
          <td id="file-whois-cs-LC52" class="blob-code blob-code-inner js-file-line">    }</td>
        </tr>
        <tr>
          <td id="file-whois-cs-L53" class="blob-num js-line-number js-blob-rnum" data-line-number="53"></td>
          <td id="file-whois-cs-LC53" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/ba57fe39738010595362/raw/cf33ae8d4e561333ed50299e165ca6aa6f5abd45/Whois.cs" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/ba57fe39738010595362#file-whois-cs" class="Link--inTextBlock">
          Whois.cs
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>
</p>
<p>You can get the whois information by just calling the Whois.Lookup method with your domain name as parameter as shown in the code below.<br />
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist26421260" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-program-cs" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-c  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="Program.cs content, created by vkbandi on 08:03PM on September 16, 2015."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="Program.cs">
        <tr>
          <td id="file-program-cs-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-program-cs-LC1" class="blob-code blob-code-inner js-file-line">using System;</td>
        </tr>
        <tr>
          <td id="file-program-cs-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-program-cs-LC2" class="blob-code blob-code-inner js-file-line">using System.Collections.Generic;</td>
        </tr>
        <tr>
          <td id="file-program-cs-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-program-cs-LC3" class="blob-code blob-code-inner js-file-line">using System.Linq;</td>
        </tr>
        <tr>
          <td id="file-program-cs-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-program-cs-LC4" class="blob-code blob-code-inner js-file-line">using System.Text;</td>
        </tr>
        <tr>
          <td id="file-program-cs-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-program-cs-LC5" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-program-cs-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-program-cs-LC6" class="blob-code blob-code-inner js-file-line">namespace DomainTools</td>
        </tr>
        <tr>
          <td id="file-program-cs-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-program-cs-LC7" class="blob-code blob-code-inner js-file-line">{</td>
        </tr>
        <tr>
          <td id="file-program-cs-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-program-cs-LC8" class="blob-code blob-code-inner js-file-line">    class Program</td>
        </tr>
        <tr>
          <td id="file-program-cs-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-program-cs-LC9" class="blob-code blob-code-inner js-file-line">    {</td>
        </tr>
        <tr>
          <td id="file-program-cs-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-program-cs-LC10" class="blob-code blob-code-inner js-file-line">        static void Main(string[] args)</td>
        </tr>
        <tr>
          <td id="file-program-cs-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-program-cs-LC11" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-program-cs-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-program-cs-LC12" class="blob-code blob-code-inner js-file-line">            Console.WriteLine(&quot;Enter a domain name to get the whois information.&quot;);</td>
        </tr>
        <tr>
          <td id="file-program-cs-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-program-cs-LC13" class="blob-code blob-code-inner js-file-line">            var domainName = Console.ReadLine();</td>
        </tr>
        <tr>
          <td id="file-program-cs-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-program-cs-LC14" class="blob-code blob-code-inner js-file-line">            try</td>
        </tr>
        <tr>
          <td id="file-program-cs-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-program-cs-LC15" class="blob-code blob-code-inner js-file-line">            {</td>
        </tr>
        <tr>
          <td id="file-program-cs-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-program-cs-LC16" class="blob-code blob-code-inner js-file-line">                var whoisText = Whois.Lookup(domainName);</td>
        </tr>
        <tr>
          <td id="file-program-cs-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-program-cs-LC17" class="blob-code blob-code-inner js-file-line">                Console.WriteLine(whoisText);</td>
        </tr>
        <tr>
          <td id="file-program-cs-L18" class="blob-num js-line-number js-blob-rnum" data-line-number="18"></td>
          <td id="file-program-cs-LC18" class="blob-code blob-code-inner js-file-line">            }</td>
        </tr>
        <tr>
          <td id="file-program-cs-L19" class="blob-num js-line-number js-blob-rnum" data-line-number="19"></td>
          <td id="file-program-cs-LC19" class="blob-code blob-code-inner js-file-line">            catch (Exception ex)</td>
        </tr>
        <tr>
          <td id="file-program-cs-L20" class="blob-num js-line-number js-blob-rnum" data-line-number="20"></td>
          <td id="file-program-cs-LC20" class="blob-code blob-code-inner js-file-line">            {</td>
        </tr>
        <tr>
          <td id="file-program-cs-L21" class="blob-num js-line-number js-blob-rnum" data-line-number="21"></td>
          <td id="file-program-cs-LC21" class="blob-code blob-code-inner js-file-line">                Console.WriteLine(ex.ToString());</td>
        </tr>
        <tr>
          <td id="file-program-cs-L22" class="blob-num js-line-number js-blob-rnum" data-line-number="22"></td>
          <td id="file-program-cs-LC22" class="blob-code blob-code-inner js-file-line">            }</td>
        </tr>
        <tr>
          <td id="file-program-cs-L23" class="blob-num js-line-number js-blob-rnum" data-line-number="23"></td>
          <td id="file-program-cs-LC23" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-program-cs-L24" class="blob-num js-line-number js-blob-rnum" data-line-number="24"></td>
          <td id="file-program-cs-LC24" class="blob-code blob-code-inner js-file-line">            Console.WriteLine(&quot;Press any key to exit..&quot;);</td>
        </tr>
        <tr>
          <td id="file-program-cs-L25" class="blob-num js-line-number js-blob-rnum" data-line-number="25"></td>
          <td id="file-program-cs-LC25" class="blob-code blob-code-inner js-file-line">            Console.Read();</td>
        </tr>
        <tr>
          <td id="file-program-cs-L26" class="blob-num js-line-number js-blob-rnum" data-line-number="26"></td>
          <td id="file-program-cs-LC26" class="blob-code blob-code-inner js-file-line">        }</td>
        </tr>
        <tr>
          <td id="file-program-cs-L27" class="blob-num js-line-number js-blob-rnum" data-line-number="27"></td>
          <td id="file-program-cs-LC27" class="blob-code blob-code-inner js-file-line">    }</td>
        </tr>
        <tr>
          <td id="file-program-cs-L28" class="blob-num js-line-number js-blob-rnum" data-line-number="28"></td>
          <td id="file-program-cs-LC28" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/a1759d0af213bfdc577e/raw/fe12cbf0d6faadefd8b60b681e14489e18653906/Program.cs" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/a1759d0af213bfdc577e#file-program-cs" class="Link--inTextBlock">
          Program.cs
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>
</p>
<p><strong>Note</strong><br />
Please note that this is implementation works only &#8220;.com&#8221; TLD domains, you have to change the server name to make it work for other TLD&#8217;s, you can find the implementation which works with different TLD&#8217;s in the github project I linked below</p>
<p><strong>Usefull links</strong></p>
<ul>
<li>Browse the <strong><a href="https://github.com/coderbuddyblog/DomainTools">source code on github</a></strong></li>
<li>Download the <strong><a href="https://github.com/coderbuddyblog/DomainTools/archive/master.zip">full source code along with a demo</a></strong></li>
</ul>
<p>This post is originally published on <a href="https://coderbuddy.wordpress.com/2010/10/12/a-simple-c-class-to-get-whois-information/" rel="me">coderbuddy.wordpress.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://coderbuddy.wordpress.com/2010/10/12/a-simple-c-class-to-get-whois-information/feed/</wfw:commentRss>
			<slash:comments>9</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/e06636b4a6007decb142d5c7d271e5e3e4853c59dd3d89d12945046ed84912ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chowdary</media:title>
		</media:content>
	</item>
		<item>
		<title>C# code to publish, delete, retrieve tweets using oauth</title>
		<link>https://coderbuddy.wordpress.com/2010/08/30/c-code-to-publish-delete-retrieve-tweets-using-oauth/</link>
					<comments>https://coderbuddy.wordpress.com/2010/08/30/c-code-to-publish-delete-retrieve-tweets-using-oauth/#comments</comments>
		
		<dc:creator><![CDATA[vkbandi]]></dc:creator>
		<pubDate>Mon, 30 Aug 2010 14:57:23 +0000</pubDate>
				<category><![CDATA[C#.net]]></category>
		<category><![CDATA[Application programming interface]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[C#.net code]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Oauth]]></category>
		<category><![CDATA[Online Communities]]></category>
		<category><![CDATA[Social network]]></category>
		<category><![CDATA[Trending and Popularity]]></category>
		<category><![CDATA[Twitter]]></category>
		<guid isPermaLink="false">http://coderbuddy.wordpress.com/?p=177</guid>

					<description><![CDATA[C#.net class to tweet, retweet, delete and get information about tweet and their publishers]]></description>
										<content:encoded><![CDATA[<p>The following C#.net class can be used to update statuses, delete, retweet statuses, obtain information regarding a particular status and any body who retweeted a particular status using status id.</p>
<p>This class implements all the methods that are under the &#8220;Tweets Resources&#8221; section in <a href="http://dev.twitter.com/doc">Twitter API documentation</a></p>
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist26421337" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-tweets-cs" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-c  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="Tweets.cs content, created by vkbandi on 08:07PM on September 16, 2015."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="Tweets.cs">
        <tr>
          <td id="file-tweets-cs-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-tweets-cs-LC1" class="blob-code blob-code-inner js-file-line">using System;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-tweets-cs-LC2" class="blob-code blob-code-inner js-file-line">using System.Text;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-tweets-cs-LC3" class="blob-code blob-code-inner js-file-line">using System.Collections.Generic;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-tweets-cs-LC4" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-tweets-cs-LC5" class="blob-code blob-code-inner js-file-line">namespace TwitterAPI</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-tweets-cs-LC6" class="blob-code blob-code-inner js-file-line">{</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-tweets-cs-LC7" class="blob-code blob-code-inner js-file-line">    public class Tweets</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-tweets-cs-LC8" class="blob-code blob-code-inner js-file-line">    {</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-tweets-cs-LC9" class="blob-code blob-code-inner js-file-line">        #region Class-Level-Declarations</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-tweets-cs-LC10" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-tweets-cs-LC11" class="blob-code blob-code-inner js-file-line">        private oAuthTwitter OAuth;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-tweets-cs-LC12" class="blob-code blob-code-inner js-file-line">        /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-tweets-cs-LC13" class="blob-code blob-code-inner js-file-line">        /// Create, Update, retrieve, delete tweets(status messages) using this class</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-tweets-cs-LC14" class="blob-code blob-code-inner js-file-line">        /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-tweets-cs-LC15" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;_oauth&quot;&gt;An authorized and authenticated oAuth token&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-tweets-cs-LC16" class="blob-code blob-code-inner js-file-line">        public Tweets(oAuthTwitter _oauth)</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-tweets-cs-LC17" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L18" class="blob-num js-line-number js-blob-rnum" data-line-number="18"></td>
          <td id="file-tweets-cs-LC18" class="blob-code blob-code-inner js-file-line">            this.OAuth = _oauth;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L19" class="blob-num js-line-number js-blob-rnum" data-line-number="19"></td>
          <td id="file-tweets-cs-LC19" class="blob-code blob-code-inner js-file-line">        }</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L20" class="blob-num js-line-number js-blob-rnum" data-line-number="20"></td>
          <td id="file-tweets-cs-LC20" class="blob-code blob-code-inner js-file-line">        public enum ResponseFormat { JSON, XML };</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L21" class="blob-num js-line-number js-blob-rnum" data-line-number="21"></td>
          <td id="file-tweets-cs-LC21" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L22" class="blob-num js-line-number js-blob-rnum" data-line-number="22"></td>
          <td id="file-tweets-cs-LC22" class="blob-code blob-code-inner js-file-line">        #endregion</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L23" class="blob-num js-line-number js-blob-rnum" data-line-number="23"></td>
          <td id="file-tweets-cs-LC23" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L24" class="blob-num js-line-number js-blob-rnum" data-line-number="24"></td>
          <td id="file-tweets-cs-LC24" class="blob-code blob-code-inner js-file-line">        #region Show:ID</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L25" class="blob-num js-line-number js-blob-rnum" data-line-number="25"></td>
          <td id="file-tweets-cs-LC25" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L26" class="blob-num js-line-number js-blob-rnum" data-line-number="26"></td>
          <td id="file-tweets-cs-LC26" class="blob-code blob-code-inner js-file-line">        /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L27" class="blob-num js-line-number js-blob-rnum" data-line-number="27"></td>
          <td id="file-tweets-cs-LC27" class="blob-code blob-code-inner js-file-line">        /// Returns a single status, specified by the id parameter below. The status&#39;s author will be returned inline.</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L28" class="blob-num js-line-number js-blob-rnum" data-line-number="28"></td>
          <td id="file-tweets-cs-LC28" class="blob-code blob-code-inner js-file-line">        /// This does not require authentication as long as the status is not protected</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L29" class="blob-num js-line-number js-blob-rnum" data-line-number="29"></td>
          <td id="file-tweets-cs-LC29" class="blob-code blob-code-inner js-file-line">        /// This is a rate limited call</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L30" class="blob-num js-line-number js-blob-rnum" data-line-number="30"></td>
          <td id="file-tweets-cs-LC30" class="blob-code blob-code-inner js-file-line">        /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L31" class="blob-num js-line-number js-blob-rnum" data-line-number="31"></td>
          <td id="file-tweets-cs-LC31" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;response_format&quot;&gt;The format in which you want twitter to respond&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L32" class="blob-num js-line-number js-blob-rnum" data-line-number="32"></td>
          <td id="file-tweets-cs-LC32" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;statusid&quot;&gt;The numerical ID of the desired status.&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L33" class="blob-num js-line-number js-blob-rnum" data-line-number="33"></td>
          <td id="file-tweets-cs-LC33" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;optionalparameters&quot;&gt;Any other optional parameters.Use an empty string if you dont want to pass any optional parameters&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L34" class="blob-num js-line-number js-blob-rnum" data-line-number="34"></td>
          <td id="file-tweets-cs-LC34" class="blob-code blob-code-inner js-file-line">        /// &lt;returns&gt;Response string from twitter in user selected format&lt;/returns&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L35" class="blob-num js-line-number js-blob-rnum" data-line-number="35"></td>
          <td id="file-tweets-cs-LC35" class="blob-code blob-code-inner js-file-line">        public string Show_By_ID(ResponseFormat response_format, string statusid, string optionalparameters)</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L36" class="blob-num js-line-number js-blob-rnum" data-line-number="36"></td>
          <td id="file-tweets-cs-LC36" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L37" class="blob-num js-line-number js-blob-rnum" data-line-number="37"></td>
          <td id="file-tweets-cs-LC37" class="blob-code blob-code-inner js-file-line">            if (string.IsNullOrEmpty(statusid))</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L38" class="blob-num js-line-number js-blob-rnum" data-line-number="38"></td>
          <td id="file-tweets-cs-LC38" class="blob-code blob-code-inner js-file-line">                throw new ArgumentNullException(statusid, &quot;Status Id cannot be null&quot;);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L39" class="blob-num js-line-number js-blob-rnum" data-line-number="39"></td>
          <td id="file-tweets-cs-LC39" class="blob-code blob-code-inner js-file-line">            return OAuth.oAuthWebRequest(oAuthTwitter.Method.GET, &quot;<a href="http://api.twitter.com/1/statuses/show/&#038;quot" rel="nofollow">http://api.twitter.com/1/statuses/show/&#038;quot</a>; + statusid + &quot;.&quot; + response_format.ToString(), optionalparameters);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L40" class="blob-num js-line-number js-blob-rnum" data-line-number="40"></td>
          <td id="file-tweets-cs-LC40" class="blob-code blob-code-inner js-file-line">        }</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L41" class="blob-num js-line-number js-blob-rnum" data-line-number="41"></td>
          <td id="file-tweets-cs-LC41" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L42" class="blob-num js-line-number js-blob-rnum" data-line-number="42"></td>
          <td id="file-tweets-cs-LC42" class="blob-code blob-code-inner js-file-line">        #endregion</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L43" class="blob-num js-line-number js-blob-rnum" data-line-number="43"></td>
          <td id="file-tweets-cs-LC43" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L44" class="blob-num js-line-number js-blob-rnum" data-line-number="44"></td>
          <td id="file-tweets-cs-LC44" class="blob-code blob-code-inner js-file-line">        #region Update</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L45" class="blob-num js-line-number js-blob-rnum" data-line-number="45"></td>
          <td id="file-tweets-cs-LC45" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L46" class="blob-num js-line-number js-blob-rnum" data-line-number="46"></td>
          <td id="file-tweets-cs-LC46" class="blob-code blob-code-inner js-file-line">        /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L47" class="blob-num js-line-number js-blob-rnum" data-line-number="47"></td>
          <td id="file-tweets-cs-LC47" class="blob-code blob-code-inner js-file-line">        /// Updates the authenticating user&#39;s status. A status update with text identical to the authenticating user&#39;s current status will be ignored to prevent duplicates.</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L48" class="blob-num js-line-number js-blob-rnum" data-line-number="48"></td>
          <td id="file-tweets-cs-LC48" class="blob-code blob-code-inner js-file-line">        /// Authentication is required and this call is not rate limited</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L49" class="blob-num js-line-number js-blob-rnum" data-line-number="49"></td>
          <td id="file-tweets-cs-LC49" class="blob-code blob-code-inner js-file-line">        /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L50" class="blob-num js-line-number js-blob-rnum" data-line-number="50"></td>
          <td id="file-tweets-cs-LC50" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;tweet_message&quot;&gt;The text of your status update, up to 140 characters.&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L51" class="blob-num js-line-number js-blob-rnum" data-line-number="51"></td>
          <td id="file-tweets-cs-LC51" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;reponse_format&quot;&gt;The format in which you want twitter to respond&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L52" class="blob-num js-line-number js-blob-rnum" data-line-number="52"></td>
          <td id="file-tweets-cs-LC52" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;optionalparameters&quot;&gt;Any optional paramters you want to pass&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L53" class="blob-num js-line-number js-blob-rnum" data-line-number="53"></td>
          <td id="file-tweets-cs-LC53" class="blob-code blob-code-inner js-file-line">        /// &lt;returns&gt;Response string from twitter in user selected format &lt;/returns&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L54" class="blob-num js-line-number js-blob-rnum" data-line-number="54"></td>
          <td id="file-tweets-cs-LC54" class="blob-code blob-code-inner js-file-line">        public string UpdateStatus(ResponseFormat reponse_format, string tweet_message, string optionalparameters)</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L55" class="blob-num js-line-number js-blob-rnum" data-line-number="55"></td>
          <td id="file-tweets-cs-LC55" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L56" class="blob-num js-line-number js-blob-rnum" data-line-number="56"></td>
          <td id="file-tweets-cs-LC56" class="blob-code blob-code-inner js-file-line">            if (string.IsNullOrEmpty(tweet_message))</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L57" class="blob-num js-line-number js-blob-rnum" data-line-number="57"></td>
          <td id="file-tweets-cs-LC57" class="blob-code blob-code-inner js-file-line">                throw new ArgumentNullException(tweet_message, &quot;The status message cannot be null&quot;);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L58" class="blob-num js-line-number js-blob-rnum" data-line-number="58"></td>
          <td id="file-tweets-cs-LC58" class="blob-code blob-code-inner js-file-line">            return OAuth.oAuthWebRequest(oAuthTwitter.Method.POST, &quot;<a href="http://api.twitter.com/1/statuses/update.&#038;quot" rel="nofollow">http://api.twitter.com/1/statuses/update.&#038;quot</a>; + reponse_format.ToString(), &quot;status=&quot; + tweet_message + optionalparameters);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L59" class="blob-num js-line-number js-blob-rnum" data-line-number="59"></td>
          <td id="file-tweets-cs-LC59" class="blob-code blob-code-inner js-file-line">        }</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L60" class="blob-num js-line-number js-blob-rnum" data-line-number="60"></td>
          <td id="file-tweets-cs-LC60" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L61" class="blob-num js-line-number js-blob-rnum" data-line-number="61"></td>
          <td id="file-tweets-cs-LC61" class="blob-code blob-code-inner js-file-line">         #endregion</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L62" class="blob-num js-line-number js-blob-rnum" data-line-number="62"></td>
          <td id="file-tweets-cs-LC62" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L63" class="blob-num js-line-number js-blob-rnum" data-line-number="63"></td>
          <td id="file-tweets-cs-LC63" class="blob-code blob-code-inner js-file-line">        #region Destroy:Id</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L64" class="blob-num js-line-number js-blob-rnum" data-line-number="64"></td>
          <td id="file-tweets-cs-LC64" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L65" class="blob-num js-line-number js-blob-rnum" data-line-number="65"></td>
          <td id="file-tweets-cs-LC65" class="blob-code blob-code-inner js-file-line">        /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L66" class="blob-num js-line-number js-blob-rnum" data-line-number="66"></td>
          <td id="file-tweets-cs-LC66" class="blob-code blob-code-inner js-file-line">        /// Destroys the status specified by the required ID parameter.In other words deletes the specified tweet</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L67" class="blob-num js-line-number js-blob-rnum" data-line-number="67"></td>
          <td id="file-tweets-cs-LC67" class="blob-code blob-code-inner js-file-line">        /// Requires authentication, and rate limited is false</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L68" class="blob-num js-line-number js-blob-rnum" data-line-number="68"></td>
          <td id="file-tweets-cs-LC68" class="blob-code blob-code-inner js-file-line">        /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L69" class="blob-num js-line-number js-blob-rnum" data-line-number="69"></td>
          <td id="file-tweets-cs-LC69" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;response_format&quot;&gt;The format in which you want twitter to respond&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L70" class="blob-num js-line-number js-blob-rnum" data-line-number="70"></td>
          <td id="file-tweets-cs-LC70" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;statusid&quot;&gt;The numerical ID of the desired status.&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L71" class="blob-num js-line-number js-blob-rnum" data-line-number="71"></td>
          <td id="file-tweets-cs-LC71" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;optionalparameters&quot;&gt;Any other optional parameters.Use an empty string if you dont want to pass any optional parameters&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L72" class="blob-num js-line-number js-blob-rnum" data-line-number="72"></td>
          <td id="file-tweets-cs-LC72" class="blob-code blob-code-inner js-file-line">        /// &lt;returns&gt;Response string from twitter in user selected format&lt;/returns&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L73" class="blob-num js-line-number js-blob-rnum" data-line-number="73"></td>
          <td id="file-tweets-cs-LC73" class="blob-code blob-code-inner js-file-line">        public string Destroy_By_Id(ResponseFormat response_format, string statusid, string optionalparameters)</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L74" class="blob-num js-line-number js-blob-rnum" data-line-number="74"></td>
          <td id="file-tweets-cs-LC74" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L75" class="blob-num js-line-number js-blob-rnum" data-line-number="75"></td>
          <td id="file-tweets-cs-LC75" class="blob-code blob-code-inner js-file-line">            if (string.IsNullOrEmpty(statusid))</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L76" class="blob-num js-line-number js-blob-rnum" data-line-number="76"></td>
          <td id="file-tweets-cs-LC76" class="blob-code blob-code-inner js-file-line">                throw new ArgumentNullException(statusid, &quot;Status Id cannot be null&quot;);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L77" class="blob-num js-line-number js-blob-rnum" data-line-number="77"></td>
          <td id="file-tweets-cs-LC77" class="blob-code blob-code-inner js-file-line">            return OAuth.oAuthWebRequest(oAuthTwitter.Method.POST, &quot;<a href="http://api.twitter.com/1/statuses/destroy/&#038;quot" rel="nofollow">http://api.twitter.com/1/statuses/destroy/&#038;quot</a>; + statusid + &quot;.&quot; + response_format.ToString(), optionalparameters);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L78" class="blob-num js-line-number js-blob-rnum" data-line-number="78"></td>
          <td id="file-tweets-cs-LC78" class="blob-code blob-code-inner js-file-line">        }</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L79" class="blob-num js-line-number js-blob-rnum" data-line-number="79"></td>
          <td id="file-tweets-cs-LC79" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L80" class="blob-num js-line-number js-blob-rnum" data-line-number="80"></td>
          <td id="file-tweets-cs-LC80" class="blob-code blob-code-inner js-file-line">        #endregion</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L81" class="blob-num js-line-number js-blob-rnum" data-line-number="81"></td>
          <td id="file-tweets-cs-LC81" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L82" class="blob-num js-line-number js-blob-rnum" data-line-number="82"></td>
          <td id="file-tweets-cs-LC82" class="blob-code blob-code-inner js-file-line">        #region Retweet:Id</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L83" class="blob-num js-line-number js-blob-rnum" data-line-number="83"></td>
          <td id="file-tweets-cs-LC83" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L84" class="blob-num js-line-number js-blob-rnum" data-line-number="84"></td>
          <td id="file-tweets-cs-LC84" class="blob-code blob-code-inner js-file-line">        /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L85" class="blob-num js-line-number js-blob-rnum" data-line-number="85"></td>
          <td id="file-tweets-cs-LC85" class="blob-code blob-code-inner js-file-line">        /// Retweets a tweet. Returns the original tweet with retweet details embedded.</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L86" class="blob-num js-line-number js-blob-rnum" data-line-number="86"></td>
          <td id="file-tweets-cs-LC86" class="blob-code blob-code-inner js-file-line">        /// Does not require authentication, and rate limited is false</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L87" class="blob-num js-line-number js-blob-rnum" data-line-number="87"></td>
          <td id="file-tweets-cs-LC87" class="blob-code blob-code-inner js-file-line">        /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L88" class="blob-num js-line-number js-blob-rnum" data-line-number="88"></td>
          <td id="file-tweets-cs-LC88" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;response_format&quot;&gt;The format in which you want twitter to respond&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L89" class="blob-num js-line-number js-blob-rnum" data-line-number="89"></td>
          <td id="file-tweets-cs-LC89" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;statusid&quot;&gt;The numerical ID of the desired status.&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L90" class="blob-num js-line-number js-blob-rnum" data-line-number="90"></td>
          <td id="file-tweets-cs-LC90" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;optionalparameters&quot;&gt;Any other optional parameters.Use an empty string if you dont want to pass any optional parameters&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L91" class="blob-num js-line-number js-blob-rnum" data-line-number="91"></td>
          <td id="file-tweets-cs-LC91" class="blob-code blob-code-inner js-file-line">        /// &lt;returns&gt;Response string from twitter in user selected format&lt;/returns&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L92" class="blob-num js-line-number js-blob-rnum" data-line-number="92"></td>
          <td id="file-tweets-cs-LC92" class="blob-code blob-code-inner js-file-line">        public string Retweet_By_Id(ResponseFormat response_format, string statusid, string optionalparameters)</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L93" class="blob-num js-line-number js-blob-rnum" data-line-number="93"></td>
          <td id="file-tweets-cs-LC93" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L94" class="blob-num js-line-number js-blob-rnum" data-line-number="94"></td>
          <td id="file-tweets-cs-LC94" class="blob-code blob-code-inner js-file-line">            if (string.IsNullOrEmpty(statusid))</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L95" class="blob-num js-line-number js-blob-rnum" data-line-number="95"></td>
          <td id="file-tweets-cs-LC95" class="blob-code blob-code-inner js-file-line">                throw new ArgumentNullException(statusid, &quot;Status Id cannot be null&quot;);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L96" class="blob-num js-line-number js-blob-rnum" data-line-number="96"></td>
          <td id="file-tweets-cs-LC96" class="blob-code blob-code-inner js-file-line">            return OAuth.oAuthWebRequest(oAuthTwitter.Method.POST, &quot;<a href="http://api.twitter.com/1/statuses/retweet/&#038;quot" rel="nofollow">http://api.twitter.com/1/statuses/retweet/&#038;quot</a>; + statusid + &quot;.&quot; + response_format.ToString(), optionalparameters);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L97" class="blob-num js-line-number js-blob-rnum" data-line-number="97"></td>
          <td id="file-tweets-cs-LC97" class="blob-code blob-code-inner js-file-line">        }</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L98" class="blob-num js-line-number js-blob-rnum" data-line-number="98"></td>
          <td id="file-tweets-cs-LC98" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L99" class="blob-num js-line-number js-blob-rnum" data-line-number="99"></td>
          <td id="file-tweets-cs-LC99" class="blob-code blob-code-inner js-file-line">        #endregion</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L100" class="blob-num js-line-number js-blob-rnum" data-line-number="100"></td>
          <td id="file-tweets-cs-LC100" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L101" class="blob-num js-line-number js-blob-rnum" data-line-number="101"></td>
          <td id="file-tweets-cs-LC101" class="blob-code blob-code-inner js-file-line">        #region Show Retweets:Id</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L102" class="blob-num js-line-number js-blob-rnum" data-line-number="102"></td>
          <td id="file-tweets-cs-LC102" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L103" class="blob-num js-line-number js-blob-rnum" data-line-number="103"></td>
          <td id="file-tweets-cs-LC103" class="blob-code blob-code-inner js-file-line">        /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L104" class="blob-num js-line-number js-blob-rnum" data-line-number="104"></td>
          <td id="file-tweets-cs-LC104" class="blob-code blob-code-inner js-file-line">        ///Returns up to 100 of the first retweets of a given tweet.</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L105" class="blob-num js-line-number js-blob-rnum" data-line-number="105"></td>
          <td id="file-tweets-cs-LC105" class="blob-code blob-code-inner js-file-line">        /// Does not require authentication, and rate limited is false</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L106" class="blob-num js-line-number js-blob-rnum" data-line-number="106"></td>
          <td id="file-tweets-cs-LC106" class="blob-code blob-code-inner js-file-line">        /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L107" class="blob-num js-line-number js-blob-rnum" data-line-number="107"></td>
          <td id="file-tweets-cs-LC107" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;response_format&quot;&gt;The format in which you want twitter to respond&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L108" class="blob-num js-line-number js-blob-rnum" data-line-number="108"></td>
          <td id="file-tweets-cs-LC108" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;statusid&quot;&gt;The numerical ID of the desired status.&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L109" class="blob-num js-line-number js-blob-rnum" data-line-number="109"></td>
          <td id="file-tweets-cs-LC109" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;optionalparameters&quot;&gt;Any other optional parameters.Use an empty string if you dont want to pass any optional parameters&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L110" class="blob-num js-line-number js-blob-rnum" data-line-number="110"></td>
          <td id="file-tweets-cs-LC110" class="blob-code blob-code-inner js-file-line">        /// &lt;returns&gt;Response string from twitter in user selected format&lt;/returns&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L111" class="blob-num js-line-number js-blob-rnum" data-line-number="111"></td>
          <td id="file-tweets-cs-LC111" class="blob-code blob-code-inner js-file-line">        public string Show_Retweets_By_Id(ResponseFormat response_format, string statusid, string optionalparameters)</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L112" class="blob-num js-line-number js-blob-rnum" data-line-number="112"></td>
          <td id="file-tweets-cs-LC112" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L113" class="blob-num js-line-number js-blob-rnum" data-line-number="113"></td>
          <td id="file-tweets-cs-LC113" class="blob-code blob-code-inner js-file-line">            if (string.IsNullOrEmpty(statusid))</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L114" class="blob-num js-line-number js-blob-rnum" data-line-number="114"></td>
          <td id="file-tweets-cs-LC114" class="blob-code blob-code-inner js-file-line">                throw new ArgumentNullException(statusid, &quot;Status Id cannot be null&quot;);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L115" class="blob-num js-line-number js-blob-rnum" data-line-number="115"></td>
          <td id="file-tweets-cs-LC115" class="blob-code blob-code-inner js-file-line">            return OAuth.oAuthWebRequest(oAuthTwitter.Method.GET, &quot;<a href="http://api.twitter.com/1/statuses/retweets/&#038;quot" rel="nofollow">http://api.twitter.com/1/statuses/retweets/&#038;quot</a>; + statusid + &quot;.&quot; + response_format.ToString(), optionalparameters);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L116" class="blob-num js-line-number js-blob-rnum" data-line-number="116"></td>
          <td id="file-tweets-cs-LC116" class="blob-code blob-code-inner js-file-line">        }</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L117" class="blob-num js-line-number js-blob-rnum" data-line-number="117"></td>
          <td id="file-tweets-cs-LC117" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L118" class="blob-num js-line-number js-blob-rnum" data-line-number="118"></td>
          <td id="file-tweets-cs-LC118" class="blob-code blob-code-inner js-file-line">        #endregion</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L119" class="blob-num js-line-number js-blob-rnum" data-line-number="119"></td>
          <td id="file-tweets-cs-LC119" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L120" class="blob-num js-line-number js-blob-rnum" data-line-number="120"></td>
          <td id="file-tweets-cs-LC120" class="blob-code blob-code-inner js-file-line">        #region Show Retweeted By:Id</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L121" class="blob-num js-line-number js-blob-rnum" data-line-number="121"></td>
          <td id="file-tweets-cs-LC121" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L122" class="blob-num js-line-number js-blob-rnum" data-line-number="122"></td>
          <td id="file-tweets-cs-LC122" class="blob-code blob-code-inner js-file-line">        /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L123" class="blob-num js-line-number js-blob-rnum" data-line-number="123"></td>
          <td id="file-tweets-cs-LC123" class="blob-code blob-code-inner js-file-line">        /// Show user objects of up to 100 members who retweeted the status.</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L124" class="blob-num js-line-number js-blob-rnum" data-line-number="124"></td>
          <td id="file-tweets-cs-LC124" class="blob-code blob-code-inner js-file-line">        /// Requires authentication, and rate limited</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L125" class="blob-num js-line-number js-blob-rnum" data-line-number="125"></td>
          <td id="file-tweets-cs-LC125" class="blob-code blob-code-inner js-file-line">        /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L126" class="blob-num js-line-number js-blob-rnum" data-line-number="126"></td>
          <td id="file-tweets-cs-LC126" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;response_format&quot;&gt;The format in which you want twitter to respond&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L127" class="blob-num js-line-number js-blob-rnum" data-line-number="127"></td>
          <td id="file-tweets-cs-LC127" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;statusid&quot;&gt;The numerical ID of the desired status.&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L128" class="blob-num js-line-number js-blob-rnum" data-line-number="128"></td>
          <td id="file-tweets-cs-LC128" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;optionalparameters&quot;&gt;Any other optional parameters.Use an empty string if you dont want to pass any optional parameters&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L129" class="blob-num js-line-number js-blob-rnum" data-line-number="129"></td>
          <td id="file-tweets-cs-LC129" class="blob-code blob-code-inner js-file-line">        /// &lt;returns&gt;Response string from twitter in user selected format&lt;/returns&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L130" class="blob-num js-line-number js-blob-rnum" data-line-number="130"></td>
          <td id="file-tweets-cs-LC130" class="blob-code blob-code-inner js-file-line">        public string Show_Retweetedby_By_Id(ResponseFormat response_format, string statusid, string optionalparameters)</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L131" class="blob-num js-line-number js-blob-rnum" data-line-number="131"></td>
          <td id="file-tweets-cs-LC131" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L132" class="blob-num js-line-number js-blob-rnum" data-line-number="132"></td>
          <td id="file-tweets-cs-LC132" class="blob-code blob-code-inner js-file-line">            if (string.IsNullOrEmpty(statusid))</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L133" class="blob-num js-line-number js-blob-rnum" data-line-number="133"></td>
          <td id="file-tweets-cs-LC133" class="blob-code blob-code-inner js-file-line">                throw new ArgumentNullException(statusid, &quot;Status Id cannot be null&quot;);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L134" class="blob-num js-line-number js-blob-rnum" data-line-number="134"></td>
          <td id="file-tweets-cs-LC134" class="blob-code blob-code-inner js-file-line">            return OAuth.oAuthWebRequest(oAuthTwitter.Method.GET, &quot;<a href="http://api.twitter.com/1/statuses/&#038;quot" rel="nofollow">http://api.twitter.com/1/statuses/&#038;quot</a>; + statusid + &quot;/retweeted_by.&quot; + response_format.ToString(), optionalparameters);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L135" class="blob-num js-line-number js-blob-rnum" data-line-number="135"></td>
          <td id="file-tweets-cs-LC135" class="blob-code blob-code-inner js-file-line">        }</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L136" class="blob-num js-line-number js-blob-rnum" data-line-number="136"></td>
          <td id="file-tweets-cs-LC136" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L137" class="blob-num js-line-number js-blob-rnum" data-line-number="137"></td>
          <td id="file-tweets-cs-LC137" class="blob-code blob-code-inner js-file-line">        #endregion</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L138" class="blob-num js-line-number js-blob-rnum" data-line-number="138"></td>
          <td id="file-tweets-cs-LC138" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L139" class="blob-num js-line-number js-blob-rnum" data-line-number="139"></td>
          <td id="file-tweets-cs-LC139" class="blob-code blob-code-inner js-file-line">        #region Show Retweeted By:Id</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L140" class="blob-num js-line-number js-blob-rnum" data-line-number="140"></td>
          <td id="file-tweets-cs-LC140" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L141" class="blob-num js-line-number js-blob-rnum" data-line-number="141"></td>
          <td id="file-tweets-cs-LC141" class="blob-code blob-code-inner js-file-line">        /// &lt;summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L142" class="blob-num js-line-number js-blob-rnum" data-line-number="142"></td>
          <td id="file-tweets-cs-LC142" class="blob-code blob-code-inner js-file-line">        /// Show user ids of up to 100 users who retweeted the status.</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L143" class="blob-num js-line-number js-blob-rnum" data-line-number="143"></td>
          <td id="file-tweets-cs-LC143" class="blob-code blob-code-inner js-file-line">        /// Requires authentication, and rate limited</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L144" class="blob-num js-line-number js-blob-rnum" data-line-number="144"></td>
          <td id="file-tweets-cs-LC144" class="blob-code blob-code-inner js-file-line">        /// &lt;/summary&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L145" class="blob-num js-line-number js-blob-rnum" data-line-number="145"></td>
          <td id="file-tweets-cs-LC145" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;response_format&quot;&gt;The format in which you want twitter to respond&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L146" class="blob-num js-line-number js-blob-rnum" data-line-number="146"></td>
          <td id="file-tweets-cs-LC146" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;statusid&quot;&gt;The numerical ID of the desired status.&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L147" class="blob-num js-line-number js-blob-rnum" data-line-number="147"></td>
          <td id="file-tweets-cs-LC147" class="blob-code blob-code-inner js-file-line">        /// &lt;param name=&quot;optionalparameters&quot;&gt;Any other optional parameters.Use an empty string if you dont want to pass any optional parameters&lt;/param&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L148" class="blob-num js-line-number js-blob-rnum" data-line-number="148"></td>
          <td id="file-tweets-cs-LC148" class="blob-code blob-code-inner js-file-line">        /// &lt;returns&gt;Response string from twitter in user selected format&lt;/returns&gt;</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L149" class="blob-num js-line-number js-blob-rnum" data-line-number="149"></td>
          <td id="file-tweets-cs-LC149" class="blob-code blob-code-inner js-file-line">        public string Show_Retweetedby_By_Id(ResponseFormat response_format, string statusid, string optionalparameters)</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L150" class="blob-num js-line-number js-blob-rnum" data-line-number="150"></td>
          <td id="file-tweets-cs-LC150" class="blob-code blob-code-inner js-file-line">        {</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L151" class="blob-num js-line-number js-blob-rnum" data-line-number="151"></td>
          <td id="file-tweets-cs-LC151" class="blob-code blob-code-inner js-file-line">            if (string.IsNullOrEmpty(statusid))</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L152" class="blob-num js-line-number js-blob-rnum" data-line-number="152"></td>
          <td id="file-tweets-cs-LC152" class="blob-code blob-code-inner js-file-line">                throw new ArgumentNullException(statusid, &quot;Status Id cannot be null&quot;);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L153" class="blob-num js-line-number js-blob-rnum" data-line-number="153"></td>
          <td id="file-tweets-cs-LC153" class="blob-code blob-code-inner js-file-line">            return OAuth.oAuthWebRequest(oAuthTwitter.Method.GET, &quot;<a href="http://api.twitter.com/1/statuses/&#038;quot" rel="nofollow">http://api.twitter.com/1/statuses/&#038;quot</a>; + statusid + &quot;/retweeted_by/ids.&quot; + response_format.ToString(), optionalparameters);</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L154" class="blob-num js-line-number js-blob-rnum" data-line-number="154"></td>
          <td id="file-tweets-cs-LC154" class="blob-code blob-code-inner js-file-line">        }        #endregion</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L155" class="blob-num js-line-number js-blob-rnum" data-line-number="155"></td>
          <td id="file-tweets-cs-LC155" class="blob-code blob-code-inner js-file-line">    }</td>
        </tr>
        <tr>
          <td id="file-tweets-cs-L156" class="blob-num js-line-number js-blob-rnum" data-line-number="156"></td>
          <td id="file-tweets-cs-LC156" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/7d472a87c236ae696ecd/raw/acbaaac2c77c32820699ef6d977b720ddf935596/Tweets.cs" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/7d472a87c236ae696ecd#file-tweets-cs" class="Link--inTextBlock">
          Tweets.cs
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>

<p>This class file uses OAuth implementation by shannon whitley (for more information see my previous post <a href="https://coderbuddy.wordpress.com/2010/08/28/oauth-twitter-search-in-c/">Implementing oauth twitter search in C# and JSON</a>).</p>
<p>You can download the complete source code along with this class from <a href="https://sites.google.com/site/coderbuddy/downloads/TwitterAPI.zip?attredirects=0&amp;d=1">https://sites.google.com/site/coderbuddy/downloads/TwitterAPI.zip?attredirects=0&amp;d=1</a></p>
<h6 class="zemanta-related-title" style="font-size:1em;"></h6>
]]></content:encoded>
					
					<wfw:commentRss>https://coderbuddy.wordpress.com/2010/08/30/c-code-to-publish-delete-retrieve-tweets-using-oauth/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/e06636b4a6007decb142d5c7d271e5e3e4853c59dd3d89d12945046ed84912ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chowdary</media:title>
		</media:content>
	</item>
		<item>
		<title>Implementing oauth twitter search in C# and JSON</title>
		<link>https://coderbuddy.wordpress.com/2010/08/28/oauth-twitter-search-in-c/</link>
					<comments>https://coderbuddy.wordpress.com/2010/08/28/oauth-twitter-search-in-c/#comments</comments>
		
		<dc:creator><![CDATA[vkbandi]]></dc:creator>
		<pubDate>Sat, 28 Aug 2010 19:05:08 +0000</pubDate>
				<category><![CDATA[C#.net]]></category>
		<category><![CDATA[Application programming interface]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Oauth]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Trending and Popularity]]></category>
		<category><![CDATA[Twitter]]></category>
		<guid isPermaLink="false">http://coderbuddy.wordpress.com/?p=129</guid>

					<description><![CDATA[Implementing oauth twitter search in C# using JSON for processing the results]]></description>
										<content:encoded><![CDATA[<p>To implement twitter search in C# that uses oauth for authentication, first we need a C# oauth implementation, and a JSON parser for extracting results. For oauth implementation I&#8217;m using <a href="http://www.voiceoftech.com/swhitley/index.php/2010/02/twitter-oauth-with-net-for-the-desktop/">Twitter oAuth with .NET by Shannon whitley</a> and for parsing the results <a title="How do i write my own parser ? (For JSON ) - Tech blog" href="http://techblog.procurios.nl/k/n618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html">JSON parser by Procurious</a> and i have to say that this post is just a bit refined implementation of <a title="Parsing Twitter JSON data in C#" href="http://www.jamiedigi.com/2009/06/parsing-twitter-json-in-c-sharp/">Parsing Twitter JSON data in C# by Jamie’s Digital Blog</a>.</p>
<p>To get started with twitter needs you to authenticate your application before you could use twitter API&#8217;s search feature, to authenticate an application needs to initialize a oAuthTwitter object so that it is accessible through out the class like<br />
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist26421493" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-oauthtwitterinitilizedemo-cs" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-c  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="OauthTwitterInitilizeDemo.cs content, created by vkbandi on 08:13PM on September 16, 2015."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="OauthTwitterInitilizeDemo.cs">
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC1" class="blob-code blob-code-inner js-file-line">oAuthTwitter oauth = new oAuthTwitter();</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC2" class="blob-code blob-code-inner js-file-line">//Replace the vlues with the one&#39;s provided by twitter</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC3" class="blob-code blob-code-inner js-file-line">oauth.ConsumerKey = &quot;Your-twitter-oauth-consumerkey&quot;;</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC4" class="blob-code blob-code-inner js-file-line">oauth.ConsumerSecret = &quot;Your-twitter-oauth-consumersecret&quot;;</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC5" class="blob-code blob-code-inner js-file-line">//Launches your default browser for requesting //authentication</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC6" class="blob-code blob-code-inner js-file-line">System.Diagnostics.Process.Start(oauth.AuthorizationLinkGet());</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC7" class="blob-code blob-code-inner js-file-line">//Copy the pin provided after you authenticating and save to a string</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC8" class="blob-code blob-code-inner js-file-line">//I am assuming you store it in a string twitterpin</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC9" class="blob-code blob-code-inner js-file-line">//Now the real authentication takes place</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC10" class="blob-code blob-code-inner js-file-line">//you will exchange the authtoken and pin for Access token</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC11" class="blob-code blob-code-inner js-file-line">oauth.AccessTokenGet(oauth.OAuthToken, twitterpin);</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterinitilizedemo-cs-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-oauthtwitterinitilizedemo-cs-LC12" class="blob-code blob-code-inner js-file-line">//remember twitterpin is the object in which we stored the //pin value</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/a39f9ce696c9e77e2eff/raw/84a9ab7b623ec875f911f8488abf928f3285cec0/OauthTwitterInitilizeDemo.cs" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/a39f9ce696c9e77e2eff#file-oauthtwitterinitilizedemo-cs" class="Link--inTextBlock">
          OauthTwitterInitilizeDemo.cs
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>
</p>
<p>Now since we have obtained the authentication we can use this oAuth to search twitter<br />
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist26421568" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-oauthtwitterquerydemo-cs" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-c  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="OAuthTwitterQueryDemo.cs content, created by vkbandi on 08:15PM on September 16, 2015."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="OAuthTwitterQueryDemo.cs">
        <tr>
          <td id="file-oauthtwitterquerydemo-cs-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-oauthtwitterquerydemo-cs-LC1" class="blob-code blob-code-inner js-file-line">//Replace the term search_keyword with a term you want to search</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterquerydemo-cs-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-oauthtwitterquerydemo-cs-LC2" class="blob-code blob-code-inner js-file-line">//rpp=100 in the url means results per page is 100, and lang=en means</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterquerydemo-cs-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-oauthtwitterquerydemo-cs-LC3" class="blob-code blob-code-inner js-file-line">//Language is english</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterquerydemo-cs-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-oauthtwitterquerydemo-cs-LC4" class="blob-code blob-code-inner js-file-line">string result = oauth.oAuthWebRequest(oAuthTwitter.Method.GET, &quot;<a href="http://search.twitter.com/search.json&#038;quot" rel="nofollow">http://search.twitter.com/search.json&#038;quot</a>;, &quot;q=&quot; + search_keyword + &quot;&amp;rpp=100&amp;lang=en&quot;);</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/ba6e304c0490dd24c3ec/raw/7327edbdb6c697ad4b701bcc1e71b9e04a3760e4/OAuthTwitterQueryDemo.cs" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/ba6e304c0490dd24c3ec#file-oauthtwitterquerydemo-cs" class="Link--inTextBlock">
          OAuthTwitterQueryDemo.cs
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>
</p>
<p>Now we have the 100 search results stored in a string result in JSON format, we will use JSON parser for extracting the values of each tweet<br />
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist26421655" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-oauthtwitterprocessresultsdemo-cs" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-c  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="OAuthTwitterProcessResultsDemo.cs content, created by vkbandi on 08:19PM on September 16, 2015."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="OAuthTwitterProcessResultsDemo.cs">
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC1" class="blob-code blob-code-inner js-file-line">//The following code is a straight copy from jamiedigi.com</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC2" class="blob-code blob-code-inner js-file-line">HashTable jsonHash = (Hashtable)JSON.JsonDecode(jsonCode);</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC3" class="blob-code blob-code-inner js-file-line">ArrayList jsonResults = (ArrayList)jsonHash[&quot;results&quot;];</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC4" class="blob-code blob-code-inner js-file-line">foreach (object objResult in jsonResults)</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC5" class="blob-code blob-code-inner js-file-line">{</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC6" class="blob-code blob-code-inner js-file-line">Hashtable jsonResult = (Hashtable)objResult;</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC7" class="blob-code blob-code-inner js-file-line">System.Diagnostics.Debug.WriteLine(&quot;User ID: &quot;</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC8" class="blob-code blob-code-inner js-file-line">+ jsonResult[&quot;from_user_id&quot;].ToString());</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC9" class="blob-code blob-code-inner js-file-line">System.Diagnostics.Debug.WriteLine(&quot;Tweet text: &quot;</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC10" class="blob-code blob-code-inner js-file-line">+ jsonResult[&quot;text&quot;].ToString());</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC11" class="blob-code blob-code-inner js-file-line">System.Diagnostics.Debug.WriteLine(&quot;Tweet date: &quot;</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC12" class="blob-code blob-code-inner js-file-line">+ jsonResult[&quot;created_at&quot;].ToString());</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC13" class="blob-code blob-code-inner js-file-line">System.Diagnostics.Debug.WriteLine(&quot;User name: &quot;</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC14" class="blob-code blob-code-inner js-file-line">+ jsonResult[&quot;from_user&quot;].ToString());</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC15" class="blob-code blob-code-inner js-file-line">System.Diagnostics.Debug.WriteLine(&quot;Language: &quot;</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC16" class="blob-code blob-code-inner js-file-line">+ jsonResult[&quot;iso_language_code&quot;].ToString())</td>
        </tr>
        <tr>
          <td id="file-oauthtwitterprocessresultsdemo-cs-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-oauthtwitterprocessresultsdemo-cs-LC17" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/1f4fd41825efacbeeded/raw/232dce5e800cb6e732178dbe18ef026122697f7d/OAuthTwitterProcessResultsDemo.cs" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/1f4fd41825efacbeeded#file-oauthtwitterprocessresultsdemo-cs" class="Link--inTextBlock">
          OAuthTwitterProcessResultsDemo.cs
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>
</p>
<p>You can download the complete source code along with oauth and JSON parser implementations from <a href="https://sites.google.com/site/coderbuddy/myReserach.zip?attredirects=0&amp;d=1">https://sites.google.com/site/coderbuddy/myReserach.zip?attredirects=0&amp;d=1</a></p>
<p>You may need to make some modifications to the code like providing the consumer key and consumer secret before working with the code</p>
]]></content:encoded>
					
					<wfw:commentRss>https://coderbuddy.wordpress.com/2010/08/28/oauth-twitter-search-in-c/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/e06636b4a6007decb142d5c7d271e5e3e4853c59dd3d89d12945046ed84912ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chowdary</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple way to create a barcode generator</title>
		<link>https://coderbuddy.wordpress.com/2010/06/14/simple-way-to-create-a-barcode-generator/</link>
					<comments>https://coderbuddy.wordpress.com/2010/06/14/simple-way-to-create-a-barcode-generator/#comments</comments>
		
		<dc:creator><![CDATA[vkbandi]]></dc:creator>
		<pubDate>Mon, 14 Jun 2010 13:26:20 +0000</pubDate>
				<category><![CDATA[C#.net]]></category>
		<guid isPermaLink="false">http://coderbuddy.wordpress.com/?p=60</guid>

					<description><![CDATA[Go to http://www.codeproject.com/KB/cpp/wsbarcode.aspx to know how to create a simple barcode generator]]></description>
										<content:encoded><![CDATA[<p>I was searching for some source code to create an OCR reader in C#.net and luckily found this amazing article on codeproject, I don&#8217;t want to even try rewriting the article as it was such superbly written, If you are looking for an easiest way to create a barcode generator in C#.net, goto <a title="C# Barcode Generator WebService" href="http://www.codeproject.com/KB/cpp/wsbarcode.aspx">http://www.codeproject.com/KB/cpp/wsbarcode.aspx</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://coderbuddy.wordpress.com/2010/06/14/simple-way-to-create-a-barcode-generator/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/e06636b4a6007decb142d5c7d271e5e3e4853c59dd3d89d12945046ed84912ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chowdary</media:title>
		</media:content>
	</item>
		<item>
		<title>C# class to check for internet Connection</title>
		<link>https://coderbuddy.wordpress.com/2009/11/22/c-class-to-check-for-internet-connection/</link>
					<comments>https://coderbuddy.wordpress.com/2009/11/22/c-class-to-check-for-internet-connection/#comments</comments>
		
		<dc:creator><![CDATA[vkbandi]]></dc:creator>
		<pubDate>Sun, 22 Nov 2009 15:59:00 +0000</pubDate>
				<category><![CDATA[C#.net]]></category>
		<category><![CDATA[C# class to check if internet is connected]]></category>
		<category><![CDATA[C# code to check if internet is connected]]></category>
		<guid isPermaLink="false">http://coderbuddy.wordpress.com/?p=49</guid>

					<description><![CDATA[A Simple C# class to check if the system is connected to the internet or not]]></description>
										<content:encoded><![CDATA[<p>I found this piece of code on the internet, the author of this code is <a href="http://www.tameroz.com/en/blog/7a6e048b-6612-4bfe-9542-27046e7ce70d.aspx">Tamer Oz</a>.</p>
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist26421765" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-checkinternetconnection-cs" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-c  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="CheckInternetConnection.cs content, created by vkbandi on 08:22PM on September 16, 2015."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="CheckInternetConnection.cs">
        <tr>
          <td id="file-checkinternetconnection-cs-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-checkinternetconnection-cs-LC1" class="blob-code blob-code-inner js-file-line">using System;</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-checkinternetconnection-cs-LC2" class="blob-code blob-code-inner js-file-line">using System.Collections.Generic;</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-checkinternetconnection-cs-LC3" class="blob-code blob-code-inner js-file-line">using System.Text;</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-checkinternetconnection-cs-LC4" class="blob-code blob-code-inner js-file-line">using System.Runtime.InteropServices;</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-checkinternetconnection-cs-LC5" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-checkinternetconnection-cs-LC6" class="blob-code blob-code-inner js-file-line">namespace Coderbuddy</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-checkinternetconnection-cs-LC7" class="blob-code blob-code-inner js-file-line">{</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-checkinternetconnection-cs-LC8" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-checkinternetconnection-cs-LC9" class="blob-code blob-code-inner js-file-line">public class CheckInternetConnection</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-checkinternetconnection-cs-LC10" class="blob-code blob-code-inner js-file-line">{</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-checkinternetconnection-cs-LC11" class="blob-code blob-code-inner js-file-line">[DllImport(&quot;wininet.dll&quot;)]</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-checkinternetconnection-cs-LC12" class="blob-code blob-code-inner js-file-line">private extern static bool InternetGetConnectedState(out int Description, int ReservedValue);</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-checkinternetconnection-cs-LC13" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-checkinternetconnection-cs-LC14" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-checkinternetconnection-cs-LC15" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-checkinternetconnection-cs-LC16" class="blob-code blob-code-inner js-file-line">public bool IsInternetConnectionAvailable()</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-checkinternetconnection-cs-LC17" class="blob-code blob-code-inner js-file-line">{</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L18" class="blob-num js-line-number js-blob-rnum" data-line-number="18"></td>
          <td id="file-checkinternetconnection-cs-LC18" class="blob-code blob-code-inner js-file-line">int Desc;</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L19" class="blob-num js-line-number js-blob-rnum" data-line-number="19"></td>
          <td id="file-checkinternetconnection-cs-LC19" class="blob-code blob-code-inner js-file-line">return InternetGetConnectedState(out Desc, 0);</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L20" class="blob-num js-line-number js-blob-rnum" data-line-number="20"></td>
          <td id="file-checkinternetconnection-cs-LC20" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L21" class="blob-num js-line-number js-blob-rnum" data-line-number="21"></td>
          <td id="file-checkinternetconnection-cs-LC21" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
        <tr>
          <td id="file-checkinternetconnection-cs-L22" class="blob-num js-line-number js-blob-rnum" data-line-number="22"></td>
          <td id="file-checkinternetconnection-cs-LC22" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/vkbandi/3b8d654cfec70513f861/raw/d9b553433cb042ff79a01243b990c06639d5d9e1/CheckInternetConnection.cs" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/vkbandi/3b8d654cfec70513f861#file-checkinternetconnection-cs" class="Link--inTextBlock">
          CheckInternetConnection.cs
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>

<p><a style="display:none;" href="https://coderbuddy.wordpress.com" rel="tag">CodeProject</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://coderbuddy.wordpress.com/2009/11/22/c-class-to-check-for-internet-connection/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/e06636b4a6007decb142d5c7d271e5e3e4853c59dd3d89d12945046ed84912ba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chowdary</media:title>
		</media:content>
	</item>
	</channel>
</rss>
