Monday, February 19, 2007

Showing Class Property in debugger tooltip

When you're in debug mode and move the mouse over a variable, you cang put any property value of that class you want like this:


[System.Diagnostics.DebuggerDisplay("Name = {Name}")]
public class Option
{
private string name = string.Empty;
public string Name
{
get { return name; }
}

}