示例#1
0
        /**
         * Compares for reference equality and value equality.
         */
        public bool equals(EventID rhs)
        {
            bool ivarsEqual = true;

            if (rhs.GetType() != this.GetType())
            {
                return(false);
            }


            if (!(_site == rhs._site))
            {
                ivarsEqual = false;
            }
            if (!(_application == rhs._application))
            {
                ivarsEqual = false;
            }
            if (!(_eventNumber == rhs._eventNumber))
            {
                ivarsEqual = false;
            }

            return(ivarsEqual);
        }
示例#2
0
        /**
         * Compares for reference equality and value equality.
         */
        public bool equals(EventID rhs)
        {
            bool ivarsEqual = true;

            if(rhs.GetType() != this.GetType())
                return false;

            if( ! (_site == rhs._site)) ivarsEqual = false;
            if( ! (_application == rhs._application)) ivarsEqual = false;
            if( ! (_eventNumber == rhs._eventNumber)) ivarsEqual = false;

            return ivarsEqual;
        }