Search Results for

    Show / Hide Table of Contents

    Class IListExtensions

    Provides extension methods for formatting collections of Link<TLinkAddress> instances.

    Inheritance
    object
    IListExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Platform.Protocols.Lino
    Assembly: Platform.Protocols.Lino.dll
    Syntax
    public static class IListExtensions

    Methods

    | Edit this page View Source

    Format<TLinkAddress>(IList<Link<TLinkAddress>>)

    Formats a collection of links as a multi-line string with each link on a separate line.

    Declaration
    public static string Format<TLinkAddress>(this IList<Link<TLinkAddress>> links)
    Parameters
    Type Name Description
    IList<Link<TLinkAddress>> links

    The collection of links to format.

    Returns
    Type Description
    string

    A multi-line string representation of the links.

    Type Parameters
    Name Description
    TLinkAddress

    The type used for link addresses/identifiers.

    | Edit this page View Source

    Format<TLinkAddress>(IList<Link<TLinkAddress>>, bool)

    Formats a collection of links as a multi-line string with optional parentheses trimming for cleaner output.

    Declaration
    public static string Format<TLinkAddress>(this IList<Link<TLinkAddress>> links, bool lessParentheses)
    Parameters
    Type Name Description
    IList<Link<TLinkAddress>> links

    The collection of links to format.

    bool lessParentheses

    True to remove outer parentheses from each link for cleaner formatting; false to use standard formatting.

    Returns
    Type Description
    string

    A multi-line string representation of the links.

    Type Parameters
    Name Description
    TLinkAddress

    The type used for link addresses/identifiers.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX