Use DotNetObjectRef (#12779)

pull/12848/head
Pranav K 2019-06-12 11:55:54 -07:00 committed by Luke Latham
parent 7fc1e203cc
commit e44dffd013
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ namespace BlazorSample.JsInteropClasses
// sayHello is implemented in wwwroot/exampleJsInterop.js
return _jsRuntime.InvokeAsync<object>(
"exampleJsFunctions.sayHello",
new DotNetObjectRef(new HelloHelper(name)));
DotNetObjectRef.Create(new HelloHelper(name)));
}
}
#endregion