Method InsertAfter
InsertAfter(T, T, IEqualityComparer<T>?)
Inserts an item after another item.
Declaration
public void InsertAfter(T findItem, T item, IEqualityComparer<T>? comparer = null)
Parameters
Type | Name | Description |
---|---|---|
T | findItem | The item to find to determine the insertion point. |
T | item | The item to insert. |
IEqualityComparer<T> | comparer | The comparer to use to determine item equality. |
Exceptions
Type | Condition |
---|---|
ArgumentException | The item to insert after was not found. |