是否可以为字典的定义分配System.Diagnostics.DebuggerDisplay属性?
例如:
Dictionary<int, SomeClass>
[System.Diagnostics.DebuggerDisplay("{Info,nq}")]
public class SomeClass{
string code {get;set;}
public string Info { get { return "info" + code; }}
}
// place an attribute here??
[System.Diagnostics.DebuggerDisplay("{???,nq}")]
Dictionary<int, SomeClass> dict = new Dictionary<int, SomeClass>();