Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.