Passing reference object from js to C# and back

Posted 3 years ago by manikanta
0
I want to pass object by reference from JavaScript to C# and back. Is there any way to do this.

i am using the below code to call the javascript function.

[JSInvokable("ExecuteJS")]
public static async Task<object> ExecuteJS(string value)
{
var result = await jsRuntime.InvokeAsync<object>("somefunction");

//Do some modification

return result
}
Someone is typing...

Post a Reply

You must be logged in to add a new post.
Number of online users: 1
An error has occurred. This application may no longer respond until reloaded. Reload 🗙