public class Invitee
{
public string Email { get; private set; }
public string? FirstName { get; private set; }
public string? LastName { get; private set; }
public Invitee(string email, string? firstName, string? lastName)
{
Email = Guard.Against.InvalidEmail(email, nameof(Email));
FirstName = firstName;
LastName = lastName;
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter