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

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

            ivarsEqual = base.Equals(rhs);

            if (!(_acknowledgeFlag == rhs._acknowledgeFlag))
            {
                ivarsEqual = false;
            }
            if (!(_responseFlag == rhs._responseFlag))
            {
                ivarsEqual = false;
            }
            if (!(_requestID == rhs._requestID))
            {
                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(AcknowledgeReliablePdu rhs)
        {
            bool ivarsEqual = true;

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

             if( ! (_acknowledgeFlag == rhs._acknowledgeFlag)) ivarsEqual = false;
             if( ! (_responseFlag == rhs._responseFlag)) ivarsEqual = false;
             if( ! (_requestID == rhs._requestID)) ivarsEqual = false;

            return ivarsEqual;
        }