Esempio n. 1
0
        /**
         * Compares for reference equality and value equality.
         */
        public bool equals(AcousticEmitter rhs)
        {
            bool ivarsEqual = true;

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


            if (!(_acousticName == rhs._acousticName))
            {
                ivarsEqual = false;
            }
            if (!(_function == rhs._function))
            {
                ivarsEqual = false;
            }
            if (!(_acousticIdNumber == rhs._acousticIdNumber))
            {
                ivarsEqual = false;
            }

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

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

            if( ! (_acousticName == rhs._acousticName)) ivarsEqual = false;
            if( ! (_function == rhs._function)) ivarsEqual = false;
            if( ! (_acousticIdNumber == rhs._acousticIdNumber)) ivarsEqual = false;

            return ivarsEqual;
        }