Exemplo n.º 1
0
        /// <summary>
        /// Compares for reference AND value equality.
        /// </summary>
        /// <param name="obj">The object to compare with this instance.</param>
        /// <returns>
        ///     <c>true</c> if both operands are equal; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(EngineFuel obj)
        {
            bool ivarsEqual = true;

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

            if (this._fuelQuantity != obj._fuelQuantity)
            {
                ivarsEqual = false;
            }

            if (this._fuelMeasurementUnits != obj._fuelMeasurementUnits)
            {
                ivarsEqual = false;
            }

            if (this._fuelType != obj._fuelType)
            {
                ivarsEqual = false;
            }

            if (this._fuelLocation != obj._fuelLocation)
            {
                ivarsEqual = false;
            }

            if (this._padding != obj._padding)
            {
                ivarsEqual = false;
            }

            return(ivarsEqual);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Compares for reference AND value equality.
        /// </summary>
        /// <param name="obj">The object to compare with this instance.</param>
        /// <returns>
        /// 	<c>true</c> if both operands are equal; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(EngineFuel obj)
        {
            bool ivarsEqual = true;

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

            if (this._fuelQuantity != obj._fuelQuantity)
            {
                ivarsEqual = false;
            }

            if (this._fuelMeasurementUnits != obj._fuelMeasurementUnits)
            {
                ivarsEqual = false;
            }

            if (this._fuelType != obj._fuelType)
            {
                ivarsEqual = false;
            }

            if (this._fuelLocation != obj._fuelLocation)
            {
                ivarsEqual = false;
            }

            if (this._padding != obj._padding)
            {
                ivarsEqual = false;
            }

            return ivarsEqual;
        }