<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for .NET Tips &amp; Tricks</title>
	<atom:link href="http://kossovsky.net/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://kossovsky.net</link>
	<description>C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks</description>
	<lastBuildDate>Mon, 22 Feb 2010 13:18:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on IE Memory Leak &#8211; jQuery Fix by Parag</title>
		<link>http://kossovsky.net/index.php/2009/07/ie-memory-leak-jquery-garbage-collector/comment-page-1/#comment-3330</link>
		<dc:creator>Parag</dc:creator>
		<pubDate>Mon, 22 Feb 2010 13:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=489#comment-3330</guid>
		<description>Has this issue been taken care of in jquery 1.4? ...something like a patch (similar to yours) to that effect</description>
		<content:encoded><![CDATA[<p>Has this issue been taken care of in jquery 1.4? &#8230;something like a patch (similar to yours) to that effect</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C# Protected Internal by Suresh</title>
		<link>http://kossovsky.net/index.php/2009/06/cshar-protected-internal/comment-page-1/#comment-3328</link>
		<dc:creator>Suresh</dc:creator>
		<pubDate>Mon, 22 Feb 2010 11:36:40 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=242#comment-3328</guid>
		<description>Both Protected and ProtectedInternal members can be accessed outside the assembly by 
inheriting the contained Class.  

internal - can be accessed with in the assembly anywhere by Inheriting/Creating instance.
protected - can be accessed only by Inheriting with in the Assembly/Outside the Assembly.
ProtectedInternal - can be accessed with in the assembly anywhere by Inherting/Creating   instance  AND accessed outside the assembly by only Inherting the Contained Class

so protectedInternal behaves like both protected or internal. 

Thanks 
Suresh Raj</description>
		<content:encoded><![CDATA[<p>Both Protected and ProtectedInternal members can be accessed outside the assembly by<br />
inheriting the contained Class.  </p>
<p>internal &#8211; can be accessed with in the assembly anywhere by Inheriting/Creating instance.<br />
protected &#8211; can be accessed only by Inheriting with in the Assembly/Outside the Assembly.<br />
ProtectedInternal &#8211; can be accessed with in the assembly anywhere by Inherting/Creating   instance  AND accessed outside the assembly by only Inherting the Contained Class</p>
<p>so protectedInternal behaves like both protected or internal. </p>
<p>Thanks<br />
Suresh Raj</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C# Set method timeout using Generics by nohorse</title>
		<link>http://kossovsky.net/index.php/2009/07/csharp-how-to-limit-method-execution-time/comment-page-1/#comment-3317</link>
		<dc:creator>nohorse</dc:creator>
		<pubDate>Fri, 19 Feb 2010 01:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=687#comment-3317</guid>
		<description>Don&#039;t forget to eventually cleanup the async call:

 private static T InvokeWithTimeout(Func operation)
    {
      T result = default(T);
      if (timeout == 0)
      {
        result = operation.Invoke();
      }
      else
      {
        var async = operation.BeginInvoke(AsyncCleanup,operation);
        if (async.AsyncWaitHandle.WaitOne(timeout))
        {
          result = operation.EndInvoke(async);
        }
      }
      return result;
    }

    private static void AsyncCleanup(IAsyncResult result)
    {
      var operation = result.AsyncState as Func;
      if (operation != null)
      {
        operation.EndInvoke(result);
      }
    }</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget to eventually cleanup the async call:</p>
<p> private static T InvokeWithTimeout(Func operation)<br />
    {<br />
      T result = default(T);<br />
      if (timeout == 0)<br />
      {<br />
        result = operation.Invoke();<br />
      }<br />
      else<br />
      {<br />
        var async = operation.BeginInvoke(AsyncCleanup,operation);<br />
        if (async.AsyncWaitHandle.WaitOne(timeout))<br />
        {<br />
          result = operation.EndInvoke(async);<br />
        }<br />
      }<br />
      return result;<br />
    }</p>
<p>    private static void AsyncCleanup(IAsyncResult result)<br />
    {<br />
      var operation = result.AsyncState as Func;<br />
      if (operation != null)<br />
      {<br />
        operation.EndInvoke(result);<br />
      }<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Image Resizing in C# by Radderz</title>
		<link>http://kossovsky.net/index.php/2009/06/image-resizing/comment-page-1/#comment-3283</link>
		<dc:creator>Radderz</dc:creator>
		<pubDate>Tue, 02 Feb 2010 13:48:43 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=5#comment-3283</guid>
		<description>This extender is really useful, thanks.

I&#039;ve been struggling with resizing and maintaining the image quality while using the .net framework, and nearly resorted to a library that was a bit overkill.

Glad I found this in time :)</description>
		<content:encoded><![CDATA[<p>This extender is really useful, thanks.</p>
<p>I&#8217;ve been struggling with resizing and maintaining the image quality while using the .net framework, and nearly resorted to a library that was a bit overkill.</p>
<p>Glad I found this in time <img src='http://kossovsky.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript boolean interpretation by SMiGL</title>
		<link>http://kossovsky.net/index.php/2009/07/javascript-boolean-interpretation/comment-page-1/#comment-2703</link>
		<dc:creator>SMiGL</dc:creator>
		<pubDate>Mon, 28 Dec 2009 12:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=613#comment-2703</guid>
		<description>Сheck the variable is always the equivalent of comparing a variable to null</description>
		<content:encoded><![CDATA[<p>Сheck the variable is always the equivalent of comparing a variable to null</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google in your house by Gooface</title>
		<link>http://kossovsky.net/index.php/2009/07/google-in-your-house/comment-page-1/#comment-2481</link>
		<dc:creator>Gooface</dc:creator>
		<pubDate>Fri, 04 Dec 2009 23:28:10 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=622#comment-2481</guid>
		<description>Microsoft is missing :P</description>
		<content:encoded><![CDATA[<p>Microsoft is missing <img src='http://kossovsky.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C# Protected Internal by Sathya</title>
		<link>http://kossovsky.net/index.php/2009/06/cshar-protected-internal/comment-page-1/#comment-2275</link>
		<dc:creator>Sathya</dc:creator>
		<pubDate>Thu, 26 Nov 2009 07:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=242#comment-2275</guid>
		<description>Good and simple explanation 

Thanks
Sathya</description>
		<content:encoded><![CDATA[<p>Good and simple explanation </p>
<p>Thanks<br />
Sathya</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C# Rectangle Packing by MisterQ</title>
		<link>http://kossovsky.net/index.php/2009/07/cshar-rectangle-packing/comment-page-1/#comment-1969</link>
		<dc:creator>MisterQ</dc:creator>
		<pubDate>Wed, 04 Nov 2009 21:02:31 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=414#comment-1969</guid>
		<description>Very nice!
I use your code to create spritesheets. Do you know if soritng the images by height/width or something like this improves the packrate ?</description>
		<content:encoded><![CDATA[<p>Very nice!<br />
I use your code to create spritesheets. Do you know if soritng the images by height/width or something like this improves the packrate ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C# Parsing HTML with HtmlAgilityPack by uberVU - social comments</title>
		<link>http://kossovsky.net/index.php/2009/07/csharp-html-parser-htmlagilitypack/comment-page-1/#comment-1968</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Wed, 04 Nov 2009 21:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=508#comment-1968</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by kossovskynet: New post: C# Parsing HTML with HtmlAgilityPack (http://cli.gs/Yu7SS)...</description>
		<content:encoded><![CDATA[<div style="color:#008200">
<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by kossovskynet: New post: C# Parsing HTML with HtmlAgilityPack (<a href="http://cli.gs/Yu7SS" rel="nofollow">http://cli.gs/Yu7SS</a>)&#8230;</p>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript function context, &#8220;apply&#8221; method and lost &#8220;this&#8221; object by M@</title>
		<link>http://kossovsky.net/index.php/2009/07/function-context-and-apply-function/comment-page-1/#comment-1963</link>
		<dc:creator>M@</dc:creator>
		<pubDate>Mon, 02 Nov 2009 22:35:15 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=519#comment-1963</guid>
		<description>This solution can be cleaned up even further by putting getContextFunc into function thusly:
Function.prototype.inContext = function(context){
  var func = this;
  return function(){
    return func.apply(context, arguments);
  };
};

So that when you want to call it you can simply say:
getRemoteCircumference: function(url) {  
          $.getJSON(url, this.getCircumference.inContext(this));  
       }</description>
		<content:encoded><![CDATA[<p>This solution can be cleaned up even further by putting getContextFunc into function thusly:<br />
Function.prototype.inContext = function(context){<br />
  var func = this;<br />
  return function(){<br />
    return func.apply(context, arguments);<br />
  };<br />
};</p>
<p>So that when you want to call it you can simply say:<br />
getRemoteCircumference: function(url) {<br />
          $.getJSON(url, this.getCircumference.inContext(this));<br />
       }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
