Show / Hide Table of Contents

Class Utility.Tuple

Represents a factory class for creating tuples.

Inheritance
System.Object
Utility.Tuple
Namespace: Manina.Windows.Forms
Assembly: ImageListView.dll
Syntax
public static class Tuple

Methods

| Improve this Doc View Source

Create<T1>(T1)

Creates a new 1-tuple.

Declaration
public static Utility.Tuple<T1> Create<T1>(T1 item1)
Parameters
Type Name Description
T1 item1

The value of the only component of the tuple.

Returns
Type Description
Utility.Tuple<T1>

A 1-tuple whose value is (item1).

Type Parameters
Name Description
T1

The type of the only component of the tuple.

| Improve this Doc View Source

Create<T1, T2>(T1, T2)

Creates a new 2-tuple.

Declaration
public static Utility.Tuple<T1, T2> Create<T1, T2>(T1 item1, T2 item2)
Parameters
Type Name Description
T1 item1

The value of the first component of the tuple.

T2 item2

The value of the second component of the tuple.

Returns
Type Description
Utility.Tuple<T1, T2>

A 2-tuple whose value is (item1, item2).

Type Parameters
Name Description
T1

The type of the first component of the tuple.

T2

The type of the second component of the tuple.

| Improve this Doc View Source

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

Creates a new 3-tuple.

Declaration
public static Utility.Tuple<T1, T2, T3> Create<T1, T2, T3>(T1 item1, T2 item2, T3 item3)
Parameters
Type Name Description
T1 item1

The value of the first component of the tuple.

T2 item2

The value of the second component of the tuple.

T3 item3

The value of the third component of the tuple.

Returns
Type Description
Utility.Tuple<T1, T2, T3>

A 3-tuple whose value is (item1, item2, item3).

Type Parameters
Name Description
T1

The type of the first component of the tuple.

T2

The type of the second component of the tuple.

T3

The type of the third component of the tuple.

Back to top Copyright © 2018 Özgür Özçıtak