public virtual void Uninstall(Net.Vpc.Upa.Entity e) { foreach (Net.Vpc.Upa.Callbacks.Trigger t in new System.Collections.Generic.List <Net.Vpc.Upa.Callbacks.Trigger>(addedTriggers)) { foreach (Net.Vpc.Upa.Callbacks.Trigger t2 in new System.Collections.Generic.List <Net.Vpc.Upa.Callbacks.Trigger>(e.GetTriggers())) { if (t.Equals(t2)) { e.RemoveTrigger(t.GetName()); addedTriggers.Remove(t); break; } } } }