Class CollectionOps.GetKeyFromValueItem<KeyType, ValueType>
Delegate for the CreateDictionaryFromArray<KeyType, ValueType>(ValueType[], CollectionOps.GetKeyFromValueItem<KeyType, ValueType>) methods, whose task is to extract whatever is the key from the given item
Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public sealed class GetKeyFromValueItem<KeyType, ValueType> : MulticastDelegate
Type Parameters
Name | Description |
---|---|
KeyType | Type to return as key |
ValueType | Value type, same as the incoming item type |
Constructors
GetKeyFromValueItem(Object, IntPtr)
Delegate for the CreateDictionaryFromArray<KeyType, ValueType>(ValueType[], CollectionOps.GetKeyFromValueItem<KeyType, ValueType>) methods, whose task is to extract whatever is the key from the given item
Declaration
public GetKeyFromValueItem(object object, IntPtr method)
Parameters
Type | Name | Description |
---|---|---|
Object | object | |
IntPtr | method |
Methods
BeginInvoke(ValueType, AsyncCallback, Object)
Delegate for the CreateDictionaryFromArray<KeyType, ValueType>(ValueType[], CollectionOps.GetKeyFromValueItem<KeyType, ValueType>) methods, whose task is to extract whatever is the key from the given item
Declaration
public virtual IAsyncResult BeginInvoke(ValueType item, AsyncCallback callback, object object)
Parameters
Type | Name | Description |
---|---|---|
ValueType | item | |
AsyncCallback | callback | |
Object | object |
Returns
Type | Description |
---|---|
IAsyncResult |
EndInvoke(IAsyncResult)
Delegate for the CreateDictionaryFromArray<KeyType, ValueType>(ValueType[], CollectionOps.GetKeyFromValueItem<KeyType, ValueType>) methods, whose task is to extract whatever is the key from the given item
Declaration
public virtual KeyType EndInvoke(IAsyncResult result)
Parameters
Type | Name | Description |
---|---|---|
IAsyncResult | result |
Returns
Type | Description |
---|---|
KeyType |
Invoke(ValueType)
Delegate for the CreateDictionaryFromArray<KeyType, ValueType>(ValueType[], CollectionOps.GetKeyFromValueItem<KeyType, ValueType>) methods, whose task is to extract whatever is the key from the given item
Declaration
public virtual KeyType Invoke(ValueType item)
Parameters
Type | Name | Description |
---|---|---|
ValueType | item |
Returns
Type | Description |
---|---|
KeyType |