public void RefreshStatic() { foreach (var Entry in Caching) { try { var disp = Entry.Value as IDisposable; if (disp != null) { disp.Dispose(); } } catch { } } Caching.Clear(); }