Ejemplo n.º 1
0
        public virtual Db4objects.Db4o.Internal.ObjectReference Hc_remove(Db4objects.Db4o.Internal.ObjectReference
                                                                          findRef)
        {
            if (this == findRef)
            {
                return(Hc_remove());
            }
            int cmp = Hc_compare(findRef);

            if (cmp <= 0)
            {
                if (_hcPreceding != null)
                {
                    _hcPreceding = _hcPreceding.Hc_remove(findRef);
                }
            }
            if (cmp >= 0)
            {
                if (_hcSubsequent != null)
                {
                    _hcSubsequent = _hcSubsequent.Hc_remove(findRef);
                }
            }
            Hc_calculateSize();
            return(this);
        }