Created
January 13, 2019 19:10
-
-
Save jguadagno/818272aebe51e1b05219714c1e78099f to your computer and use it in GitHub Desktop.
DebuggerDisplay Attribute
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("FirstName={FirstName} LastName={LastName}")] |
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("FirstName={FirstName} LastName={LastName}")] | |
public class Person | |
{ | |
public string FirstName { get; set; } | |
public string MiddleName { get; set; } | |
public string LastName { get; set; } | |
public string FullName | |
{ | |
get | |
{ | |
return string.Format("{0} {1}{2", FirstName, | |
(string.IsNullOrEmpty(MiddleName)) ? string.Empty : MiddleName + " ", | |
LastName); | |
} | |
} | |
} |
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
public class Person | |
{ | |
public string FirstName { get; set; } | |
public string MiddleName { get; set; } | |
public string LastName { get; set; } | |
public string FullName | |
{ | |
get | |
{ | |
return string.Format("{0} {1}{2}", | |
FirstName, | |
(string.IsNullOrEmpty(MiddleName)) ? string.Empty : MiddleName + " ", | |
LastName); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment