@@ -33,8 +33,8 @@ public interface IWebAssemblyExecutionHandler : IJavaScriptExecutionHandler
33
33
TResult InvokeUnmarshalled < T0 , T1 , T2 , TResult > ( string identifier , T0 arg0 , T1 arg1 , T2 arg2 ) ;
34
34
}
35
35
36
- [ Obsolete ( Helper . ObsoleteMemberMessage + " Use DotNetForHtml5.IWebAssemblyExecutionHandler instead." ) ]
37
36
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
37
+ [ Obsolete ( Helper . ObsoleteMemberMessage + " Use DotNetForHtml5.IWebAssemblyExecutionHandler instead." , true ) ]
38
38
public interface IJavaScriptExecutionHandler2 : IJavaScriptExecutionHandler
39
39
{
40
40
TResult InvokeUnmarshalled < T0 , TResult > ( string identifier , T0 arg0 ) ;
@@ -56,16 +56,7 @@ public object ExecuteJavaScriptWithResult(string javaScriptToExecute)
56
56
=> _jsRuntime . ExecuteJavaScriptWithResult ( javaScriptToExecute ) ;
57
57
58
58
public TResult InvokeUnmarshalled < T0 , TResult > ( string identifier , T0 arg0 )
59
- {
60
- #pragma warning disable CS0618
61
- if ( _jsRuntime is IJavaScriptExecutionHandler2 jsRuntime )
62
- #pragma warning restore CS0618
63
- {
64
- jsRuntime . InvokeUnmarshalled < T0 , TResult > ( identifier , arg0 ) ;
65
- }
66
-
67
- throw new NotSupportedException ( ) ;
68
- }
59
+ => throw new NotSupportedException ( ) ;
69
60
70
61
public TResult InvokeUnmarshalled < T0 , T1 , TResult > ( string identifier , T0 arg0 , T1 arg1 )
71
62
=> throw new NotSupportedException ( ) ;
0 commit comments