<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Extension Method.NET</title>
    <link>http://www.extensionmethod.net/</link>
    <description>Last 25 submitted Extension Methods</description>
    <language>en-us</language>
    <atom:link href="http://www.extensionmethod.net/Rss.aspx" rel="self" type="application/rss+xml" />
    <item>
      <title><![CDATA[TimeElapsed]]></title>
      <dc:creator>jlafay</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=327</link>
      <pubDate>Fri, 03 Sep 2010 17:44:00 +0200</pubDate>
      <category>System.DateTime</category>
      <description>Inspiration for this extension method was another DateTime extension that determines difference in current time and a DateTime object. That one returned a string and it is more useful for my applications to have a TimeSpan reference instead. That is what I did with this extension method.</description>
      <guid isPermaLink="false">6e1f1665-be4d-4a81-a0b9-81eb1f886714</guid>
    </item>
    <item>
      <title><![CDATA[LengthOfTime]]></title>
      <dc:creator>Sanction10</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=326</link>
      <pubDate>Thu, 02 Sep 2010 14:09:44 +0200</pubDate>
      <category>System.DateTime</category>
      <description>return the length of time between the start and current date</description>
      <guid isPermaLink="false">e85e78d3-6933-44ea-a1d8-3d58d51c1627</guid>
    </item>
    <item>
      <title><![CDATA[GetPropertyValue]]></title>
      <dc:creator>Sanction10</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=325</link>
      <pubDate>Thu, 02 Sep 2010 14:00:10 +0200</pubDate>
      <category>System.Type</category>
      <description>Gets the value of a property in a object through relection</description>
      <guid isPermaLink="false">8908d3a5-7c53-4c61-b34a-d6b6ed9852f8</guid>
    </item>
    <item>
      <title><![CDATA[IsMatch]]></title>
      <dc:creator>jdoe</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=324</link>
      <pubDate>Tue, 31 Aug 2010 22:26:34 +0200</pubDate>
      <category>System.Object</category>
      <description>Matches yourFace to myButt</description>
      <guid isPermaLink="false">3426a60a-f87c-4b76-bcae-a972df52d352</guid>
    </item>
    <item>
      <title><![CDATA[ThisWeekFriday]]></title>
      <dc:creator>Charles Cherry</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=323</link>
      <pubDate>Tue, 31 Aug 2010 22:21:36 +0200</pubDate>
      <category>System.DateTime</category>
      <description>Returns a DateTime representing the Friday of the current week.

Depends on System.Globalization.</description>
      <guid isPermaLink="false">1de08a9f-09c6-472f-ad14-75ad012ab617</guid>
    </item>
    <item>
      <title><![CDATA[ThisWeekMonday]]></title>
      <dc:creator>Charles Cherry</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=322</link>
      <pubDate>Tue, 31 Aug 2010 22:19:23 +0200</pubDate>
      <category>System.DateTime</category>
      <description>Returns a DateTime representing the Monday of the current week.

Depends on System.Globalization</description>
      <guid isPermaLink="false">9ca85771-8be0-45a8-b169-2222693490e1</guid>
    </item>
    <item>
      <title><![CDATA[ContainsAll]]></title>
      <dc:creator>Jim</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=321</link>
      <pubDate>Sun, 29 Aug 2010 07:57:11 +0200</pubDate>
      <category>System.String</category>
      <description>Check if the string contains all the elements in the array.</description>
      <guid isPermaLink="false">380abe89-600a-4d95-9472-f8af760cf66b</guid>
    </item>
    <item>
      <title><![CDATA[DrawAndFillRoundedRectangle]]></title>
      <dc:creator>Mattia Belletti</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=320</link>
      <pubDate>Thu, 26 Aug 2010 11:03:10 +0200</pubDate>
      <category>System.Drawing.Graphics</category>
      <description>Draw and fill a rectangle with some (or all) the angles rounded.</description>
      <guid isPermaLink="false">449668e4-1494-41da-833c-f86eae72cab1</guid>
    </item>
    <item>
      <title><![CDATA[ConstrainToRange]]></title>
      <dc:creator>David Harris</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=319</link>
      <pubDate>Sat, 21 Aug 2010 01:12:09 +0200</pubDate>
      <category>System.IComparable&amp;lt;T&amp;gt;</category>
      <description>Many times you may wish to impose boundaries on what a certain variable can be. This is especially useful for validating user input. For any comparable, it simply returns the value, truncated by a minimum or maximum</description>
      <guid isPermaLink="false">1c875fbb-c052-4559-9f76-f10f457c8826</guid>
    </item>
    <item>
      <title><![CDATA[EnqueueWithCapacity]]></title>
      <dc:creator>David Harris</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=318</link>
      <pubDate>Sat, 21 Aug 2010 01:02:41 +0200</pubDate>
      <category>System.Collections.Generic.Queue&amp;lt;T&amp;gt;</category>
      <description>Sometimes you may need a Queue&amp;lt;T&amp;gt; that, once it hits a capacity, dequeues items automatically to maintain a certain maximum. While it may be best to derive a new type from Queue&amp;lt;T&amp;gt;, this will get it done much more quickly. This is very useful for maintaining a rolling average or a &amp;quot;history&amp;quot; feature.</description>
      <guid isPermaLink="false">469d8244-1ab7-47f5-9dca-a2fd5984ee39</guid>
    </item>
    <item>
      <title><![CDATA[SafeInvoke]]></title>
      <dc:creator>David Harris</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=317</link>
      <pubDate>Sat, 21 Aug 2010 00:53:12 +0200</pubDate>
      <category>System.Control</category>
      <description>Properly invokes an action if it is required. Best way to handle events and threaded operations on a form.</description>
      <guid isPermaLink="false">02a56a8c-5115-4995-bb21-b75b6d50ed52</guid>
    </item>
    <item>
      <title><![CDATA[RemoveCssClass]]></title>
      <dc:creator>Kristof Claes</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=316</link>
      <pubDate>Wed, 11 Aug 2010 07:57:32 +0200</pubDate>
      <category>System.Web.UI.WebControls</category>
      <description>Removes a css class from the webcontrol. Let's say you have a webcontrol (a label for example) with more than one css class: &amp;quot;defaultClass loggedIn&amp;quot;. With the RemoveCssClass extension method, you can easily remove one of them.</description>
      <guid isPermaLink="false">46bd56f1-6edb-4284-9dfb-a03597f48c34</guid>
    </item>
    <item>
      <title><![CDATA[AddCssClass]]></title>
      <dc:creator>Kristof Claes</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=315</link>
      <pubDate>Wed, 11 Aug 2010 07:52:27 +0200</pubDate>
      <category>System.Web.UI.WebControls</category>
      <description>Adds a css class to the webcontrol. Instead of having to pass one string to the CssClass property, you can add them one by one with the AddCssClass extension method.

This can come in handy when a webcontrol has a default class (from the ASP.NET markup) and then needs additional classes based on a condition (like whether or not a user is logged in).</description>
      <guid isPermaLink="false">74df391f-7c32-468d-aeb5-722cc3f239d5</guid>
    </item>
    <item>
      <title><![CDATA[GetParentProcessID]]></title>
      <dc:creator>Massimo Bonanni</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=314</link>
      <pubDate>Thu, 05 Aug 2010 14:43:20 +0200</pubDate>
      <category>System.Diagnostic.Process</category>
      <description>The method extends the Process class to retrieve (if possible) the id of the parent process. The method uses P/Invoke to access the system data. It uses API in kenrnel32.dll (CreateToolhelp32Snapshot, Process32First, Process32Next).</description>
      <guid isPermaLink="false">4d60e288-b6df-40f6-941b-42b13ab46fa0</guid>
    </item>
    <item>
      <title><![CDATA[AddLeftIfDoesntExist]]></title>
      <dc:creator>Blake Pell</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=313</link>
      <pubDate>Tue, 27 Jul 2010 21:38:46 +0200</pubDate>
      <category>System.String</category>
      <description>Adds a value onto the beginning of a string if it does not already exist there.</description>
      <guid isPermaLink="false">9fb161f6-4417-4dd1-a4fd-67425c6210e6</guid>
    </item>
    <item>
      <title><![CDATA[AddRightIfDoesntExist]]></title>
      <dc:creator>Blake Pell</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=312</link>
      <pubDate>Tue, 27 Jul 2010 21:36:56 +0200</pubDate>
      <category>System.String</category>
      <description>Adds a value onto the end of the string if it does not already exist there.</description>
      <guid isPermaLink="false">3bbf01b6-6740-45d6-9b01-269fc5eca630</guid>
    </item>
    <item>
      <title><![CDATA[FindControlByType]]></title>
      <dc:creator>Ryan Helms</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=311</link>
      <pubDate>Sun, 18 Jul 2010 00:08:29 +0200</pubDate>
      <category>System.Control</category>
      <description>Used in conjunction with GetChildren(), it will return a T from a list of children of a control. If you are looking to return a list of T, use FindControlsByType() at http://www.extensionmethod.net/Details.aspx?ID=310

Get Children is located at:
http://www.extensionmethod.net/Details.aspx?ID=309</description>
      <guid isPermaLink="false">a067385e-117d-46a4-9eba-9bc125220f23</guid>
    </item>
    <item>
      <title><![CDATA[FindControlsByType]]></title>
      <dc:creator>Ryan Helms</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=310</link>
      <pubDate>Sun, 18 Jul 2010 00:02:26 +0200</pubDate>
      <category>System.Control</category>
      <description>Used in conjunction with GetChildren(), it will return a list of T from a list of children of a control.

Get Children is located at:
http://www.extensionmethod.net/Details.aspx?ID=309</description>
      <guid isPermaLink="false">2d7cde87-b85a-4598-9345-2ef6899abb5a</guid>
    </item>
    <item>
      <title><![CDATA[GetChildren]]></title>
      <dc:creator>Ryan Helms</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=309</link>
      <pubDate>Sat, 17 Jul 2010 20:04:12 +0200</pubDate>
      <category>System.Control</category>
      <description>This is a recursive function to get all child controls under the target control.</description>
      <guid isPermaLink="false">f408bba5-4d0b-4ca9-90e9-5fb71660dd40</guid>
    </item>
    <item>
      <title><![CDATA[SetLiteralText]]></title>
      <dc:creator>Timmy Kokke</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=308</link>
      <pubDate>Fri, 16 Jul 2010 11:03:21 +0200</pubDate>
      <category>System.Web.UI.WebControls.ListViewItem</category>
      <description>Often you have to set the text of lots of literal when databinding a ListView control in ASP.Net. This method lets you write that in one line.</description>
      <guid isPermaLink="false">a9440e0c-c96e-46f3-b7fd-5c4a3dccfc16</guid>
    </item>
    <item>
      <title><![CDATA[As]]></title>
      <dc:creator>Shimmy Weitzhandler</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=307</link>
      <pubDate>Mon, 12 Jul 2010 12:41:42 +0200</pubDate>
      <category>System.Object</category>
      <description>A wrapper for DirectCast function.</description>
      <guid isPermaLink="false">23c3b687-d719-4502-9c2f-29121efefdc4</guid>
    </item>
    <item>
      <title><![CDATA[Deserialize<T>]]></title>
      <dc:creator>asawyer</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=306</link>
      <pubDate>Thu, 08 Jul 2010 16:12:18 +0200</pubDate>
      <category>System.Xml.Linq.XDocument</category>
      <description>Deserialize an XDocument to a generic type</description>
      <guid isPermaLink="false">02de7f02-fe66-4273-9c5e-aaa4ad744b7c</guid>
    </item>
    <item>
      <title><![CDATA[SerializeToXml]]></title>
      <dc:creator>asawyer</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=305</link>
      <pubDate>Thu, 08 Jul 2010 16:10:17 +0200</pubDate>
      <category>System.Object</category>
      <description>Serializes objects to an xml string.

(Does not provide error handling if the object is not serializable.)</description>
      <guid isPermaLink="false">5579a9c3-a71b-4b56-962b-76652be207b8</guid>
    </item>
    <item>
      <title><![CDATA[IsInterval]]></title>
      <dc:creator>Blake Pell</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=304</link>
      <pubDate>Wed, 07 Jul 2010 21:28:11 +0200</pubDate>
      <category>System.Integer</category>
      <description>Determines if the Integer is of the specified interval.  E.g. if the interval is 100 and the integer is 400, it would return true.  127 would return false.

This function uses the Mod operator, for the above example: (300 Mod 100 = 0)</description>
      <guid isPermaLink="false">5d2d9f64-a9aa-4518-97d4-23119c6cf961</guid>
    </item>
    <item>
      <title><![CDATA[Randomize]]></title>
      <dc:creator>Joe</dc:creator>
      <link>http://www.extensionmethod.net/Details.aspx?ID=303</link>
      <pubDate>Sat, 03 Jul 2010 04:02:45 +0200</pubDate>
      <category>System.Collections.Generic.IEnumerable&amp;lt;T&amp;gt;</category>
      <description>Randomizes am IEnumerable&amp;lt;T&amp;gt;</description>
      <guid isPermaLink="false">ebe15ec0-8e5e-43b5-968f-243830423a47</guid>
    </item>
  </channel>
</rss>