Those who prefer reading this site through RSS now can also subscribe for updates to .NET Tips & Tricks Community.
Appply DebuggerDisplay attribute to a class or member to determine how it is displayed in the debugger variable windows. For example, the following C# code causes "Count = 4" to be displayed in debugger:
[DebuggerDisplay("Count = {count}")]
class MyHashtable
{
public int count = 4;
}