Click or drag to resize

ObservableCompositeCollectionFromListAndSingleItemTItem, T Method

Create a collection initially containing one list plus one single item.

Namespace:  TomsToolbox.ObservableCollections
Assembly:  TomsToolbox.ObservableCollections (in TomsToolbox.ObservableCollections.dll)
Syntax
public static ObservableCompositeCollection<T> FromListAndSingleItem<TItem, T>(
	IList<TItem> list,
	T singleItem
)
where TItem : T

Parameters

list
Type: System.Collections.GenericIListTItem
The list to add before the single item.
singleItem
Type: T
The last single item in the collection

Type Parameters

TItem
The type of elements in the list.
T
The type of the single item.

Return Value

Type: ObservableCompositeCollectionT
A new ObservableCompositeCollectionT containing all items from the list plus one fixed list with the single item at the end.
See Also