Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created September 6, 2015 10:45
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/f7f41c55234aa2b17451 to your computer and use it in GitHub Desktop.
Save angelovstanton/f7f41c55234aa2b17451 to your computer and use it in GitHub Desktop.
[DebuggerDisplay("Age {Age > 0 ? Age : 5}")]
public class DebuggerDisplayTest
{
private string squirrelFirstNameName;
private string squirrelLastNameName;
public string SquirrelFirstNameName
{
get
{
return squirrelFirstNameName;
}
set
{
squirrelFirstNameName = value;
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
public string SquirrelLastNameName
{
get
{
return squirrelLastNameName;
}
set
{
squirrelLastNameName = value;
}
}
public int Age { get; set; }
private string DebuggerDisplay
{
get { return string.Format("{0} de {1}", SquirrelFirstNameName, SquirrelLastNameName); }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment