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
Entries()
Every entry, in key order.
public LinkageMapEntry[] Entries()
Returns
Get(ObjectId)
The value stored under key, or None if there is none.
public UpgradeInfo? Get(ObjectId key)
Parameters
key ObjectId
Returns
IsEmpty()
Whether the map holds no entries.
public bool IsEmpty()
Returns
Keys()
Every key, in key order.
public ObjectId[] Keys()
Returns
Len()
The number of entries.
public ulong Len()
Returns
Values()
Every value, ordered by the key it is stored under.
public UpgradeInfo[] Values()
Returns
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[]