views:

18

answers:

1

I have a class declaration

public class Customer
{

  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?

+3  A: 

Use

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

(i.e)

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