Possible to accessing child “DebuggerDisplay” attribute of property?

前端 未结 3 909
温柔的废话
温柔的废话 2021-02-19 22:49

Current state

Having two classes:

[DebuggerDisplay(@"One = {One}, two = {Two}")]
public class A
{
    public int One { get; set; }
    public B         


        
3条回答
  •  后悔当初
    2021-02-19 23:28

    [Disclaimer I'm affiliated with OzCode]

    You can use OzCode's Reveal feature which supports nested debug information.
    The plus side is that you do not need to change your production code and once you define it for an instance it would be used automatically for all instances of that type.

提交回复
热议问题