<?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 on: TimeRange object for C#</title>
	<atom:link href="http://www.webdevbros.net/2007/08/24/timerange-object-for-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevbros.net/2007/08/24/timerange-object-for-c/</link>
	<description>hot talk about web development</description>
	<lastBuildDate>Tue, 10 May 2011 13:11:20 +0200</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Martin Marconcini</title>
		<link>http://www.webdevbros.net/2007/08/24/timerange-object-for-c/#comment-9675</link>
		<dc:creator>Martin Marconcini</dc:creator>
		<pubDate>Tue, 10 Mar 2009 11:39:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/08/24/timerange-object-for-c/#comment-9675</guid>
		<description>Hi,

Thanks for the class, I&#039;ve added the following code:

[asp]
        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
[/asp]

Visual Studio 2008 + .NET 3.5 was complaining that you overrode the == and != operators without overriding that method. Maybe you might need something more complex there, for me was enough.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the class, I've added the following code:</p>
<div class="igBar"><span id="lasp-1"><a href="#" onclick="javascript:showCodeTxt('asp-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ASP:</span>
<div id="asp-1">
<div class="asp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#990099; font-weight:bold;">public</span> override <span style="color:#990099; font-weight:bold;">int</span> GetHashCode<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return base.<span style="color:#9900CC;">GetHashCode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Visual Studio 2008 + .NET 3.5 was complaining that you overrode the == and != operators without overriding that method. Maybe you might need something more complex there, for me was enough.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stonie</title>
		<link>http://www.webdevbros.net/2007/08/24/timerange-object-for-c/#comment-1374</link>
		<dc:creator>Stonie</dc:creator>
		<pubDate>Thu, 06 Dec 2007 02:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/08/24/timerange-object-for-c/#comment-1374</guid>
		<description>Thanks for the code, I found it usefull.

another example of use might be checking if the current time falls in a range:

        static void Main(string[] args)
        {
            TimeRange timeRange = new TimeRange();
            timeRange = TimeRange.Parse(&quot;13:00-14:00&quot;);

            bool IsNowInTheRange = timeRange.IsIn(DateTime.Now.TimeOfDay);
            Console.Write(IsNowInTheRange);

            Console.ReadLine();
        }


Cheers,
Stonie</description>
		<content:encoded><![CDATA[<p>Thanks for the code, I found it usefull.</p>
<p>another example of use might be checking if the current time falls in a range:</p>
<p>        static void Main(string[] args)<br />
        {<br />
            TimeRange timeRange = new TimeRange();<br />
            timeRange = TimeRange.Parse("13:00-14:00");</p>
<p>            bool IsNowInTheRange = timeRange.IsIn(DateTime.Now.TimeOfDay);<br />
            Console.Write(IsNowInTheRange);</p>
<p>            Console.ReadLine();<br />
        }</p>
<p>Cheers,<br />
Stonie</p>
]]></content:encoded>
	</item>
</channel>
</rss>

