【发布时间】:2019-05-27 06:01:42
【问题描述】:
我创建了一个 List Tuple String int 像这样:
public static List<Tuple<string, int>> myGrid = new List<Tuple<string, int>>();
myGrid.Add(new Tuple<string, int>("Alpha", 159));
我这样做了,因为我需要在我的代码中使用索引。
如何获取Tuple Item1 或Item2 的List 索引?
【问题讨论】: