-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Collections_OwnedCollection_Create__2
Andrew Koryavchenko edited this page Jun 17, 2018
·
2 revisions
Creates a new instance of the OwnedCollection(TOwner, TItem) class.
Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static OwnedCollection<TOwner, TItem> Create<TOwner, TItem>(
TOwner owner,
Func<TItem, TOwner> ownerGetter,
Action<TItem, TOwner> ownerSetter
)
where TOwner : class
where TItem : class
VB
Public Shared Function Create(Of TOwner As Class, TItem As Class) (
owner As TOwner,
ownerGetter As Func(Of TItem, TOwner),
ownerSetter As Action(Of TItem, TOwner)
) As OwnedCollection(Of TOwner, TItem)
F#
static member Create :
owner : 'TOwner *
ownerGetter : Func<'TItem, 'TOwner> *
ownerSetter : Action<'TItem, 'TOwner> -> OwnedCollection<'TOwner, 'TItem> when 'TOwner : not struct when 'TItem : not struct
- 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.
- TOwner
- The type of the owner.
- TItem
- The type of the item.
Type: OwnedCollection(TOwner, TItem)
A new instance of the OwnedCollection(TOwner, TItem) class.
OwnedCollection Class
Create Overload
CodeJam.Collections Namespace