Last active
June 11, 2016 23:28
-
-
Save JayBazuzi/58e39edaba3f6aea753f5ea5d0484c95 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
// 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