Method InsertBefore
InsertBefore(T, T, IEqualityComparer<T>?)
Inserts an item before another item.
Declaration
public void InsertBefore(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 before was not found. | 
