public bool Remover(Cocina a) { bool retorno = false; if (this - a) { retorno = true; } return(retorno); }
public bool Agregar(Cocina a) { bool retorno = false; if (this + a) { retorno = true; } return(retorno); }
private int GetIndice(Cocina c) { int i; for (i = 0; i < this._lista.Count; i++) { if (this._lista[i] == c) { return(i); } } i = -1;//no encontro ninguno igual return(i); }
private int GetIndice(Cocina a) { int i = -1; foreach (Cocina item in this._lista) { i++; if (item.Equals(a)) { return(i); } } return(-1); }
public bool Remover(Cocina c) { return(this - c); }
public bool Agregar(Cocina c) { return(this + c); }
private int GetIndice(Cocina c) { return(this._lista.IndexOf(c)); }