public boolean contains(Object object) {if (object != null) {for (E element : a) {if (object.equals(element)) {return true;}}} else {for (E element : a) {if (element == null) {return true;}}}return false;}

public boolean contains ( Object object ) { if ( object != null ) { for ( E element : a ) { if ( object . equals ( element ) ) { return true ; } } } else { for ( E element : a ) { if ( element == null ) { return true ; } } } return false ; }
public override bool contains(object @object){if (@object != null){foreach (E element in a){if (@object.Equals(element)){return true;}}}else{foreach (E element in a){if ((object)element == null){return true;}}}return false;}
