在C#中,可以使用以下方法創(chuàng)建元組:
Tuple<int, string> tuple = new Tuple<int, string>(1, "hello");
ValueTuple<int, string> valueTuple = (1, "hello");
var tuple = (count: 1, message: "hello");
億速云公眾號
手機網(wǎng)站二維碼
Copyright ? Yisu Cloud Ltd. All Rights Reserved. 2018 版權(quán)所有
廣州億速云計算有限公司粵ICP備17096448號-1 粵公網(wǎng)安備 44010402001142號增值電信業(yè)務(wù)經(jīng)營許可證編號:B1-20181529