OTX Reference  
OpenTestSystem.Otx.Core.Terms.MapGetKeyList Class Reference

Returns key list of a Map. More...

Inheritance diagram for OpenTestSystem.Otx.Core.Terms.MapGetKeyList:
Inheritance graph

Public Attributes

MapTerm map
 Cardinality [1]
Reference to a map. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Returns key list of a Map.

MapGetKeyList is a term which returns the result as a list of the keys of a<c>Map.

Note
IMPORTANT - The order in which the keys of a Map are returned is not defined!
Syntax
ListTerm = MapGetKeyList(MapTerm);
Examples
// Local Declarations
Map<Integer, String> map = {{1:"text1"}, {2;"text2"}};
List<Integer> result;
//Returns result = {1, 2}
result = MapGetKeyList(map);
MapTerm map
Cardinality [1] Reference to a map.
Definition: Core.cs:7614

Member Data Documentation

◆ map

MapTerm OpenTestSystem.Otx.Core.Terms.MapGetKeyList.map

Cardinality [1]
Reference to a map.