private SlotDetail ByAddress(int address) { TreeIntObject tree = (TreeIntObject)TreeIntObject.Find(_slots, new TreeIntObject( address, null)); return(tree == null ? null : (SlotDetail)tree._object); }
public virtual void Add(SlotDetail slot) { if (TreeIntObject.Find(_slots, new TreeIntObject(slot._slot.Address())) != null) { _dupes.Add(new Pair(ByAddress(slot._slot.Address()), slot)); } _slots = (TreeIntObject)((TreeIntObject)TreeIntObject.Add(_slots, new TreeIntObject (slot._slot.Address(), slot))); }