public boolean contains(Object object) {Link<E> link = voidLink.next;if (object != null) {while (link != voidLink) {if (object.equals(link.data)) {return true;}link = link.next;}} else {while (link != voidLink) {if (link.data == null) {return true;}link = link.next;}}return false;}
public override bool contains(object @object){java.util.LinkedList.Link<E> link = voidLink.next;if (@object != null){while (link != voidLink){if (@object.Equals(link.data)){return true;}link = link.next;}}else{while (link != voidLink){if ((object)link.data == null){return true;}link = link.next;}}return false;}