Skip to content

)} ,System.Collections.ObjectModel.ObservableCollection{--0})}

EditableListWrapperPool.Rent(List) method

Defined in

Type: EditableListWrapperPool Namespace: ReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public static PooledEditableListWrapper<T> Rent<T>(List<T> list)

  2. public static PooledEditableListWrapper<T> Rent<T>(List<T> list, ObservableCollection<T>? observableCollection)

1. Overload

public static PooledEditableListWrapper<T> Rent<T>(List<T> list)

View source (opens in a new tab)

Summary: Rents a wrapper from the pool or creates a new one if the pool is empty.

Type parameters

NameDescription
TThe wrapped element type.

Parameters

NameTypeDescription
listList (opens in a new tab)The underlying list to wrap.

Returns: PooledEditableListWrapper -- A pooled wrapper instance.

2. Overload

public static PooledEditableListWrapper<T> Rent<T>(List<T> list, ObservableCollection<T>? observableCollection)

View source (opens in a new tab)

Summary: Rents a wrapper from the pool or creates a new one if the pool is empty.

Type parameters

NameDescription
TThe wrapped element type.

Parameters

NameTypeDescription
listList (opens in a new tab)The underlying list to wrap.
observableCollectionObservableCollection? (opens in a new tab)The optional observable collection to keep in sync.

Returns: PooledEditableListWrapper -- A pooled wrapper instance.