JsIntToNumber() private method

private JsIntToNumber ( int intValue, IeJsValue &value ) : JsErrorCode
intValue int
value IeJsValue
return JsErrorCode
Beispiel #1
0
        /// <summary>
        /// Creates a <c>Number</c> value from a <c>int</c> value
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <param name="value">The value to be converted</param>
        /// <returns>The new <c>Number</c> value</returns>
        public static IeJsValue FromInt32(int value)
        {
            IeJsValue reference;

            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsIntToNumber(value, out reference));

            return(reference);
        }