Method ToInvokeScriptArg
ToInvokeScriptArg(object?)
Converts the value to the JSON string.
public virtual string? ToInvokeScriptArg(object? arg)
Parameters
argobjectValue for convertion to JSON format.
Returns
Remarks
Used internally by InvokeScriptAsync(string, IntPtr, params object?[]). String and DateTime values are returned enclosed in single quotes.