Exemplo n.º 1
0
        /// <summary>
        /// Checks the equality of objects.
        /// </summary>
        /// <param name="obj">Object to be checked.</param>
        /// <returns>True if the objects are equal, false otherwise.</returns>
        public override bool Equals(object obj)
        {
            NumericFunction other = obj as NumericFunction;

            if (other == null)
            {
                return(false);
            }
            return(FunctionAtom.Equals(other.FunctionAtom));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Checks the equality of objects.
        /// </summary>
        /// <param name="obj">Object to be checked.</param>
        /// <returns>True if the objects are equal, false otherwise.</returns>
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            NumericScaleUpEffect other = obj as NumericScaleUpEffect;

            if (other == null)
            {
                return(false);
            }

            return(FunctionAtom.Equals(other.FunctionAtom) && Value.Equals(other.Value));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Checks the equality of objects.
        /// </summary>
        /// <param name="obj">Object to be checked.</param>
        /// <returns>True if the objects are equal, false otherwise.</returns>
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            ObjectFunctionTerm other = obj as ObjectFunctionTerm;

            if (other == null)
            {
                return(false);
            }

            return(FunctionAtom.Equals(other.FunctionAtom));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Checks the equality of objects.
        /// </summary>
        /// <param name="obj">Object to be checked.</param>
        /// <returns>True if the objects are equal, false otherwise.</returns>
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            ObjectAssignEffect other = obj as ObjectAssignEffect;

            if (other == null)
            {
                return(false);
            }

            return(FunctionAtom.Equals(other.FunctionAtom) && Value.Equals(other.Value));
        }