JsEquals() private method

private JsEquals ( IeJsValue obj1, IeJsValue obj2, bool &result ) : JsErrorCode
obj1 IeJsValue
obj2 IeJsValue
result bool
return JsErrorCode
Example #1
0
        /// <summary>
        /// Compare two JavaScript values for equality
        /// </summary>
        /// <remarks>
        /// <para>
        /// This function is equivalent to the "==" operator in JavaScript.
        /// </para>
        /// <para>
        /// Requires an active script context.
        /// </para>
        /// </remarks>
        /// <param name="other">The object to compare</param>
        /// <returns>Whether the values are equal</returns>
        public bool Equals(IeJsValue other)
        {
            bool equals;

            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsEquals(this, other, out equals));

            return(equals);
        }