In the first part I’ve written about creating a code generator in VS2008 to eliminate repetitive coding.
The series is divided into four parts:
Part I – creating a Visual Studio Package
Part II (this one) – creating and registering a code generator
Part III – generating code & debugging
Part IV – creating the setup project and deploying the [...]
Share this post:
These icons link to social bookmarking sites where readers can share and discover new web pages.
I am a big fan of the DRY principle. This means that whenever I can do something that can be reused with minimal or no effort, I try to do it. Recently I’ve started developing a REST framework for our projects, which is not based on WCF (will blog about this too). One of the [...]
Share this post:
These icons link to social bookmarking sites where readers can share and discover new web pages.
November 27, 2009 - 3:22 pm
Posted in .NET, C#, Code | 3 comments
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.
The ISynchronized interface
The first thing to do is to make a contract for all classes that need [...]
Share this post:
These icons link to social bookmarking sites where readers can share and discover new web pages.
September 6, 2009 - 6:23 pm
Posted in Add-ins, Tools | 4 comments
Recently, Scott Hanselman has released his notorious tools list for 2009 here at http://hanselman.com/tools. I want to amend his list and add some of the tools that I use for day-to-day work.
Windows & multimedia utilities
Here is stuff that I use for normal Windows operations, multimedia etc.
IZarc – I actually like this more than 7zip because [...]
Share this post:
These icons link to social bookmarking sites where readers can share and discover new web pages.
August 17, 2009 - 1:38 pm
Posted in .NET, C#, Code | No comments
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.
The INotifyChangedProperty exposes only the PropertyChanged event which is used by observers to subscribe to the change notifications. The typical pattern is to have [...]
Share this post:
These icons link to social bookmarking sites where readers can share and discover new web pages.