Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Expression-bodied members with C# 7
// C# 6
private string _firstName;
public string FirstName
{
get { return _firstName; }
set { Set(ref _firstName, value); }
}
// C# 7
private string _firstName;
public string FirstName
{
get => _firstName;
set => Set(ref _firstName, value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment