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); } }
internal IList <T> GetField <T>(ref DirtyList <T>?field) => field ??= new DirtyList <T>();