From e44dffd013b2dc14f1d4ece2be8b225aadfc478d Mon Sep 17 00:00:00 2001 From: Pranav K Date: Wed, 12 Jun 2019 11:55:54 -0700 Subject: [PATCH] Use DotNetObjectRef (#12779) --- .../3.x/BlazorSample/JsInteropClasses/ExampleJsInterop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/blazor/common/samples/3.x/BlazorSample/JsInteropClasses/ExampleJsInterop.cs b/aspnetcore/blazor/common/samples/3.x/BlazorSample/JsInteropClasses/ExampleJsInterop.cs index d19d161709..b873a5c6e2 100644 --- a/aspnetcore/blazor/common/samples/3.x/BlazorSample/JsInteropClasses/ExampleJsInterop.cs +++ b/aspnetcore/blazor/common/samples/3.x/BlazorSample/JsInteropClasses/ExampleJsInterop.cs @@ -22,7 +22,7 @@ namespace BlazorSample.JsInteropClasses // sayHello is implemented in wwwroot/exampleJsInterop.js return _jsRuntime.InvokeAsync( "exampleJsFunctions.sayHello", - new DotNetObjectRef(new HelloHelper(name))); + DotNetObjectRef.Create(new HelloHelper(name))); } } #endregion