Skip to content

Instantly share code, notes, and snippets.

@maiconheck
Last active June 20, 2023 15:02
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 maiconheck/c966795de2bb4d6c568166ae52834d2c to your computer and use it in GitHub Desktop.
Save maiconheck/c966795de2bb4d6c568166ae52834d2c to your computer and use it in GitHub Desktop.
public class Name
{
public Name(string firstName, string lastName = "")
{
Guard.Against.NullOrWhiteSpace(firstName, nameof(firstName));
FirstName = firstName;
LastName = lastName;
}
public string FirstName { get; }
public string LastName { get; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment