Is it possible to call a method with parameter(s) within the DebuggerDisplay attribute? I did not find helpful information for this problem in the MSDN article Using the DebuggerDisplay Attribute.
I try to call the ToString
method with a string parameter "d"
; but the following did not work:
[DebuggerDisplay(@"{ToString(""d"")}")]
public class ...
I know it is recommended to use a private property instead of complex expressions. But is it nevertheless possible with an expression?