Skip to main content

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​

Boolean

Entries()​

Every entry, in key order.

public GrpcFeatureFlagMapEntry[] Entries()

Returns​

GrpcFeatureFlagMapEntry[]

Get(String)​

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

public bool? Get(string key)

Parameters​

key String

Returns​

Boolean?

IsEmpty()​

Whether the map holds no entries.

public bool IsEmpty()

Returns​

Boolean

Keys()​

Every key, in key order.

public String[] Keys()

Returns​

String[]

Len()​

The number of entries.

public ulong Len()

Returns​

UInt64

Values()​

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

public Boolean[] Values()

Returns​

Boolean[]

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[]

Returns​

GrpcFeatureFlagMap