Class ImportFunction
Support for surfacing .NET functions to the Wasm module.
Namespace: WasmerSharp
Assembly: WasmerSharp.dll
Syntax
public class ImportFunction : WasmerSharp.WasmerNativeHandle
Constructors
ImportFunction(Delegate)
Creates an ImportFunction from a delegate method, the .NET method passed on the delegate will then be available to be called by the Wasm runtime.
Declaration
public ImportFunction (Delegate method);
Parameters
Type | Name | Description |
---|---|---|
System.Delegate | method | The method to wrap. The method can only contains int, long, float or double arguments. The method return can include void, int, long, float and double. |