Created
September 6, 2015 10:45
-
-
Save angelovstanton/f7f41c55234aa2b17451 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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