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
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 SourceLink
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 Sourceimplicit 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> |
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> |
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> |
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> |
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> |
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> |