ASP.net Hiding Properties
I have a class declaration
public class 开发者_如何学PythonCustomer
{
public string id { get;set;}
public Address CustomerAddress { get;set;}
...
...
...
public string EmailAddress {get;set;}
..
..
..
}
during debugging
i want to hide some properties from being displayed like (id,CustomerAddress),what is the way to achieve it?
Use
System.Diagnostics.[DebuggerBrowsable(DebuggerBrowsableState.Never)]
(i.e)
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
public Address CustomerAddress { get;set;}
精彩评论