using DevJsonDB.IO; namespace DevJsonDB; public class JsonDB : IDisposable { private IStore store; public JsonDB(IStore store) { this.store = store; } public void Dispose() { this.store.Dispose(); } public void Commit() { this.store.Commit(); } public bool Add(T item) { return this.store.Add(item); } public IEnumerable GetValues() { return this.store.GetValues(); } public IEnumerable GetValues(Func filter) { return this.store.GetValues().Where(filter).ToList(); } }