Skip to content

Instantly share code, notes, and snippets.

@atzimler
Created June 28, 2017 12:05
Show Gist options
  • Save atzimler/fd78c41d3658cd54384d01f8b50a9147 to your computer and use it in GitHub Desktop.
Save atzimler/fd78c41d3658cd54384d01f8b50a9147 to your computer and use it in GitHub Desktop.
protected void Set<T>(ref T propertyStorage, T newValue, IEnumerable<string> additionalPropertiesChanged = null, [CallerMemberName] string propertyName = null)
private T _property;
public T Property
{
get { return _property; }
set { Set(ref _property, value); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment