public bool Match(object current) { var id = ((int)current); if (ids.Find(id) != null) { return(false); } ids = (TreeInt)ids.Add(new TreeInt(id)); return(true); }
public override int MappedId(int oldID) { int classID = MappedClassID(oldID); if (classID != 0) { return(classID); } TreeIntObject res = (TreeIntObject)TreeInt.Find(_tree, oldID); if (res != null) { return((int)res._object); } return(0); }