Ejemplo n.º 1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    Save();
                }

                _context      = null;
                _fileName     = null;
                _jsonManager  = null;
                disposedValue = true;
            }
        }
Ejemplo n.º 2
0
 public GenericRepository(string fileName)
 {
     _jsonManager = new JSONManager();
     _context     = (T)_jsonManager.DeserialezeFile <T1>(fileName);
     _fileName    = fileName;
 }