Skip to content

Instantly share code, notes, and snippets.

@jguadagno
Created January 13, 2019 19:22
Show Gist options
  • Save jguadagno/ae4a5f9470c81254ca23eaa7b0c04e57 to your computer and use it in GitHub Desktop.
Save jguadagno/ae4a5f9470c81254ca23eaa7b0c04e57 to your computer and use it in GitHub Desktop.
DebuggerDisplayAttribute-FinalClass
[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);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment