在C#中,可以使用以下方法创建元组:
Tuple<int, string> tuple = new Tuple<int, string>(1, "hello");
ValueTuple<int, string> valueTuple = (1, "hello");
var tuple = (count: 1, message: "hello");