GrpcFeatureFlagMap
Namespace: IotaSdk
The status of each protocol feature flag, keyed by flag name.
public class GrpcFeatureFlagMap : IGrpcFeatureFlagMap, System.IDisposable
Inheritance Object → GrpcFeatureFlagMap
Implements IGrpcFeatureFlagMap, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
GrpcFeatureFlagMap(UInt64)
public GrpcFeatureFlagMap(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
ContainsKey(String)
Whether a value is stored under key.
public bool ContainsKey(string key)
Parameters
key String
Returns
Entries()
Every entry, in key order.
public GrpcFeatureFlagMapEntry[] Entries()
Returns
Get(String)
The value stored under key, or None if there is none.
public bool? Get(string key)
Parameters
key String
Returns
IsEmpty()
Whether the map holds no entries.
public bool IsEmpty()
Returns
Keys()
Every key, in key order.
public String[] Keys()
Returns
Len()
The number of entries.
public ulong Len()
Returns
Values()
Every value, ordered by the key it is stored under.
public Boolean[] Values()
Returns
FromEntries(GrpcFeatureFlagMapEntry[])
Collect entries into a map. A key repeated across entries keeps the value of the last one.
public static GrpcFeatureFlagMap FromEntries(GrpcFeatureFlagMapEntry[] entries)
Parameters
entries GrpcFeatureFlagMapEntry[]