Reactive2DList.AddToInner(int, IEnumerable) method¶
Defined in
Type: Reactive2DListReactiveList.Reactive.Collections
Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
-
public void AddToInner(int outerIndex, IEnumerable<T> items) -
public void AddToInner(int outerIndex, T item)
1. Overload¶
public void AddToInner(int outerIndex, IEnumerable<T> items)
View source (opens in a new tab)
Summary: Adds the specified items to the inner collection at the given outer index.
Parameters
| Name | Type | Description |
|---|---|---|
outerIndex | int (opens in a new tab) | The zero-based index of the outer collection whose inner collection will receive the new items. Must be greater than or equal to 0 and less than the total number of outer collections. |
items | IEnumerable | The sequence of items to add to the inner collection. Cannot be null. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | Thrown if items is null. |
| System.ArgumentOutOfRangeException (opens in a new tab) | Thrown if outerIndex is less than 0 or greater than or equal to the number of outer collections. |
2. Overload¶
public void AddToInner(int outerIndex, T item)
View source (opens in a new tab)
Summary: Adds the specified item to the inner collection at the given outer index.
Parameters
| Name | Type | Description |
|---|---|---|
outerIndex | int (opens in a new tab) | The zero-based index of the outer collection whose inner collection will receive the item. Must be greater than or equal to 0 and less than the total number of outer collections. |
item | T | The item to add to the inner collection at the specified outer index. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException (opens in a new tab) | Thrown when outerIndex is less than 0 or greater than or equal to the number of outer collections. |