Skip to content

M_CodeJam_Collections_OwnedCollection_3__ctor

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

OwnedCollection(TOwner, TKey, TItem) Constructor

Initializes a new instance of the OwnedCollection(TOwner, TKey, TItem) class.

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

Syntax

C#

public OwnedCollection(
	TOwner owner,
	Func<TItem, TOwner> ownerGetter,
	Action<TItem, TOwner> ownerSetter,
	Func<TItem, TKey> keyGetter
)

VB

Public Sub New ( 
	owner As TOwner,
	ownerGetter As Func(Of TItem, TOwner),
	ownerSetter As Action(Of TItem, TOwner),
	keyGetter As Func(Of TItem, TKey)
)

F#

new : 
        owner : 'TOwner * 
        ownerGetter : Func<'TItem, 'TOwner> * 
        ownerSetter : Action<'TItem, 'TOwner> * 
        keyGetter : Func<'TItem, 'TKey> -> OwnedCollection

Parameters

 

owner
Type: TOwner
The owner for the collection.
ownerGetter
Type: System.Func(TItem, TOwner)
Owner getter for the item.
ownerSetter
Type: System.Action(TItem, TOwner)
Owner setter for the item.
keyGetter
Type: System.Func(TItem, TKey)
Key getter for the item.

See Also

Reference

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

Clone this wiki locally