Namespace: Semata.DataStore.ObjectModel
Class: Association<I>
Returns an ItemObjectCollection that allows the items with which this Item is associated to be iterated through and items to be added and removed from this association
The three delegates are intended to perform those actions indicated by their names. But the only real restriction is that they match the signature.
public ItemObjectCollection<I> GetItemObjectCollection(ItemObjectSource<I> source, Func<I> addNewItemObject, Action<I> addItemObject, Action<I> removeItemObject)
Parameters
Type | Name | Description |
ItemObjectSource<I> | source | The source of the ItemObjects |
Func<I> | addNewItemObject | This method is called whenever ItemObjectCollection.AddNewItemObject() is called |
Action<I> | addItemObject | This method is called whenever ItemObjectCollection.AddItemObject() is called |
Action<I> | removeItemObject | This method is called whenever ItemObjectCollection.RemoveItemObject() is called |
Returns: ItemObjectCollection<I>