)} ,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¶
public static PooledEditableListWrapper<T> Rent<T>(List<T> list)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
| Name | Description |
|---|---|
T | The wrapped element type. |
Parameters
| Name | Type | Description |
|---|---|---|
list | List | The underlying list to wrap. |
Returns: PooledEditableListWrapper
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
| Name | Description |
|---|---|
T | The wrapped element type. |
Parameters
| Name | Type | Description |
|---|---|---|
list | List | The underlying list to wrap. |
observableCollection | ObservableCollection | The optional observable collection to keep in sync. |
Returns: PooledEditableListWrapper