<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2212558652617325901.post3692239658054231243..comments</id><updated>2010-02-23T10:35:25.005-05:00</updated><category term='C#'/><category term='Threading'/><category term='Visual Studio'/><category term='Attributes'/><category term='Architecture'/><category term='Tip'/><category term='Fluent interfaces'/><category term='OOP'/><category term='Parallel Extensions'/><category term='Settings'/><category term='Debug'/><category term='Design'/><category term='Parallel Computing'/><category term='Property'/><category term='Generics'/><category term='Password'/><category term='Training'/><category term='Reflector'/><category term='DevTeach'/><category term='Silverlight'/><category term='Extension methods'/><title type='text'>Comments on Eric De C#: Type-safe INotifyPropertyChanged and derived class...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.decarufel.net/feeds/3692239658054231243/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2212558652617325901/3692239658054231243/comments/default'/><link rel='alternate' type='text/html' href='http://blog.decarufel.net/2009/07/type-safe-inotifypropertychanged-and.html'/><author><name>Eric De C#</name><uri>http://www.blogger.com/profile/01046447681968794782</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_F9mN1vFyteY/STk80ggsyRI/AAAAAAAAD5g/XiVQebXFt_0/S220/Eric_De_Carufel_120x160.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2212558652617325901.post-4916343328437855339</id><published>2010-02-23T10:35:25.005-05:00</published><updated>2010-02-23T10:35:25.005-05:00</updated><title type='text'>@Rick
Someone posted the solution:
http://blog.dec...</title><content type='html'>@Rick&lt;br /&gt;Someone posted the solution:&lt;br /&gt;http://blog.decarufel.net/2009/07/how-to-use-inotifypropertychanged-type_22.html&lt;br /&gt;Quote Stefan Lange:&lt;br /&gt;Very good idea! After I tried it out I have two hints:&lt;br /&gt;&lt;br /&gt;If the property is a value type you need an additional step to unbox the expression body:&lt;br /&gt;&lt;br /&gt;((MemberExpression)((UnaryExpression)propertyExpression.Body).Operand).Member.Name&lt;br /&gt;&lt;br /&gt;The only reason why you must compile and execute the expression is to retrieve the sender. I would avoid this completely by simply adding the sender to the parameters:&lt;br /&gt;&lt;br /&gt;PropertyChanged.Raise(this, () =&amp;gt; Data);&lt;br /&gt;&lt;br /&gt;I think adding the sender is better than creating code to retrieve it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2212558652617325901/3692239658054231243/comments/default/4916343328437855339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2212558652617325901/3692239658054231243/comments/default/4916343328437855339'/><link rel='alternate' type='text/html' href='http://blog.decarufel.net/2009/07/type-safe-inotifypropertychanged-and.html?showComment=1266939325005#c4916343328437855339' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.decarufel.net/2009/07/type-safe-inotifypropertychanged-and.html' ref='tag:blogger.com,1999:blog-2212558652617325901.post-3692239658054231243' source='http://www.blogger.com/feeds/2212558652617325901/posts/default/3692239658054231243' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-471394124'/></entry><entry><id>tag:blogger.com,1999:blog-2212558652617325901.post-1764394869871307119</id><published>2009-11-25T10:55:17.649-05:00</published><updated>2009-11-25T10:55:17.649-05:00</updated><title type='text'>I&amp;#39;m trying to implement this and one boolean p...</title><content type='html'>I&amp;#39;m trying to implement this and one boolean property is causing a property expression should be a member expression error.  When I break on if (body -- null), body is null, but if I highlight propertyExpression.body in quick watch it returns the lambda...  Very strage but prevents it from working.  Any ideas?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2212558652617325901/3692239658054231243/comments/default/1764394869871307119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2212558652617325901/3692239658054231243/comments/default/1764394869871307119'/><link rel='alternate' type='text/html' href='http://blog.decarufel.net/2009/07/type-safe-inotifypropertychanged-and.html?showComment=1259164517649#c1764394869871307119' title=''/><author><name>Rick</name><uri>http://www.blogger.com/profile/03117756749296471335</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.decarufel.net/2009/07/type-safe-inotifypropertychanged-and.html' ref='tag:blogger.com,1999:blog-2212558652617325901.post-3692239658054231243' source='http://www.blogger.com/feeds/2212558652617325901/posts/default/3692239658054231243' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-351209747'/></entry><entry><id>tag:blogger.com,1999:blog-2212558652617325901.post-2094652496087853848</id><published>2009-09-08T10:27:11.851-04:00</published><updated>2009-09-08T10:27:11.851-04:00</updated><title type='text'>Sweeeet :p</title><content type='html'>Sweeeet :p</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2212558652617325901/3692239658054231243/comments/default/2094652496087853848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2212558652617325901/3692239658054231243/comments/default/2094652496087853848'/><link rel='alternate' type='text/html' href='http://blog.decarufel.net/2009/07/type-safe-inotifypropertychanged-and.html?showComment=1252420031851#c2094652496087853848' title=''/><author><name>Svart</name><uri>http://www.blogger.com/profile/09075342696232521449</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.decarufel.net/2009/07/type-safe-inotifypropertychanged-and.html' ref='tag:blogger.com,1999:blog-2212558652617325901.post-3692239658054231243' source='http://www.blogger.com/feeds/2212558652617325901/posts/default/3692239658054231243' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-775570421'/></entry></feed>
