예제 #1
0
        /**
         * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
         */
        public bool equals(SimulationManagementWithReliabilityFamilyPdu 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);
        }
        /**
          * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
          */
        public bool equals(SimulationManagementWithReliabilityFamilyPdu 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;
        }