public virtual bool removePost(Post p) { bool b = false; if (MyThreads.Contains(p)) { b = MyThreads.Remove(p); } else { Post par = null; foreach (Post thread in MyThreads) { par = IsParentOf(p, thread); if (par != null) { b = par.comments.Remove(p); break; } } } return(b && p.kill()); }
public virtual bool removeThread(Post p) { return(MyThreads.Remove(p)); }