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
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; | |
} | |
} | |
} |
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
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}"; | |
} | |
} | |
} |
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
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