KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What are some best practices around the DebuggerDisplayAttribute ? What guides your decisions on when and how to apply the attribute to your code? For example.. Do you find DebuggerDisplayAttribute more useful on some types of objects (i.e. custom data structures) rather than others? Do you define it on public types, internal types, or both? Will you generally add it to the initial implementation, or wait for a tester/user to request it? When is it better to define DebuggerDisplayAttribute and when does it make more sense to override .ToString() ? Do you have guidelines on how much data you expose in the attribute, or limits on the amount of computation to include? Do any inheritance rules apply that would make it more beneficial to apply on base classes? Is there anything else to consider when deciding when or how to use it?
Tags (comma-separated)
Save Edits
Cancel