Skip to content

M_CodeJam_Collections_OwnedCollectionBase_2_SetItem

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

OwnedCollectionBase(TOwner, TItem).SetItem Method

Replaces the element at the specified index. Sets owner for the items being added. Clears owner for the item being removed.

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

Syntax

C#

protected override void SetItem(
	int index,
	TItem item
)

VB

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

F#

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

Parameters

 

index
Type: System.Int32
The zero-based index of the element to replace.
item
Type: TItem
The new value for the element at the specified index. The value can be null for reference types.

See Also

Reference

OwnedCollectionBase(TOwner, TItem) Class
CodeJam.Collections Namespace

Clone this wiki locally