JsPointerToString() private method

private JsPointerToString ( string value, UIntPtr stringLength, JavaScriptValue &stringValue ) : JavaScriptErrorCode
value string
stringLength System.UIntPtr
stringValue JavaScriptValue
return JavaScriptErrorCode
        /// <summary>
        /// Creates a <c>String</c> value from a string pointer.
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <param name="value">The string  to convert to a <c>String</c> value.</param>
        /// <returns>The new <c>String</c> value.</returns>
        public static JavaScriptValue FromString(string value)
        {
            JavaScriptValue reference;

            Native.ThrowIfError(Native.JsPointerToString(value, new UIntPtr((uint)value.Length), out reference));
            return(reference);
        }