public virtual void Remove(IListener4 listener) { if (_listeners == null) { return; } _listeners.Remove(listener); }
public void Remove(object @object) { if (!Contains(@object)) { return; } _modified.Remove(@object); _removedAfterModified.Add(@object); }
public virtual void TestRemove() { IdentitySet4 set = new IdentitySet4(); object obj = new object(); set.Add(obj); Assert.IsTrue(set.Contains(obj)); set.Remove(obj); Assert.IsFalse(set.Contains(obj)); }