Muokkaa

Jaa


JSFunctionBinding implicit public default constructor removed

The implicit public default constructor for System.Runtime.InteropServices.JavaScript.JSFunctionBinding has been removed.

Previous behavior

Previously, you could create empty instances of System.Runtime.InteropServices.JavaScript.JSFunctionBinding.

New behavior

Starting in .NET 8, you can't instantiate a System.Runtime.InteropServices.JavaScript.JSFunctionBinding object.

Version introduced

.NET 8

Type of breaking change

This change can affect binary compatibility.

Reason for change

The constructor was not intended to be public; this change fixes the mistake.

N/A

Affected APIs

  • System.Runtime.InteropServices.JavaScript.JSFunctionBinding.#ctor