Struct id<TLinkAddress>
A readonly struct that explicitly represents a link identifier/address. This type is used to distinguish between regular values and explicit identifiers in link construction.
Inherited Members
Namespace: Platform.Protocols.Lino
Assembly: Platform.Protocols.Lino.dll
Syntax
public readonly struct id<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 Sourceid(TLinkAddress)
Initializes a new identifier with the specified value.
Declaration
public id(TLinkAddress id)
Parameters
Type | Name | Description |
---|---|---|
TLinkAddress | id | The identifier value. |
Fields
| Edit this page View SourceId
Gets the identifier value.
Declaration
public readonly TLinkAddress Id
Field Value
Type | Description |
---|---|
TLinkAddress |
Operators
| Edit this page View Sourceexplicit operator id<TLinkAddress>(TLinkAddress)
Explicitly converts a value to an identifier struct.
Declaration
public static explicit operator id<TLinkAddress>(TLinkAddress id)
Parameters
Type | Name | Description |
---|---|---|
TLinkAddress | id | The value to convert to an identifier. |
Returns
Type | Description |
---|---|
id<TLinkAddress> |