public boolean remove(Object object) {Iterator<?> it = iterator();if (object != null) {while (it.hasNext()) {if (object.equals(it.next())) {it.remove();return true;}}} else {while (it.hasNext()) {if (it.next() == null) {it.remove();return true;}}}return false;}

public virtual bool remove(object @object){java.util.Iterator<E> it = iterator();if (@object != null){while (it.hasNext()){if (@object.Equals(it.next())){it.remove();return true;}}}else{while (it.hasNext()){if (it.next() == null){it.remove();return true;}}}return false;}
