Class IListExtensions
Provides extension methods for formatting collections of Link<TLinkAddress> instances.
Inherited Members
Namespace: Platform.Protocols.Lino
Assembly: Platform.Protocols.Lino.dll
Syntax
public static class IListExtensions
Methods
| Edit this page View SourceFormat<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. |
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. |