Пример #1
0
 internal void SetField <T>(ref DirtyList <T>?field, IList <T>?value, [CallerMemberName] string?propertyName = null)
 {
     if (!ReferenceEquals(field, value))
     {
         field = value != null ? new DirtyList <T>(value) : null;
         OnPropertyChanged(propertyName);
     }
 }
Пример #2
0
 internal IList <T> GetField <T>(ref DirtyList <T>?field) => field ??= new DirtyList <T>();