开发者

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;}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜