27Nov/091
Executing actions on the UI thread
When working with frameworks like Silverlight, WPF or Windows Forms you often encounter the need to ensure a piece of code runs on the UI thread. Below, I present a clean way to do this using the SynchronizationContext class.
17Aug/092
Creating a type-safe implementation of the INotifyPropertyChanged interface
When working with Silverlight two-way binding (and not only there) you need to implement the INotifyPropertyChanged interface in order to notify any observers that the property values of the object have changed.
13Aug/090
Some useful extension methods
The class at the end of this post contains some extension methods that I commonly use in my code:
- IDictionary<TKey, TValue>.GetValueOrDefault
- IEnumerable<T>.ToHashSet
- IEnumerable<T>.ToJoinedString