ASP.net Hide Properties

I have a class declaration

public class Customer
{

  public string id {  get;set;}
  public Address CustomerAddress   { get;set;}
  ...
  ...
  ...
  public string EmailAddress {get;set;}
  ..
  ..
  ..
}

during debuggingI want to hide some properties from displaying (id, CustomerAddress), what is the way to achieve it?

+3
source share
1 answer

Using

System.Diagnostics.[DebuggerBrowsable(DebuggerBrowsableState.Never)]

(those.)

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
public Address CustomerAddress   { get;set;}
+1
source

Source: https://habr.com/ru/post/1771942/


All Articles