Created
June 13, 2017 10:00
-
-
Save PradeepLoganathan/076908d8139750bfcc787e393f0ddd8b 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 User | |
{ | |
private string userName; | |
// accessors | |
public string UserName | |
{ | |
get => userName; | |
private set => userName = value; | |
} | |
// constructor | |
public User(string userName) => UserName = userName; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment