Skip to content

M_CodeJam_Collections_OwnedCollectionBase_3_GetKeyForItem

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

OwnedCollectionBase(TOwner, TKey, TItem).GetKeyForItem Method

When implemented in a derived class, extracts the key from the specified element.

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

Syntax

C#

protected override sealed TKey GetKeyForItem(
	TItem item
)

VB

Protected Overrides NotOverridable Function GetKeyForItem ( 
	item As TItem
) As TKey

F#

abstract GetKeyForItem : 
        item : 'TItem -> 'TKey 
override GetKeyForItem : 
        item : 'TItem -> 'TKey 

Parameters

 

item
Type: TItem
The element from which to extract the key.

Return Value

Type: TKey
The key for the specified element.

See Also

Reference

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

Clone this wiki locally