Exemplo n.º 1
0
        /**
         * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
         */
        public bool equals(SimulationManagementFamilyPdu rhs)
        {
            bool ivarsEqual = true;

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

            if (!(_originatingEntityID.Equals(rhs._originatingEntityID)))
            {
                ivarsEqual = false;
            }
            if (!(_receivingEntityID.Equals(rhs._receivingEntityID)))
            {
                ivarsEqual = false;
            }

            return(ivarsEqual);
        }
        /**
         * Compares for reference equality and value equality.
         */
        public bool equals(SimulationManagementFamilyPdu rhs)
        {
            bool ivarsEqual = true;

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

            ivarsEqual = base.Equals(rhs);

            if( ! (_originatingEntityID.Equals( rhs._originatingEntityID) )) ivarsEqual = false;
            if( ! (_receivingEntityID.Equals( rhs._receivingEntityID) )) ivarsEqual = false;

            return ivarsEqual;
        }