Table of Contents

Method ToInvokeScriptArg

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ToInvokeScriptArg(object)

Converts the value to the JSON string.

string? ToInvokeScriptArg(object arg)

Parameters

arg object

Value for convertion to JSON format.

Returns

string

A string representing value in JSON format.

Remarks

Used internally by InvokeScriptAsync(string, IntPtr, params object?[]). String and DateTime values are returned enclosed in single quotes.