我有一个班级声明
public class Customer
{
public string id { get;set;}
public Address CustomerAddress { get;set;}
...
...
...
public string EmailAddress {get;set;}
..
..
..
}
在debugging
期间我想隐藏某些属性,如(id,CustomerAddress),实现它的方法是什么?
答案 0 :(得分:1)
使用
System.Diagnostics.[DebuggerBrowsable(DebuggerBrowsableState.Never)]
(即)
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
public Address CustomerAddress { get;set;}