[]
Wraps an item of type T into type OrderedItem<T>, adding the specified index
public static OrderedItem<T> WithIndex<T>(this T item, int index)
| Type | Name | Description |
|---|---|---|
| T | item | The item |
| int | index | Index for item |
| Type | Description |
|---|---|
| OrderedItem<T> | Returns new instance OrderedItem<T> with the specified index |
| Name | Description |
|---|---|
| T | Item type |