Skip to content
Concord

Interface IEnumValueStore

Namespace
Concord
Assembly
Concord.Enums.dll

Runtime-adapter-supplied storage for the extended enum id-to-value map. Concord owns the model and the allocation rules; the adapter owns where the map lives.

public interface IEnumValueStore

Methods

Save(IReadOnlyDictionary<string, long>)

Stores the map. Concord calls this after every allocation pass.

void Save(IReadOnlyDictionary<string, long> map)

Parameters

map IReadOnlyDictionary<string, long>

The id-to-value pairs to store, including ids no live declaration claims.

TryLoad(out IReadOnlyDictionary<string, long>)

Loads the stored map.

bool TryLoad(out IReadOnlyDictionary<string, long> map)

Parameters

map IReadOnlyDictionary<string, long>

The stored id-to-value pairs, empty when nothing is stored yet.

Returns

bool

true when a map was loaded.