Skip to content

Instantly share code, notes, and snippets.

@jessebarocio
Last active September 20, 2017 20:31
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 jessebarocio/0a414cfae13e9e10da7b7c808891e29e to your computer and use it in GitHub Desktop.
Save jessebarocio/0a414cfae13e9e10da7b7c808891e29e to your computer and use it in GitHub Desktop.
using System;
using System.Diagnostics;
namespace DebuggerSample
{
[DebuggerDisplay("Name: {FirstName,nq} {LastName,nq}")]
public class Employee
{
public string FirstName { get; set; }
public string LastName { get; set; }
public bool IsFullTime { get; set; }
public Employee(string firstName, string lastName, bool isFullTime = false)
{
FirstName = firstName;
LastName = lastName;
IsFullTime = isFullTime;
}
}
}
using System;
using System.Diagnostics;
namespace DebuggerSample
{
public class Employee
{
public string FirstName { get; set; }
public string LastName { get; set; }
public bool IsFullTime { get; set; }
public Employee(string firstName, string lastName, bool isFullTime = false)
{
FirstName = firstName;
LastName = lastName;
IsFullTime = isFullTime;
}
public override string ToString()
{
return $"Name: {FirstName} {LastName}";
}
}
}
using System;
using System.Diagnostics;
namespace DebuggerSample
{
public class Employee
{
public string FirstName { get; set; }
public string LastName { get; set; }
public bool IsFullTime { get; set; }
public Employee(string firstName, string lastName, bool isFullTime = false)
{
FirstName = firstName;
LastName = lastName;
IsFullTime = isFullTime;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment