Skip to content
Archive of posts filed under the Tips and Tricks category.

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 [...]

How to launch Git Extensions from Git Bash on Windows

Typically when I’m working on a piece of software, I leave an msysgit bash prompt open in the current project directory. Over time I’ve come to prefer using the command line for some git operations (clone, fetch, pull, rebase, push, checkout, branching) and the Git Extensions UI for others (commit, view log, examining prior commit [...]

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;   [...]

Quick and Easy Google (or Bing) Web Search in Visual Studio

Here is a quick and easy way to add a Google (or Bing) Web Search link to the context menu in Visual Studio: – Open the Visual Studio macros IDE by navigating to Tools –> Macros –> Macros IDE (or pressing Alt+F11). - Right click on “MyMacros” and select Add New –> Add New Item. - Select [...]