Skip to main content

LinkageMap

Namespace: IotaSdk

The version of each package a package depends on, keyed by the dependency's runtime ID.

public class LinkageMap : ILinkageMap, System.IDisposable

Inheritance Object → LinkageMap
Implements ILinkageMap, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

LinkageMap(UInt64)​

public LinkageMap(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

ContainsKey(ObjectId)​

Whether a value is stored under key.

public bool ContainsKey(ObjectId key)

Parameters​

key ObjectId

Returns​

Boolean

Entries()​

Every entry, in key order.

public LinkageMapEntry[] Entries()

Returns​

LinkageMapEntry[]

Get(ObjectId)​

The value stored under key, or None if there is none.

public UpgradeInfo? Get(ObjectId key)

Parameters​

key ObjectId

Returns​

UpgradeInfo?

IsEmpty()​

Whether the map holds no entries.

public bool IsEmpty()

Returns​

Boolean

Keys()​

Every key, in key order.

public ObjectId[] Keys()

Returns​

ObjectId[]

Len()​

The number of entries.

public ulong Len()

Returns​

UInt64

Values()​

Every value, ordered by the key it is stored under.

public UpgradeInfo[] Values()

Returns​

UpgradeInfo[]

FromEntries(LinkageMapEntry[])​

Collect entries into a map. A key repeated across entries keeps the value of the last one.

public static LinkageMap FromEntries(LinkageMapEntry[] entries)

Parameters​

entries LinkageMapEntry[]

Returns​

LinkageMap