Skip to content

M_CodeJam_Collections_OwnedCollectionBase_3_SetItem

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

OwnedCollectionBase(TOwner, TKey, 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, TKey, TItem) Class
CodeJam.Collections Namespace

Clone this wiki locally