<?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>Infinity &#187; .NET</title>
	<atom:link href="http://blog.cyragon.com/category/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cyragon.com</link>
	<description>where it all begins</description>
	<lastBuildDate>Fri, 11 Feb 2011 20:26:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>C# vs Java: casting objects and calling members</title>
		<link>http://blog.cyragon.com/2011/02/c-vs-java-casting-objects-and-calling-members/</link>
		<comments>http://blog.cyragon.com/2011/02/c-vs-java-casting-objects-and-calling-members/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 20:24:00 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://blog.cyragon.com/?p=210</guid>
		<description><![CDATA[Given these two functionally identical code samples in c# and java, what is the output? C#: public class A { &#160;&#160;public String Method() &#160;&#160;{ &#160;&#160;&#160;&#160;return &#34;this is A&#34;; &#160;&#160;} } public class B : A { &#160;&#160;public String Method() &#160;&#160;{ &#160;&#160;&#160;&#160;return &#34;this is B&#34;; &#160;&#160;} } A thisA = new B(); thisA.Method(); Java: public class [...]]]></description>
			<content:encoded><![CDATA[<p>Given these two functionally identical code samples in c# and java, what is the output?</p>
<p>C#:<br />
<pre><code>public class A
{
&nbsp;&nbsp;public String Method()
&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;return &quot;this is A&quot;;
&nbsp;&nbsp;}
}

public class B : A
{
&nbsp;&nbsp;public String Method()
&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;return &quot;this is B&quot;;
&nbsp;&nbsp;}
}

A thisA = new B();

thisA.Method();</code></pre></p>
<p>Java:<br />
<pre><code>public class A
{
&nbsp;&nbsp;public String Method()
&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;return &quot;this is A&quot;;
&nbsp;&nbsp;}
}

public class B extends A
{
&nbsp;&nbsp;public String Method()
&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;return &quot;this is B&quot;;
&nbsp;&nbsp;}
}

A thisA = new B();

thisA.Method();</code></pre></p>
<p>What does thisA.Method() return? </p>
<p>It turns out that there are two different answers to this. In .NET/C# it returns from A (&#8220;this is A&#8221;). In Java, it returns from B (&#8220;this is B&#8221;). </p>
<p>So far it appears that this is a type issue; new B() must be getting cast back to A in C#. Looking for some documentation on this specifically. Links anyone?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cyragon.com/2011/02/c-vs-java-casting-objects-and-calling-members/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Red Gate Reflector: end of the free version</title>
		<link>http://blog.cyragon.com/2011/02/red-gate-reflector-end-of-the-free-version/</link>
		<comments>http://blog.cyragon.com/2011/02/red-gate-reflector-end-of-the-free-version/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 19:41:25 +0000</pubDate>
		<dc:creator>Ben Farmer</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[Not-Free]]></category>
		<category><![CDATA[Red Gate]]></category>
		<category><![CDATA[Reflector]]></category>

		<guid isPermaLink="false">http://blog.cyragon.com/?p=204</guid>
		<description><![CDATA[Red Gate announced today that they will stop offering a free version of Reflector. You can read the details over at Red Gate&#8217;s site. No big deal, right? You can just get the current copy or an old copy and be good. Surely Lutz Roeder has a copy stored somewhere on the internet. Yeah, sure, [...]]]></description>
			<content:encoded><![CDATA[<p>Red Gate announced today that they will stop offering a <a href="http://www.red-gate.com/products/dotnet-development/reflector/">free version of Reflector</a>. <a href="http://www.red-gate.com/products/dotnet-development/reflector/announcement">You can read the details over at Red Gate&#8217;s site</a>.</p>
<p>No big deal, right? You can just get the current copy or an old copy and be good. Surely <a href="http://blog.lutzroeder.com">Lutz Roeder</a> has a copy stored somewhere on the internet. Yeah, sure, only it won&#8217;t work.</p>
<p>All version of Reflector (both Lutz&#8217;s and Red Gate&#8217;s) have a little &#8220;feature&#8221; that causes Reflector to <a href="http://www.zdnet.com/blog/burnette/red-gate-we-could-not-make-the-free-model-work-for-us-as-a-commercial-company/2176?pg=2&#038;tag=mantle_skin;content">stop working after 6 months</a>. This time bomb has always been a part of Reflector and forced you to update to the latest version.</p>
<p>Surely Red Gate would release a version of Reflector that doesn&#8217;t expire and won&#8217;t stop working in 6 months, right? Wrong. In 6 months the only way to use Reflector will be to pay up. Too bad you can&#8217;t use Reflector on Reflector.</p>
<p>Oh, and never mind <a href="http://www.simple-talk.com/opinion/opinion-pieces/the-future-of-reflector-/">Red Gate&#8217;s promise to keep it free and for the &#8220;community&#8221;</a>, as they said back in 2008 when they acquired it from Lutz. They sure proved the anticipated &#8220;scepticism&#8221; wrong didn&#8217;t they!</p>
<p>But why not just release a one-time, non-expiring version of Reflector prior to making it pay-only? Is that too costly? </p>
<p>When I first read the news, I hit up the blogs and I have to say that I&#8217;m a little surprised at the number of devs that jumped on this and defended Red Gate without even looking into the facts. It&#8217;s almost like they are on the take from Red Gate. </p>
<p>The price isn&#8217;t terrible, but doesn&#8217;t sound like a great value either; as it&#8217;s basically the current version snapshot minus the time bomb. Next version? Pony up again cowboy. At $35 it&#8217;s not even close to a no-brian buy. Oh, and don&#8217;t remind me about <a href="http://eon.businesswire.com/news/eon/20110202005984/en/Red-Gate-charge-35-.NET-Reflector">the rising price of gas</a>.</p>
<p><strong>UPDATE</strong>: <a href="http://blogs.jetbrains.com/dotnet/2011/02/reflections-on-recent-news/">JetBrains, what a tease</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cyragon.com/2011/02/red-gate-reflector-end-of-the-free-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Our latest project: Live Election Results for 2010!</title>
		<link>http://blog.cyragon.com/2010/11/our-latest-project-live-election-results-for-2010/</link>
		<comments>http://blog.cyragon.com/2010/11/our-latest-project-live-election-results-for-2010/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 01:39:08 +0000</pubDate>
		<dc:creator>Ben Farmer</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Agile]]></category>
		<category><![CDATA[Announcement]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Election 2010]]></category>
		<category><![CDATA[Live Election Results]]></category>

		<guid isPermaLink="false">http://blog.cyragon.com/?p=193</guid>
		<description><![CDATA[That&#8217;s right, our latest project turned into a pretty big effort; live election results for the entire US! We&#8217;re allowing you to customize which races you want to watch in real-time. The idea for this project started back in August of 2010 as a simple site to show some local live election results for one [...]]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s right, our latest project turned into a pretty big effort; <a href="http://liveelectionresults2010.com">live election results</a> for the entire US! We&#8217;re allowing you to customize which races you want to watch in real-time. </p>
<p>The idea for this project started back in August of 2010 as a simple site to show some local live election results for one county. It was a quick and simple application that worked really well. </p>
<p>In October, we started working on some improvements and decided to expand the scope of the results to cover all U.S. Senate, U.S. House races, and as many states as we could before November 2nd. Oh, and we redesigned the Silverlight UI and added a ton of functionality. </p>
<p>On top of that, the project now includes a mobile web version for the iPhone, Android, and Blackberry devices. And a custom Windows Phone 7 client application with some really advanced features. Not to mention a ton of new really smart high-availability back-end data services.  </p>
<p>So, yeah, lots of work and not much sleep. But it&#8217;s really awesome and we&#8217;re very happy with it. Check it out: <a href="http://liveelectionresults2010.com">Live Election Results for November 2nd 2010</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cyragon.com/2010/11/our-latest-project-live-election-results-for-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coping contents of Template Column in data grid to clipboard</title>
		<link>http://blog.cyragon.com/2010/08/coping-contents-of-template-column-in-data-grid-to-clipboard/</link>
		<comments>http://blog.cyragon.com/2010/08/coping-contents-of-template-column-in-data-grid-to-clipboard/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 21:12:25 +0000</pubDate>
		<dc:creator>Ben Farmer</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://blog.cyragon.com/?p=187</guid>
		<description><![CDATA[There are some nice new features (coming from Silverlight 2) in the latest versions of Silverlight &#8211; being able to copy rows in a DataGrid via the familiar Control+C for instance. But I noticed something strange: some columns were blank when I pasted them into Excel (or notepad). The blank columns were always DataGridTemplateColumn and [...]]]></description>
			<content:encoded><![CDATA[<p>There are some nice new features (coming from Silverlight 2) in the latest versions of Silverlight &#8211; being able to copy rows in a DataGrid via the familiar Control+C for instance. </p>
<p>But I noticed something strange: some columns were blank when I pasted them into Excel (or notepad). The blank columns were always DataGridTemplateColumn and that made sense. How could it know what to copy from one or more controls? </p>
<p>Turns out this is really easy to fix if you are using data binding. All you have to do is bind the ClipboardContentBinding property on the DataGridTemplateColumn with the value you want copied for this column.</p>
<p>For example:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p187code2'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1872"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p187code2"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;data:DataGridTemplateColumn</span> <span style="color: #000066;">Header</span>=<span style="color: #ff0000;">&quot;Name&quot;</span> <span style="color: #000066;">ClipboardContentBinding</span>=<span style="color: #ff0000;">&quot;{Binding Name}&quot;</span> <span style="color: #000066;">SortMemberPath</span>=<span style="color: #ff0000;">&quot;Name&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;data:DataGridTemplateColumn.CellTemplate<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;DataTemplate<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;HyperlinkButton</span> <span style="color: #000066;">Content</span>=<span style="color: #ff0000;">&quot;{Binding Name}&quot;</span> <span style="color: #000066;">Margin</span>=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/DataTemplate<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/data:DataGridTemplateColumn.CellTemplate<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/data:DataGridTemplateColumn<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>And that&#8217;s it. Control+C copy works as desired.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cyragon.com/2010/08/coping-contents-of-template-column-in-data-grid-to-clipboard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CodeStock 2010: Chaos to Awesome</title>
		<link>http://blog.cyragon.com/2010/06/codestock-2010-chaos-to-awesome/</link>
		<comments>http://blog.cyragon.com/2010/06/codestock-2010-chaos-to-awesome/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 13:00:07 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Agile]]></category>
		<category><![CDATA[CodeStock]]></category>

		<guid isPermaLink="false">http://blog.cyragon.com/?p=183</guid>
		<description><![CDATA[We&#8217;ll be posting our notes and slidedeck a bit later, but here are some of the resources we talked about in the presentation. VisualSVN Server: http://www.visualsvn.com/server/ Ankh SVN (plugin for Visual Studio): http://ankhsvn.open.collab.net/ Hudson Continuous Integration: http://hudson-ci.org/ Fitnesse (.NET/SLiM): http://www.fitnesse.org/ and http://www.fitnesse.org/FitNesse.DotNet You can always message us on twitter @jwcarroll and @benfarmer.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ll be posting our notes and slidedeck a bit later, but here are some of the resources we talked about in the presentation.</p>
<p>VisualSVN Server: <a href="http://www.visualsvn.com/server/">http://www.visualsvn.com/server/</a><br />
Ankh SVN (plugin for Visual Studio): <a href="http://ankhsvn.open.collab.net/">http://ankhsvn.open.collab.net/</a></p>
<p>Hudson Continuous Integration: <a href="http://hudson-ci.org/">http://hudson-ci.org/</a></p>
<p>Fitnesse (.NET/SLiM): <a href="http://www.fitnesse.org">http://www.fitnesse.org/</a> and <a href="http://www.fitnesse.org/FitNesse.DotNet">http://www.fitnesse.org/FitNesse.DotNet</a></p>
<p>You can always message us on twitter <a href="http://twitter.com/jwcarroll">@jwcarroll</a> and <a href="http://twitter.com/benfarmer">@benfarmer</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cyragon.com/2010/06/codestock-2010-chaos-to-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
