docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SimpleTuple<T1, T2>

    This is simplified Tuple struct that holds only two elements, and doesn't implement any operations.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.ProBuilder
    Assembly: Unity.ProBuilder.dll
    Syntax
    public struct SimpleTuple<T1, T2>
    Type Parameters
    Name Description
    T1

    First element.

    T2

    Second element.

    Constructors

    SimpleTuple(T1, T2)

    Constructs a simplified Tuple with two elements.

    Declaration
    public SimpleTuple(T1 item1, T2 item2)
    Parameters
    Type Name Description
    T1 item1

    First element.

    T2 item2

    Second element.

    Properties

    item1

    Gets or sets the first element.

    Declaration
    public T1 item1 { get; set; }
    Property Value
    Type Description
    T1

    item2

    Gets or sets the second element.

    Declaration
    public T2 item2 { get; set; }
    Property Value
    Type Description
    T2

    Methods

    ToString()

    Returns a string that represents this Tuple.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A comma-delimited string (for example "[item1],[item2]").

    Overrides
    ValueType.ToString()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)