Replaces the element at the specified index.
Namespace:
Tortuga.Anchor.Collections
Assembly:
Tortuga.Anchor (in Tortuga.Anchor.dll)
protected void SetItem(
int index,
T item
)
Protected Sub SetItem ( _
index As Integer, _
item As T _
)
Parameters
- index
- Type: Int32
The zero-based index of the element to replace.
- item
- Type: T
The new value for the element at the specified index.
Do NOT invoke this method directly. This may be overridden to provide additional validation before an item is added to the collection.