zoukankan      html  css  js  c++  java
  • Tuple Class

    Inheritance Hierarchy

     
    System.Object
      System.Tuple

    Methods

     NameDescription
    System_CAPS_pubmethodSystem_CAPS_static Create<T1>(T1)

    Creates a new 1-tuple, or singleton.

    System_CAPS_pubmethodSystem_CAPS_static Create<T1, T2>(T1, T2)

    Creates a new 2-tuple, or pair.

    System_CAPS_pubmethodSystem_CAPS_static Create<T1, T2, T3>(T1, T2, T3)

    Creates a new 3-tuple, or triple.

    System_CAPS_pubmethodSystem_CAPS_static Create<T1, T2, T3, T4>(T1, T2, T3, T4)

    Creates a new 4-tuple, or quadruple.

    System_CAPS_pubmethodSystem_CAPS_static Create<T1, T2, T3, T4, T5>(T1, T2, T3, T4, T5)

    Creates a new 5-tuple, or quintuple.

    System_CAPS_pubmethodSystem_CAPS_static Create<T1, T2, T3, T4, T5, T6>(T1, T2, T3, T4, T5, T6)

    Creates a new 6-tuple, or sextuple.

    System_CAPS_pubmethodSystem_CAPS_static Create<T1, T2, T3, T4, T5, T6, T7>(T1, T2, T3, T4, T5, T6, T7)

    Creates a new 7-tuple, or septuple.

    System_CAPS_pubmethodSystem_CAPS_static 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
  • 相关阅读:
    FreeCodeCamp( FCC)前端工程师 基础算法练习 分析与解答
    关于AuthorizeAttribute使用
    互联网菜鸟历险记之一
    FreeMarker与Spring MVC的结合应用
    SpringMVC上传文件
    桥接模式
    在Openfire中使用自己的数据表之修改系统属性
    在Openfire中使用自己的数据表之修改配置文件
    SpringMVC中使用DWR
    基于注解的DWR使用
  • 原文地址:https://www.cnblogs.com/Javi/p/6703443.html
Copyright © 2011-2022 走看看