码迷,mamicode.com
首页 > 其他好文 > 详细

Tuple Class

时间:2017-04-13 13:44:01      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:ons   display   creates   dia   single   UI   led   arch   content   

Inheritance Hierarchy

 
System.Object
??System.Tuple

Methods

 NameDescription
技术分享技术分享 Create<T1>(T1)

Creates a new 1-tuple, or singleton.

技术分享技术分享 Create<T1,?T2>(T1,?T2)

Creates a new 2-tuple, or pair.

技术分享技术分享 Create<T1,?T2,?T3>(T1,?T2,?T3)

Creates a new 3-tuple, or triple.

技术分享技术分享 Create<T1,?T2,?T3,?T4>(T1,?T2,?T3,?T4)

Creates a new 4-tuple, or quadruple.

技术分享技术分享 Create<T1,?T2,?T3,?T4,?T5>(T1,?T2,?T3,?T4,?T5)

Creates a new 5-tuple, or quintuple.

技术分享技术分享 Create<T1,?T2,?T3,?T4,?T5,?T6>(T1,?T2,?T3,?T4,?T5,?T6)

Creates a new 6-tuple, or sextuple.

技术分享技术分享 Create<T1,?T2,?T3,?T4,?T5,?T6,?T7>(T1,?T2,?T3,?T4,?T5,?T6,?T7)

Creates a new 7-tuple, or septuple.

技术分享技术分享 Create<T1,?T2,?T3,?T4,?T5,?T6,?T7,?T8>(T1,?T2,?T3,?T4,?T5,?T6,?T7,?T8)

Creates a new 8-tuple, or octuple.

// Create a 7-tuple.
var population = new Tuple<string, int, int, int, int, int, int>(
                           "New York", 7891957, 7781984, 
                           7894862, 7071639, 7322564, 8008278);
// Display the first and last elements.
Console.WriteLine("Population of {0} in 2000: {1:N0}",
                  population.Item1, population.Item7);
// The example displays the following output:
//       Population of New York in 2000: 8,008,278
//创建一个7元组。
var population = Tuple.Create(“New York”,7891957,7781984,7894862,7071639,7322564,8003278);
//显示第一个和最后一个元素。
Console.WriteLine(“2000年的人口{0}:{1:N0}”,
                  population.Item1,population.Item7);
//该示例显示以下输出:
// 2000年纽约人口:8,008,278

 

Tuple Class

标签:ons   display   creates   dia   single   UI   led   arch   content   

原文地址:http://www.cnblogs.com/Javi/p/6703443.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!