public void Process(IJumpToInstruction jmp) { if (!_processed.Add(jmp)) { throw new InvalidProgramException($"The jump instruction ({jmp}) has already been processed."); } }
public Boolean TryProcess(IJumpToInstruction jmp) { return(_processed.Add(jmp)); }
public bool TryProcess(IJumpToInstruction jmp) => _processed.Add(jmp);