| ObservableCompositeCollectionFromSingleItemAndListT, TItem Method |
Create a collection initially containing one single item plus one list.
Namespace:
TomsToolbox.ObservableCollections
Assembly:
TomsToolbox.ObservableCollections (in TomsToolbox.ObservableCollections.dll)
Syntax public static ObservableCompositeCollection<T> FromSingleItemAndList<T, TItem>(
T singleItem,
IList<TItem> list
)
where TItem : T
Public Shared Function FromSingleItemAndList(Of T, TItem As T) (
singleItem As T,
list As IList(Of TItem)
) As ObservableCompositeCollection(Of T)
Parameters
- singleItem
- Type: T
The first single item in the collection - list
- Type: System.Collections.GenericIListTItem
The list to add after the single item.
Type Parameters
- T
- The type of the single item.
- TItem
- The type of elements in the list.
Return Value
Type:
ObservableCompositeCollectionTA new
ObservableCompositeCollectionT containing one fixed list with the single item plus all items from the list.
See Also