private JsDoubleToNumber ( double doubleValue, |
||
doubleValue | double | |
value | ||
Результат | JavaScriptErrorCode |
/// <summary> /// Creates a <c>Number</c> value from a <c>double</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 JavaScriptValue FromDouble(double value) { JavaScriptValue reference; Native.ThrowIfError(Native.JsDoubleToNumber(value, out reference)); return(reference); }