DelegateDictionary Constructor (Func, Func, Action, Func, Action)

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.Utility.Collections
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)

Usage

'Usage
Dim keys As Func(Of ICollection(Of TKey))
Dim get As Func(Of TKey, TVal)
Dim set As Action(Of TKey, TVal)
Dim remove As Func(Of TKey, Boolean)
Dim clear As Action

Dim instance As New DelegateDictionary(Of TKey, TVal)(keys, get, set, remove, clear)

Syntax

'Declaration
Public Sub New ( _
    keys As Func(Of ICollection(Of TKey)), _
    get As Func(Of TKey, TVal), _
    set As Action(Of TKey, TVal), _
    remove As Func(Of TKey, Boolean), _
    clear As Action _
)
public DelegateDictionary (
    Func<ICollection<TKey>> keys,
    Func<TKey,TVal> get,
    Action<TKey,TVal> set,
    Func<TKey,bool> remove,
    Action clear
)
public:
DelegateDictionary (
    Func<ICollection<TKey>^>^ keys, 
    Func<TKey, TVal>^ get, 
    Action<TKey, TVal>^ set, 
    Func<TKey, bool>^ remove, 
    Action^ clear
)
public DelegateDictionary (
    Func<ICollection<TKey>> keys, 
    Func<TKey,TVal> get, 
    Action<TKey,TVal> set, 
    Func<TKey,boolean> remove, 
    Action clear
)
public function DelegateDictionary (
    keys : Func<ICollection<TKey>>, 
    get : Func<TKey,TVal>, 
    set : Action<TKey,TVal>, 
    remove : Func<TKey,boolean>, 
    clear : Action
)

Parameters

  • keys
  • get
  • set
  • remove
  • clear

Platforms

Target Platforms

See Also

Reference

DelegateDictionary Generic Class
DelegateDictionary Members
Microsoft.OneGet.Utility.Collections Namespace