Passing reference object from js to C# and back
Manikanta T P S
1
Reputation point
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
}
Community Center | Not monitored
46,224 questions
Sign in to answer