Skip to content

)}

Reactive2DList.AddToInner(int, IEnumerable) method

Defined in

Type: Reactive2DList Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll

Applies to

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

Overloads

  1. public void AddToInner(int outerIndex, IEnumerable<T> items)

  2. 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

NameTypeDescription
outerIndexint (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.
itemsIEnumerable (opens in a new tab)The sequence of items to add to the inner collection. Cannot be null.

Exceptions

TypeCondition
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

NameTypeDescription
outerIndexint (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.
itemTThe item to add to the inner collection at the specified outer index.

Exceptions

TypeCondition
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.