public void Refresh() { Detach(); foreach (var redirect in Redirects.ToList()) { if (redirect.WillRemove) { Redirects.Remove(redirect); } } Attach(); }