Show / Hide Table of Contents

Class Tuple<T1, T2>

A tuple/pair class because the version of C# that Unity uses doesn't have this yet.

Inheritance
Object
Tuple<T1, T2>
Namespace: DaggerfallWorkshop.Utility
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class Tuple<T1, T2>
Type Parameters
Name Description
T1

First/left type

T2

Second/right type

Constructors

| Improve this Doc View Source

Tuple(T1, T2)

Declaration
public Tuple(T1 a, T2 b)
Parameters
Type Name Description
T1 a
T2 b
| Improve this Doc View Source

Tuple((T1, T2))

Declaration
public Tuple((T1, T2) valueTuple)
Parameters
Type Name Description
(T1, T2)<T1, T2> valueTuple

Fields

| Improve this Doc View Source

First

Declaration
public T1 First
Field Value
Type Description
T1
| Improve this Doc View Source

Second

Declaration
public T2 Second
Field Value
Type Description
T2

Methods

| Improve this Doc View Source

Make(T1, T2)

Declaration
public static Tuple<T1, T2> Make(T1 a, T2 b)
Parameters
Type Name Description
T1 a
T2 b
Returns
Type Description
Tuple<T1, T2>
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()
| Improve this Doc View Source

ToValueTuple()

Declaration
public (T1, T2) ToValueTuple()
Returns
Type Description
(T1, T2)<T1, T2>
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • Tuple(T1, T2)
    • Tuple((T1, T2))
  • Fields
    • First
    • Second
  • Methods
    • Make(T1, T2)
    • ToString()
    • ToValueTuple()
Back to top Generated by DocFX