public void Add(int from, int to, DataXRefType type) { if (!_xRefOut.TryGetValue(from, out var list)) { list = new List <DataXRef>(); _xRefOut[from] = list; } list.Add(new DataXRef(type, to)); if (!_xRefIn.TryGetValue(to, out list)) { list = new List <DataXRef>(); _xRefIn[to] = list; } list.Add(new DataXRef(type, from)); }
public DataXRef(DataXRefType type, int address) { Type = type; Address = address; }