Mike-Ward.Net

.NET Tip of the Day

Just tripped across a nicely put together tip site for .NET called (what else?) .Net Tip of the Day. The tips are really good and the format is no-nonsense, get straight to the point. ASP topics are also included. I discovered several attributes that control debug output that I didn’t know about. Here’s an example.

Use DebuggerDisplay attribute for a better debugger experience

Apply 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;  
}

Definitely put this one on your blog roll.

← newer older →
.Net, Technology, Life, Whatever

Recent Posts

Checklist Buddy Available for Testing
Tweetz 2.0.0 Released
Tweetz 2.0 Beta
VSColorOutput 2.7 - Time Stamps
Fixed Focal-Length Eyeglasses, a Programmer's Best Friend
How to Choose the Right VPN Service
Two Handy Command Line Scripts
More... (1089)

Donate