예제 #1
0
        public virtual Db4objects.Db4o.Internal.ObjectReference Id_find(int id)
        {
            int cmp = id - _id;

            if (cmp > 0)
            {
                if (_idSubsequent != null)
                {
                    return(_idSubsequent.Id_find(id));
                }
            }
            else
            {
                if (cmp < 0)
                {
                    if (_idPreceding != null)
                    {
                        return(_idPreceding.Id_find(id));
                    }
                }
                else
                {
                    return(this);
                }
            }
            return(null);
        }