DebuggerDisplay on generic class

前端 未结 3 994
灰色年华
灰色年华 2021-02-19 06:27

I have a problem applying the DebuggerDisplay attribute on a generic class:

[DebuggerDisplay(\"--foo--\")]
class Foo
{
}

[DebuggerDisplay(\"Bar: {t         


        
3条回答
  •  一个人的身影
    2021-02-19 06:57

    [Disclaimer: I'm affiliated with OzCode]

    You can use OzCode's Reveal feature which supports nested/recursive debug information.
    Once you define it for an instance it would be used automatically for all instances of that type.

提交回复
热议问题