<?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: Late Binding of C# objects from NHibernate into the ASP.NET DataGrid control</title>
	<atom:link href="http://blog.headlondon.com/2006/04/26/late-binding-of-c-objects-from-nhibernate-into-the-aspnet-datagrid-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.headlondon.com/2006/04/26/late-binding-of-c-objects-from-nhibernate-into-the-aspnet-datagrid-control/</link>
	<description>Digital design agency, creative content, brand identity, web development, online marketing, application creation, integrated</description>
	<lastBuildDate>Wed, 29 Jun 2011 13:47:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Dave Hrycyszyn</title>
		<link>http://blog.headlondon.com/2006/04/26/late-binding-of-c-objects-from-nhibernate-into-the-aspnet-datagrid-control/comment-page-1/#comment-32</link>
		<dc:creator>Dave Hrycyszyn</dc:creator>
		<pubDate>Wed, 26 Apr 2006 14:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.headlondon.com/archives/late-binding-of-c-objects-from-nhibernate-into-the-aspnet-datagrid-control/#comment-32</guid>
		<description>Just as a note:  thinking about it some more, I really prefer this way of doing late binding to the loose-typing VB.NET way.  The reason is pretty simple - there is absolutely no way to screw it up, due to type safety.  In VB.NET, you could just say something like:

Option Strict Off

...and then proceed to access any property or method of the Article object (which is in fact just an object).  The trouble would be that if you blew it and forgot to implement, let&#039;s say, Title in one of your classes, you&#039;d get a runtime error when a user tried to access your code.  Using the IContent interface ensures that any class that implements IContent *must* have a Title, Id, etc.  So, even in VB.NET, this technique of casting to an interface is still the way to go.</description>
		<content:encoded><![CDATA[<p>Just as a note:  thinking about it some more, I really prefer this way of doing late binding to the loose-typing VB.NET way.  The reason is pretty simple &#8211; there is absolutely no way to screw it up, due to type safety.  In VB.NET, you could just say something like:</p>
<p>Option Strict Off</p>
<p>&#8230;and then proceed to access any property or method of the Article object (which is in fact just an object).  The trouble would be that if you blew it and forgot to implement, let&#8217;s say, Title in one of your classes, you&#8217;d get a runtime error when a user tried to access your code.  Using the IContent interface ensures that any class that implements IContent *must* have a Title, Id, etc.  So, even in VB.NET, this technique of casting to an interface is still the way to go.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

