Jump to: navigation, search

Difference between revisions of "Activity:GetFromDictionary (Activity)"


Line 9: Line 9:
 
| version = 2.1+
 
| version = 2.1+
 
}}
 
}}
The GetFromDictionary activity gets and returns an item, specified by an unique key, from a given dictionary.
+
The GetFromDictionary activity gets and returns an item, specified by an unique key, from a given dictionary. If the data type of the returned item is known, the GetFromDictionary<T> activity, with a generic type argument, should be used.
  
 
==Arguments==
 
==Arguments==
Line 27: Line 27:
 
==Usage==
 
==Usage==
 
This activity gets and returns an item, specified by its unique key, from the given dictionary.
 
This activity gets and returns an item, specified by its unique key, from the given dictionary.
 +
 +
{{Hint|Use GetFromDictionary<T> if the data type of the item is known.}}
  
 
==See also==
 
==See also==

Revision as of 12:43, 7 January 2015

Get from Dictionary
Name GetFromDictionary
Purpose Get an item from a dictionary
Category Collection
Returns True if successfull
Version 2.1+

The GetFromDictionary activity gets and returns an item, specified by an unique key, from a given dictionary. If the data type of the returned item is known, the GetFromDictionary<T> activity, with a generic type argument, should be used.

Arguments

Argument Type Direction Purpose
Dictionary IDictionary<String,Object> In The dictionary containing the items
Key String In The item's key
Result Boolean Out True if item has been found
Value Object Out The item returned

Usage

This activity gets and returns an item, specified by its unique key, from the given dictionary.

IC Hint square.pngUse GetFromDictionary<T> if the data type of the item is known.

See also