예제 #1
0
        public virtual int CompareTo(object o)
        {
            if (o == null || o.GetType() != OID_TYPE)
            {
                return(-1000);
            }
            OdbObjectOID otherOid = (OdbObjectOID)o;
            int          r        = (int)(oid - otherOid.oid);

            return(r);;
        }
예제 #2
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || o.GetType() != OID_TYPE)
            {
                return(false);
            }
            OdbObjectOID otherOid = (OdbObjectOID)o;

            return(otherOid.oid == this.oid);
        }