PostSharp4.3/API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Keyed­Collection(TKey, TItem) Class/Advisable­Keyed­Collection(TKey, TItem) Methods/Advisable­Keyed­Collection(TKey, TItem).​Get­Key­For­Item Method
AdvisableKeyedCollection<TKey, TItem>.GetKeyForItem Method
Extracts the key from the specified element.

Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
protected abstract TKey GetKeyForItem(
	TItem item
)

Parameters

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

Return Value

Type: TKey
The key for the specified element.
See Also