Delegate CollectionOps.GetKeyFromValueItem<KeyType, ValueType>
Delegate for the CreateDictionaryFromArray<KeyType, ValueType>(ValueType[], GetKeyFromValueItem<KeyType, ValueType>) methods, whose task is to extract whatever is the key from the given item
Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
[Obsolete("This delegate is obsolete and will be removed in a future version.", false)]
public delegate KeyType CollectionOps.GetKeyFromValueItem<KeyType, ValueType>(ValueType item)
Parameters
Type | Name | Description |
---|---|---|
ValueType | item | Item to extract key from |
Returns
Type | Description |
---|---|
KeyType | Item of type KeyType |
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[], 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[], 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[], 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[], 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 |