<?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/"
	>

<channel>
	<title>Jay R. Wren - lazy dawg evarlast &#187; Unlicense</title>
	<atom:link href="http://jrwren.wrenfam.com/blog/tag/unlicense/feed/" rel="self" type="application/rss+xml" />
	<link>http://jrwren.wrenfam.com/blog</link>
	<description>babblings of a computer loving fool</description>
	<lastBuildDate>Wed, 01 Feb 2012 19:08:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>I&#8217;m Lazy And I Need My Helpers</title>
		<link>http://jrwren.wrenfam.com/blog/2010/01/07/im-lazy-and-i-need-my-helpers/</link>
		<comments>http://jrwren.wrenfam.com/blog/2010/01/07/im-lazy-and-i-need-my-helpers/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 02:27:48 +0000</pubDate>
		<dc:creator>jrwren</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[CC0]]></category>
		<category><![CDATA[Unlicense]]></category>
		<category><![CDATA[WTFPL]]></category>

		<guid isPermaLink="false">http://jrwren.wrenfam.com/blog/?p=915</guid>
		<description><![CDATA[public static class NumericExtensions { public static bool IsZero(this byte number) { return 0==number; } public static bool IsZero(this short number) { return 0==number; } public static bool IsZero(this int number) { return 0==number; } public static bool IsZero(this long &#8230; <a href="http://jrwren.wrenfam.com/blog/2010/01/07/im-lazy-and-i-need-my-helpers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>public static class NumericExtensions<br />
{<br />
public static bool IsZero(this byte number)<br />
{<br />
return 0==number;<br />
}<br />
public static bool IsZero(this short number)<br />
{<br />
return 0==number;<br />
}<br />
public static bool IsZero(this int number)<br />
{<br />
return 0==number;<br />
}<br />
public static bool IsZero(this long number)<br />
{<br />
return 0==number;<br />
}<br />
public static bool IsZero(this float number)<br />
{<br />
return 0==number;<br />
}<br />
public static bool IsZero(this double number)<br />
{<br />
return 0==number;<br />
}<br />
public static bool IsZero(this decimal number)<br />
{<br />
return 0==number;<br />
}<br />
}</p>
<p>I wanted something like this today as I was toggling between NUnit and MSTest. Sure, Assert.That( something, Is(0) ) is readable, but its not portable. Its NUnit only, and for this project, I can&#8217;t do that. I also like the english reading of IsZero() vs. Is(0)</p>
<p>I think I&#8217;ve stated before that any code on this blog (c) by me and licensed under the MIT/X11 License, but for certain bits of code, I see no point in that. So I&#8217;m going to start tagging code with <a href="http://creativecommons.org/publicdomain/zero/1.0/">CC0</a>, <a href="http://unlicense.org/">Unlicense</a> and/or <a href="http://sam.zoy.org/wtfpl/">WTFPL</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jrwren.wrenfam.com/blog/2010/01/07/im-lazy-and-i-need-my-helpers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

