Search Results for

    Show / Hide Table of Contents

    Struct _<TLinkAddress>

    A utility struct that provides convenient implicit conversions for creating links from various tuple combinations. The underscore name follows functional programming conventions for placeholder/utility types.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Platform.Protocols.Lino
    Assembly: Platform.Protocols.Lino.dll
    Syntax
    public struct _<TLinkAddress>
    Type Parameters
    Name Description
    TLinkAddress

    The type used for link addresses/identifiers. This can be any type that uniquely identifies a link, such as string, int, or Guid.

    Constructors

    | Edit this page View Source

    _(Link<TLinkAddress>)

    Initializes a new instance with the specified link.

    Declaration
    public _(Link<TLinkAddress> id)
    Parameters
    Type Name Description
    Link<TLinkAddress> id

    The link to wrap.

    Fields

    | Edit this page View Source

    Link

    Gets the underlying link represented by this utility struct.

    Declaration
    public readonly Link<TLinkAddress> Link
    Field Value
    Type Description
    Link<TLinkAddress>

    Operators

    | Edit this page View Source

    implicit operator _<TLinkAddress>(Link<TLinkAddress>)

    Implicitly converts a link to this utility struct.

    Declaration
    public static implicit operator _<TLinkAddress>(Link<TLinkAddress> value)
    Parameters
    Type Name Description
    Link<TLinkAddress> value

    The link to convert.

    Returns
    Type Description
    _<TLinkAddress>
    | Edit this page View Source

    implicit operator Link<TLinkAddress>(_<TLinkAddress>)

    Implicitly converts this utility struct back to a link.

    Declaration
    public static implicit operator Link<TLinkAddress>(_<TLinkAddress> value)
    Parameters
    Type Name Description
    _<TLinkAddress> value

    The utility struct to convert.

    Returns
    Type Description
    Link<TLinkAddress>
    | Edit this page View Source

    implicit operator _<TLinkAddress>((TLinkAddress, Link<TLinkAddress>, Link<TLinkAddress>, Link<TLinkAddress>))

    Implicitly converts a tuple of address and three links to this utility struct.

    Declaration
    public static implicit operator _<TLinkAddress>((TLinkAddress, Link<TLinkAddress>, Link<TLinkAddress>, Link<TLinkAddress>) value)
    Parameters
    Type Name Description
    (TLinkAddress, Link<TLinkAddress>, Link<TLinkAddress>, Link<TLinkAddress>) value

    The tuple containing address and three links.

    Returns
    Type Description
    _<TLinkAddress>
    | Edit this page View Source

    implicit operator _<TLinkAddress>((TLinkAddress, Link<TLinkAddress>, Link<TLinkAddress>))

    Implicitly converts a tuple of address and two links to this utility struct.

    Declaration
    public static implicit operator _<TLinkAddress>((TLinkAddress, Link<TLinkAddress>, Link<TLinkAddress>) value)
    Parameters
    Type Name Description
    (TLinkAddress, Link<TLinkAddress>, Link<TLinkAddress>) value

    The tuple containing address and two links.

    Returns
    Type Description
    _<TLinkAddress>
    | Edit this page View Source

    implicit operator _<TLinkAddress>((TLinkAddress, Link<TLinkAddress>))

    Implicitly converts a tuple of address and link to this utility struct.

    Declaration
    public static implicit operator _<TLinkAddress>((TLinkAddress, Link<TLinkAddress>) value)
    Parameters
    Type Name Description
    (TLinkAddress, Link<TLinkAddress>) value

    The tuple containing address and link.

    Returns
    Type Description
    _<TLinkAddress>
    | Edit this page View Source

    implicit operator _<TLinkAddress>(TLinkAddress)

    Implicitly converts a link address to this utility struct.

    Declaration
    public static implicit operator _<TLinkAddress>(TLinkAddress id)
    Parameters
    Type Name Description
    TLinkAddress id

    The link address to convert.

    Returns
    Type Description
    _<TLinkAddress>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX