Last active
June 20, 2023 15:02
-
-
Save maiconheck/c966795de2bb4d6c568166ae52834d2c to your computer and use it in GitHub Desktop.
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
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