private static void UnloadModel(DataStructures.Models.Model model) { model.Dispose(); foreach (var kv in Models.Where(x => x.Value == model)) { Models.Remove(kv.Key); } }