Skip to content

M_CodeJam_Collections_OwnedCollectionBase_3_InsertItem

Andrew Koryavchenko edited this page Jun 17, 2018 · 2 revisions

OwnedCollectionBase(TOwner, TKey, TItem).InsertItem Method

Inserts an element into the Collection(T) at the specified index. Sets owner for the items being added.

Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

protected override void InsertItem(
	int index,
	TItem item
)

VB

Protected Overrides Sub InsertItem ( 
	index As Integer,
	item As TItem
)

F#

abstract InsertItem : 
        index : int * 
        item : 'TItem -> unit 
override InsertItem : 
        index : int * 
        item : 'TItem -> unit 

Parameters

 

index
Type: System.Int32
The zero-based index at which item should be inserted.
item
Type: TItem
The object to insert. The value can be null for reference types.

See Also

Reference

OwnedCollectionBase(TOwner, TKey, TItem) Class
CodeJam.Collections Namespace

Clone this wiki locally