<?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: Boo AstAttributes explained</title>
	<atom:link href="http://tore.vestues.no/2008/12/18/boo-astattributes-explained/feed/" rel="self" type="application/rss+xml" />
	<link>http://tore.vestues.no/2008/12/18/boo-astattributes-explained/</link>
	<description>On a quest for the silver bullet..</description>
	<lastBuildDate>Thu, 19 Aug 2010 21:43:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ashish Jain</title>
		<link>http://tore.vestues.no/2008/12/18/boo-astattributes-explained/comment-page-1/#comment-426</link>
		<dc:creator>Ashish Jain</dc:creator>
		<pubDate>Thu, 28 Jan 2010 10:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://tore.vestues.no/2008/12/18/boo-astattributes-explained/#comment-426</guid>
		<description>This example was awesome...
It seriously reflects the power BOO exposes.. 
Great Article..</description>
		<content:encoded><![CDATA[<p>This example was awesome&#8230;<br />
It seriously reflects the power BOO exposes..<br />
Great Article..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boris Bluntschli</title>
		<link>http://tore.vestues.no/2008/12/18/boo-astattributes-explained/comment-page-1/#comment-295</link>
		<dc:creator>Boris Bluntschli</dc:creator>
		<pubDate>Mon, 19 Jan 2009 16:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://tore.vestues.no/2008/12/18/boo-astattributes-explained/#comment-295</guid>
		<description>First of all, thanks for these great articles, Tore :)

One slight problem I had, was that the attribute currently does not seem to work when you also have pure getters in your class. To fix that, I added 

  return if property.Setter is null

to the beginning of &quot;AddNewBody&quot;.</description>
		<content:encoded><![CDATA[<p>First of all, thanks for these great articles, Tore <img src='http://vestues.no/tore/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>One slight problem I had, was that the attribute currently does not seem to work when you also have pure getters in your class. To fix that, I added </p>
<p>  return if property.Setter is null</p>
<p>to the beginning of &#8220;AddNewBody&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tore Vestues</title>
		<link>http://tore.vestues.no/2008/12/18/boo-astattributes-explained/comment-page-1/#comment-286</link>
		<dc:creator>Tore Vestues</dc:creator>
		<pubDate>Fri, 19 Dec 2008 10:00:52 +0000</pubDate>
		<guid isPermaLink="false">http://tore.vestues.no/2008/12/18/boo-astattributes-explained/#comment-286</guid>
		<description>@Jonas:

It is no problem to add additional logic in the getters and setters. What the NotifyPropertyChanged-attribute does is to add, at the end of each setter, the event notification. In the AddNewBody-method I first add the $OldBody to the new body, then add the event notification.

The PropertyChanged is available from your code since it is added compile time before your logic is resolved. You will not find it through intellisense, but this is more a tools-issue. In addition I will not recommend coding directly against the autogenerated (at compile time) PropertyChanged event. It will couple you too much to the attributes interal workings. That being said, I should probably have given the event a guarantied unique name (which you can easily do) so there won&#039;t be any confusion.</description>
		<content:encoded><![CDATA[<p>@Jonas:</p>
<p>It is no problem to add additional logic in the getters and setters. What the NotifyPropertyChanged-attribute does is to add, at the end of each setter, the event notification. In the AddNewBody-method I first add the $OldBody to the new body, then add the event notification.</p>
<p>The PropertyChanged is available from your code since it is added compile time before your logic is resolved. You will not find it through intellisense, but this is more a tools-issue. In addition I will not recommend coding directly against the autogenerated (at compile time) PropertyChanged event. It will couple you too much to the attributes interal workings. That being said, I should probably have given the event a guarantied unique name (which you can easily do) so there won&#8217;t be any confusion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas Follesø</title>
		<link>http://tore.vestues.no/2008/12/18/boo-astattributes-explained/comment-page-1/#comment-285</link>
		<dc:creator>Jonas Follesø</dc:creator>
		<pubDate>Fri, 19 Dec 2008 09:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://tore.vestues.no/2008/12/18/boo-astattributes-explained/#comment-285</guid>
		<description>Nice one Tore :) 

Would it be possible to add additional logic to some of the setters/getters of the properties, and still get the event notification?

Or - say you want to add a third property, like e-mail, where you want to do validation logic in the setter?

I guess what I&#039;m asking: In class BooCustomer, is the PropertyChanged event available implicitly because of the NotifyPropertyChanged attribute?</description>
		<content:encoded><![CDATA[<p>Nice one Tore <img src='http://vestues.no/tore/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>Would it be possible to add additional logic to some of the setters/getters of the properties, and still get the event notification?</p>
<p>Or &#8211; say you want to add a third property, like e-mail, where you want to do validation logic in the setter?</p>
<p>I guess what I&#8217;m asking: In class BooCustomer, is the PropertyChanged event available implicitly because of the NotifyPropertyChanged attribute?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
