Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created August 23, 2015 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/0b8a04f18deaefbf64e2 to your computer and use it in GitHub Desktop.
Save angelovstanton/0b8a04f18deaefbf64e2 to your computer and use it in GitHub Desktop.
public static class DebuggerBrowsableTest
{
private static string squirrelFirstNameName;
private static string squirrelLastNameName;
// The following DebuggerBrowsableAttribute prevents the property following it
// from appearing in the debug window for the class.
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
public static string SquirrelFirstNameName
{
get
{
return squirrelFirstNameName;
}
set
{
squirrelFirstNameName = value;
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
public static string SquirrelLastNameName
{
get
{
return squirrelLastNameName;
}
set
{
squirrelLastNameName = value;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment