Tag Archives: Code

INotifyPropertyChanged, The .NET 4.5 Way – Revisited

In what is what is becoming a never ending topic on my blog, I have stumbled across yet another interesting implementation of INotifyPropertyChanged. This implementation comes to us via the C# / XAML Windows 8 Metro application project templates in the Visual Studio 11 beta. In the project templates we are given a base class [...]

8  

INotifyPropertyChanged, The .NET 4.5 Way

Previously I discussed a novel new way of implementing INotifyPropertyChanged based on code I saw during a Build session. As of yesterday, February 29th, the Visual Studio 11 & .NET 4.5 Betas are out, and included in the .NET 4.5 Beta comes a handy new feature, the CallerMemberName attribute. It is one of three new Caller Information attributes [...]

INotifyPropertyChanged, the Anders Hejlsberg Way

Back in September I was watching the Build session that Anders Hejlsberg was giving on the Future directions for C# and Visual Basic and something small but interesting stood out to me in the demo code he used. We’re all pretty used to the standard boilerplate implementation of INotifyPropertyChanged that goes like this: public event PropertyChangedEventHandler PropertyChanged;   [...]