质量为本、客户为根、勇于拼搏、务实创新
c#元组创建的有哪些方法
在C#中,可使用以下方法创建元组:
Tuple<int, string> tuple = new Tuple<int, string>(1, "hello");
ValueTuple<int, string> valueTuple = (1, "hello");
var tuple = (count: 1, message: "hello");
TOP