Skip to content

Instantly share code, notes, and snippets.

@JayBazuzi
Last active June 11, 2016 23:28
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 JayBazuzi/58e39edaba3f6aea753f5ea5d0484c95 to your computer and use it in GitHub Desktop.
Save JayBazuzi/58e39edaba3f6aea753f5ea5d0484c95 to your computer and use it in GitHub Desktop.
// A primitive
string emailAddress = "jay@example.com";
// Better
class EmailAddress
{
public EmailAddress(string value) { this.Value = value; }
public string Value { get; }
}
EmailAddress emailAddress = new EmailAddress("jay@example.com");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment