DebuggerDisplay for Better Debugging
Just wanted to make a quick post about a long forgotten friend the DebuggerDisplay attribute. The DebuggerDisplayAttribute Class controls how an object, property, or field is displayed in the debugger variable windows. This attribute can be applied to types, delegates, properties, fields, and assemblies. The DebuggerDisplay attribute has a single argument, which is a string to be displayed in the value column for instances of the type. This string can contain braces ({ and }). Text within a pair of braces is evaluated as a field, property or method. Example So here I’m going to have a Person class. I’m… Read More »DebuggerDisplay for Better Debugging