【发布时间】:2017-12-30 20:38:32
【问题描述】:
这个问题已经有了答案here。
我试图在我的应用程序中使用元组。所以我想区分元组、字典和列表。
Dictionary<int, string> dic = new Dictionary<int, string>();
Tuple<int, string> tuple = new Tuple<int, string>();
List<int> list = new List<int>();
这三个有什么区别?
【问题讨论】:
-
真的有
List<int, string>这样的东西吗? -
你的列表还能编译吗?
-
"这个问题在这里已经有了答案" 为什么还要再问呢?
-
@HimBromBeere 请看没有区分元组的链接。
-
所以你应该在你的问题中提到这一点。
标签: c# list dictionary tuples