Pair

Description

struct Tinman.Core.Util.Pair
<TFirst>
<TSecond>

A struct for storing tuples of length two.

Public / Constructors

Get


public static method Get → (2)

first opt : TFirst = default(TFirst)

The first tuple element.

second opt : TSecond = default(TSecond)

The second tuple element.

returns → Pair<TFirst, TSecond>

The tuple value.

Creates a new instance of Pair.

Public / Methods

Index​Format


public static method IndexFormat → (2)

first in : IBlockIndexFormat<TFirst>

[not-null]
Block index format of first tuple element.

second in : IBlockIndexFormat<TSecond>

[not-null]
Block index format of second tuple element.

returns → IBlockIndexFormat<Pair<TFirst, TSecond>>

The IBlockIndexFormat object.

Creates a new instance of IBlockIndexFormat for this tuple type.

Public / Attributes

First


public readonly attribute First → (TFirst)

The first tuple value.

Second


public readonly attribute Second → (TSecond)

The second tuple value.