public bool DeleteSymbol(string name) { SymbolWrapper target = this[name]; if (target != null) { DeleteSymbol(target.Index); return(true); } else { return(false); } }
public SymbolWrapper this[string symbolName] { get { if (SymbolCount == 0) { return(null); } else { SymbolWrapper target = new SymbolWrapper(this, 0); while (!target.Label.Equals(symbolName) && target.Index < SymbolCount) { target.Index++; } return((target.Index < SymbolCount) ? target : null); } } }