.NET

My new favorite C# language feature: [CallerMemberName]

SneWs's picture

With the release of Visual Studio 2012 and C# 4.5, [CallerMemberName] makes its entrance. With this new awesome feature you can write INotifyPropertyChanged code without having to worry about renaming properties and keeping strings in sync for the call to OnPropertyChanged(…).

Subscribe to RSS - .NET
© 2008 - 2017 Marcus Grenängen. Drupal theme by Kiwi Themes.