Tuple 问题!
Tuple 类 添加什么引用? 为什么错误列表显示错误 1 命名空间“System”中不存在类型或命名空间名称“Tuple”(是缺少程序集引用吗?) E:\C#123456789\ConsoleApplication10\ConsoleApplication10\Program.cs 5 14 ConsoleApplication10
程序代码:using System;
namespace Test
{
class Program
{
static void Main(string[] args)
{
var pair1 = new Tuple<int, string>(1, "A");
// 还是
var pair2 = Tuple.Create(1, "A");
}
}
}








