IReadonlyList.Item
property · IReadonlyListcAlgo.API.Collections
DesktopCLICloud
Represents the item contained in the collection at a specific index
Definition
T Item {get;}
readonlyList[index: int] -> T
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
index | int | int | The position in the collection where the item is contained |
Returns T
Examples
var robots = AlgoRegistry.Robots;
if (robots.Count > 0)
Print("First installed cBot: {0}", robots[0].Name);
robots = api.AlgoRegistry.Robots
if robots.Count > 0:
api.Print(f"First installed cBot: {robots[0].Name}")