Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created July 15, 2015 21:18
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 angelovstanton/3458deef5f82f20b6b70 to your computer and use it in GitHub Desktop.
Save angelovstanton/3458deef5f82f20b6b70 to your computer and use it in GitHub Desktop.
public class Person(string firstName, string lastName)
{
{
if (firstName == null)
throw new ArgumentNullException("firstName");
if (lastName == null)
throw new ArgumentNullException("lastName");
}
public string FirstName { get; } = firstName;
public string LastName { get; } = lastName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment