Last active
August 27, 2015 03:55
-
-
Save dfmartin/c2ce25e7469373b112cf to your computer and use it in GitHub Desktop.
Ugly property defaults
This file contains hidden or 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
private string _firstName = "John"; | |
private string _lastName = "Doe"; | |
public string FirstName { | |
get { return _firstName; } | |
set { _firstName = value; } | |
} | |
public string LastName { | |
get { return _lastName; } | |
set { _lastName = value; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment