Skip to content

ManagedHost.LoadAssembly method

Loads an arbitrary .NET assembly that isn't necessarily designed as a JS module, enabling dynamic invocation of any APIs in the assembly.

C#
public JSValue LoadAssembly(JSCallbackArgs args)

Return Value

A JS object that represents the loaded assembly; each property of the object is a public type.

Remarks

Also supports loading native libraries, to make them available for assemblies to resolve using DllImport.

See Also

Released under the MIT license