更新时间:2023-09-12 10:18:22
If you are using .NET 4.0 you can use a Tuple
.
List<Tuple<T1, T2>> list;
对于旧版本的.NET,您必须创建一个自定义类(除非您很幸运能够在基类库中找到满足您需要的类).
For older versions of .NET you have to create a custom class (unless you are lucky enough to be able to find a class that fits your needs in the base class library).