/// <summary>
        ///     Retrieves the <c>bool</c> value of a <c>Boolean</c> value.
        /// </summary>
        /// <remarks>
        ///     Requires an active script context.
        /// </remarks>
        /// <returns>The converted value.</returns>
        public bool ToBoolean()
        {
            bool value;

            Native.ThrowIfError(Native.JsBooleanToBool(this, out value));
            return(value);
        }
Example #2
0
 /// <summary>
 ///     Retrieves the <c>bool</c> value of a <c>Boolean</c> value.
 /// </summary>
 /// <remarks>
 ///     Requires an active script context.
 /// </remarks>
 /// <returns>The converted value.</returns>
 public Boolean ToBoolean()
 {
     Native.ThrowIfError(Native.JsBooleanToBool(this, out Boolean value));
     return(value);
 }