示例#1
0
            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));
            }
示例#2
0
 public DataXRef(DataXRefType type, int address)
 {
     Type    = type;
     Address = address;
 }