ValueTuple.CreateValueTuple.CreateValueTuple.CreateValueTuple.Create Method

多載

 Create() Create() Create() Create() 建立不含元件的新值元組。Creates a new value tuple with zero components. Create(T1, T2, T3, T4, T5, T6, T7, T8) Create(T1, T2, T3, T4, T5, T6, T7, T8) Create(T1, T2, T3, T4, T5, T6, T7, T8) Create(T1, T2, T3, T4, T5, T6, T7, T8) 建立含有 8 個元件的新值元組 (八重物件)。Creates a new value tuple with 8 components (an octuple). Create(T1, T2, T3, T4, T5, T6, T7) Create(T1, T2, T3, T4, T5, T6, T7) Create(T1, T2, T3, T4, T5, T6, T7) Create(T1, T2, T3, T4, T5, T6, T7) 建立含有 7 個元件的新值元組 (七重物件)。Creates a new value tuple with 7 components (a septuple). Create(T1, T2, T3, T4, T5, T6) Create(T1, T2, T3, T4, T5, T6) Create(T1, T2, T3, T4, T5, T6) Create(T1, T2, T3, T4, T5, T6) 建立含有 6 個元件的新值元組 (六重物件)。Creates a new value tuple with 6 components (a sexuple). Create(T1, T2, T3, T4, T5) Create(T1, T2, T3, T4, T5) Create(T1, T2, T3, T4, T5) Create(T1, T2, T3, T4, T5) 建立含有 5 個元件的新值元組 (五重物件)。Creates a new value tuple with 5 components (a quintuple). Create(T1, T2, T3, T4) Create(T1, T2, T3, T4) Create(T1, T2, T3, T4) Create(T1, T2, T3, T4) 建立含有 4 個元件的新值元組 (四重物件)。Creates a new value tuple with 4 components (a quadruple). Create(T1, T2, T3) Create(T1, T2, T3) Create(T1, T2, T3) Create(T1, T2, T3) 建立含有 3 個元件的新值元組 (三重物件)。Creates a new value tuple with 3 components (a triple). Create(T1, T2) Create(T1, T2) Create(T1, T2) Create(T1, T2) 建立含有 2 個元件的新值元組 (一對)。Creates a new value tuple with 2 components (a pair). Create(T1) Create(T1) Create(T1) Create(T1) 建立含有 1 個元件的新值元組 (單一物件)。Creates a new value tuple with 1 component (a singleton).

Create()Create()Create()Create()

``````public:
static ValueTuple Create();``````
``public static ValueTuple Create ();``
``static member Create : unit -> ValueTuple``
``Public Shared Function Create () As ValueTuple``

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

``````public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
static ValueTuple<T1, T2, T3, T4, T5, T6, T7, ValueTuple<T8>> Create(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7, T8 item8);``````
``public static ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8>> Create<T1,T2,T3,T4,T5,T6,T7,T8> (T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7, T8 item8);``
``static member Create : 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * 'T8 -> ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, ValueTuple<'T8>>``
``Public Shared Function Create(Of T1, T2, T3, T4, T5, T6, T7, T8) (item1 As T1, item2 As T2, item3 As T3, item4 As T4, item5 As T5, item6 As T6, item7 As T7, item8 As T8) As ValueTuple(Of T1, T2, T3, T4, T5, T6, T7, ValueTuple(Of T8))``

T1

T2

T3

T4

T5

T6

T7

T8

item1
T1 T1 T1 T1

item2
T2 T2 T2 T2

item3
T3 T3 T3 T3

item4
T4 T4 T4 T4

item5
T5 T5 T5 T5

item6
T6 T6 T6 T6

item7
T7 T7 T7 T7

item8
T8 T8 T8 T8

傳回

ValueTuple<T1,T2,T3,T4,T5,T6,T7,ValueTuple<T8>>

備註

Create 是協助程式方法，您可以呼叫它來具現化8個元件的值元組，而不需要明確指定其元件的類型。Create is a helper method that you can call to instantiate an 8-component value tuple without having to explicitly specify the types of its components.

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

``````public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7>
static ValueTuple<T1, T2, T3, T4, T5, T6, T7> Create(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7);``````
``public static ValueTuple<T1,T2,T3,T4,T5,T6,T7> Create<T1,T2,T3,T4,T5,T6,T7> (T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7);``
``static member Create : 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 -> ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7>``
``Public Shared Function Create(Of T1, T2, T3, T4, T5, T6, T7) (item1 As T1, item2 As T2, item3 As T3, item4 As T4, item5 As T5, item6 As T6, item7 As T7) As ValueTuple(Of T1, T2, T3, T4, T5, T6, T7)``

T1

T2

T3

T4

T5

T6

T7

item1
T1 T1 T1 T1

item2
T2 T2 T2 T2

item3
T3 T3 T3 T3

item4
T4 T4 T4 T4

item5
T5 T5 T5 T5

item6
T6 T6 T6 T6

item7
T7 T7 T7 T7

備註

Create 是協助程式方法，您可以呼叫它來具現化7個元件值元組，而不需要明確指定其元件的類型。Create is a helper method that you can call to instantiate an 7-component value tuple without having to explicitly specify the types of its components.

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

``````public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
static ValueTuple<T1, T2, T3, T4, T5, T6> Create(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6);``````
``public static ValueTuple<T1,T2,T3,T4,T5,T6> Create<T1,T2,T3,T4,T5,T6> (T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6);``
``static member Create : 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 -> ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5, 'T6>``
``Public Shared Function Create(Of T1, T2, T3, T4, T5, T6) (item1 As T1, item2 As T2, item3 As T3, item4 As T4, item5 As T5, item6 As T6) As ValueTuple(Of T1, T2, T3, T4, T5, T6)``

T1

T2

T3

T4

T5

T6

item1
T1 T1 T1 T1

item2
T2 T2 T2 T2

item3
T3 T3 T3 T3

item4
T4 T4 T4 T4

item5
T5 T5 T5 T5

item6
T6 T6 T6 T6

備註

Create 是協助程式方法，您可以呼叫它來具現化6個元件的值元組，而不需要明確指定其元件的類型。Create is a helper method that you can call to instantiate a 6-component value tuple without having to explicitly specify the types of its components.

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

``````public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
static ValueTuple<T1, T2, T3, T4, T5> Create(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5);``````
``public static ValueTuple<T1,T2,T3,T4,T5> Create<T1,T2,T3,T4,T5> (T1 item1, T2 item2, T3 item3, T4 item4, T5 item5);``
``static member Create : 'T1 * 'T2 * 'T3 * 'T4 * 'T5 -> ValueTuple<'T1, 'T2, 'T3, 'T4, 'T5>``
``Public Shared Function Create(Of T1, T2, T3, T4, T5) (item1 As T1, item2 As T2, item3 As T3, item4 As T4, item5 As T5) As ValueTuple(Of T1, T2, T3, T4, T5)``

T1

T2

T3

T4

T5

item1
T1 T1 T1 T1

item2
T2 T2 T2 T2

item3
T3 T3 T3 T3

item4
T4 T4 T4 T4

item5
T5 T5 T5 T5

備註

Create 是協助程式方法，您可以呼叫它來具現化5個元件的值元組，而不需要明確指定其元件的類型。Create is a helper method that you can call to instantiate a 5-component value tuple without having to explicitly specify the types of its components.

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

``````public:
generic <typename T1, typename T2, typename T3, typename T4>
static ValueTuple<T1, T2, T3, T4> Create(T1 item1, T2 item2, T3 item3, T4 item4);``````
``public static ValueTuple<T1,T2,T3,T4> Create<T1,T2,T3,T4> (T1 item1, T2 item2, T3 item3, T4 item4);``
``static member Create : 'T1 * 'T2 * 'T3 * 'T4 -> ValueTuple<'T1, 'T2, 'T3, 'T4>``
``Public Shared Function Create(Of T1, T2, T3, T4) (item1 As T1, item2 As T2, item3 As T3, item4 As T4) As ValueTuple(Of T1, T2, T3, T4)``

T1

T2

T3

T4

item1
T1 T1 T1 T1

item2
T2 T2 T2 T2

item3
T3 T3 T3 T3

item4
T4 T4 T4 T4

備註

Create 是協助程式方法，您可以呼叫它來具現化4個元件的值元組，而不需要明確指定其元件的類型。Create is a helper method that you can call to instantiate an 4-component value tuple without having to explicitly specify the types of its components.

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

``````public:
generic <typename T1, typename T2, typename T3>
static ValueTuple<T1, T2, T3> Create(T1 item1, T2 item2, T3 item3);``````
``public static ValueTuple<T1,T2,T3> Create<T1,T2,T3> (T1 item1, T2 item2, T3 item3);``
``static member Create : 'T1 * 'T2 * 'T3 -> ValueTuple<'T1, 'T2, 'T3>``
``Public Shared Function Create(Of T1, T2, T3) (item1 As T1, item2 As T2, item3 As T3) As ValueTuple(Of T1, T2, T3)``

T1

T2

T3

item1
T1 T1 T1 T1

item2
T2 T2 T2 T2

item3
T3 T3 T3 T3

備註

Create 是協助程式方法，您可以呼叫它來具現化3個元件的值元組，而不需要明確指定其元件的類型。Create is a helper method that you can call to instantiate an 3-component value tuple without having to explicitly specify the types of its components.

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

``````public:
generic <typename T1, typename T2>
static ValueTuple<T1, T2> Create(T1 item1, T2 item2);``````
``public static ValueTuple<T1,T2> Create<T1,T2> (T1 item1, T2 item2);``
``static member Create : 'T1 * 'T2 -> ValueTuple<'T1, 'T2>``
``Public Shared Function Create(Of T1, T2) (item1 As T1, item2 As T2) As ValueTuple(Of T1, T2)``

T1

T2

item1
T1 T1 T1 T1

item2
T2 T2 T2 T2

備註

Create 是協助程式方法，您可以呼叫它來具現化2個元件的值元組，而不需要明確指定其元件的類型。Create is a helper method that you can call to instantiate an 2-component value tuple without having to explicitly specify the types of its components.

Create<T1>(T1)Create<T1>(T1)Create<T1>(T1)Create<T1>(T1)

``````public:
generic <typename T1>
static ValueTuple<T1> Create(T1 item1);``````
``public static ValueTuple<T1> Create<T1> (T1 item1);``
``static member Create : 'T1 -> ValueTuple<'T1>``
``Public Shared Function Create(Of T1) (item1 As T1) As ValueTuple(Of T1)``

T1

item1
T1 T1 T1 T1

備註

Create 是協助程式方法，您可以呼叫它來具現化1個元件的值元組，而不需要明確指定其元件的類型。Create is a helper method that you can call to instantiate a 1-component value tuple without having to explicitly specify the type of its component.