C++ C#

ItemObjectViewList(ItemObjectCollection<I>^, Func<IEnumerable<I>, IEnumerable<I>>^, Func<I, V>^, Action<V>^, Action<V>^, bool) Method

API Reference

Namespace: Semata.DataStore.ObjectModel.Views

Class: ItemObjectViewList<I,V>

Constructs a new instance of ItemObjectViewList.

If delayRemoves is true, it would be usual to set WriteOnEndEdit to false on the ItemObjectView created by Creator(). So that both adds and removes are performed on WriteChanges()

^ ItemObjectViewList(ItemObjectCollection<I>^ itemObjectCollection, Func<IEnumerable<I>, IEnumerable<I>>^ query, Func<I, V>^ itemObjectViewCreator, Action<V>^ onAdd, Action<V>^ onRemove, bool delayRemoves)


Type Name Description
ItemObjectCollection<I>^ itemObjectCollection the source of the ItemObjects, required
Func<IEnumerable<I>, IEnumerable<I>>^ query a method to filter the sequence, can be null
Func<I, V>^ itemObjectViewCreator a method that takes a ItemObject and returns an ItemObjectView, required
Action<V>^ onAdd a method that performed on an entry when added to list, can be null
Action<V>^ onRemove a method that performed on an entry when removed from list, can be null
bool delayRemoves if true any removes are not actioned on the underlying list until WriteChanges is called


This website stores cookies on your computer that are used to manage the order in which you see the pages. To find out more about the cookies we use, see our Privacy Policy.