C++ C#

ItemObjectViewList(ItemObjectCollection<I>^, Func<IEnumerable<I>, IEnumerable<I>>^, Func<I, V>^, Action<List<V>>^, Action<List<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<List<V>>^ afterLoad, Action<List<V>>^ beforeChange, 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<List<V>>^ afterLoad a method that processes the list after it is loaded, can be null
Action<List<V>>^ beforeChange a method that processes the list after it is loaded, 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.