Does there exists a method to render an object using DebuggerDisplayAttribute

Posted by Joe on Stack Overflow See other posts from Stack Overflow or by Joe
Published on 2010-05-08T11:59:08Z Indexed on 2010/05/08 12:08 UTC
Read the original article Hit count: 156

Filed under:
|
|

I have a number of classes that are decorated with DebuggerDisplayAttribute.

I want to be able to add trace statements to Unit Tests that will display instances of these classes.

Does there exist a method in the .NET Framework that will display an object formatted using DebuggerDisplayAttribute (or fall back to using .ToString() if no DebuggerDisplayAttribute is defined)?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about debuggerdisplay