开发者

ASP.net Hiding Properties

开发者 https://www.devze.com 2023-01-22 15:01 出处:网络
I have a class declaration public class 开发者_如何学PythonCustomer { public string id {get;set;} public Address CustomerAddress{ get;set;}

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

精彩评论

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

关注公众号