【发布时间】:2019-07-23 08:41:30
【问题描述】:
在 C# (7+) 中我可以声明 (Better naming in Tuple classes than "Item1", "Item2")
var myList = new List<(int first, int second)>();
以后参考项目:
var a = myList[0].second;
VB.NET 中是否有等价的语法?
编辑 从 Andrew Morton 的回答来看,等效的语法是:
Dim myList = New List(Of (first As Integer, second As Integer))
Dim a = myList(0).second
【问题讨论】:
标签: vb.net