Class MemoryStorage
- Namespace
- SharpConsoleUI.Registry
- Assembly
- SharpConsoleUI.dll
In-memory IRegistryStorage implementation for testing. No file I/O. Each Save() stores a deep clone so mutations to the original don't affect stored data.
public class MemoryStorage : IRegistryStorage
- Inheritance
-
MemoryStorage
- Implements
- Inherited Members
- Extension Methods
Methods
Load()
Loads the registry tree. Returns null if no data exists yet.
public JsonNode? Load()
Returns
Save(JsonNode)
Persists the registry tree.
public void Save(JsonNode root)
Parameters
rootJsonNode