Archive for February, 2008

Immediate Window - A forgotten tool

A tool that is integrated into Visual Studio that people often forget about is the Immediate Window. The Immediate Window will allow you to evaluate expressions while debugging. For example, rather than using the visual tool to examine the item within a collection, you can just issue a command in the Immediate Window. Such as:

Intellisense [...]

A lambda function as an Event Handler

Did you know you can use a lambda function as an event handler?
For example:

dog.PropertyChanged += (object o, PropertyChangedEventArgs a)
[...]

Basics - Anonymous Types outside the scope of Linq

Some basics.
Anonymous types are an important new feature that allow, at compile time, for the type information for a variable be dropped by the developer. For example:

1: var x = 128;

Line 1 declares the variable x as a variable having an anonymous type using the var keyword. At this point, nothing [...]

The most basic Xml reader using Linq and XElement

So, Linq is supposed to be the future. At least that’s what they say. I’ll admit, I like it. Right now, I care about how to do stuff with it. There is a lot of great theory out there on the net about it so I really encourage anyone who wants to use Linq [...]

MRU Cleaner for Visual Studio 2005

http://www.csharper.net/blog/project_mru_cleaner_addin___new_for_visual_studio_2005.aspx