get

get(int)

按索引获取选项。

public Option get(int index)
范围类型描述
indexInt32期权指数。索引应在 [1..n] 范围内,其中 n 是选项计数。

返回值

检索选项。

也可以看看


get(string)

通过选项名称从集合中获取选项。

public Option get(string name)
范围类型描述
nameString选项名称。

返回值

检索选项。

也可以看看