public virtual void Clear() { // Only clear items of this type // that match the predicate. var items = RealObject .OfType <TNew>() .ToArray(); foreach (var item in items) { RealObject.Remove(item); } }
public virtual bool Remove(TNew item) => RealObject.Remove(item);
public virtual bool Remove(TGroup group) { return(RealObject.Remove(group)); }
public virtual bool Remove(TGroup group) => RealObject.Remove(group);
public virtual bool Remove(TNew item) { return(RealObject.Remove(item)); }