RegisterForeign Method (module, name, arity, method)

SWI-Prolog SbsSW.SwiPlCs

Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog RegisterForeign Method (module, name, arity, method)
SwiPlCs interfaceSbsSW.SwiPlCsPlEngineRegisterForeign(String, String, Int32, Delegate)

Register a C# callback method

Declaration Syntax
C# Visual Basic Visual C++
public static bool RegisterForeign(
	string module,
	string name,
	int arity,
	Delegate method
)
Public Shared Function RegisterForeign ( _
	module As String, _
	name As String, _
	arity As Integer, _
	method As Delegate _
) As Boolean
public:
static bool RegisterForeign(
	String^ module, 
	String^ name, 
	int arity, 
	Delegate^ method
)
Parameters
module (String)
The name of the module (Prolog module system)
name (String)
The name of a static C# method
arity (Int32)
The amount of parameters
method (Delegate)
a delegate to a c# method SbsSW.SwiPlCs.Callback
Return Value
true if registration succeed otherwise false
Examples
For an example see DelegateParameterVarArgs

Assembly: SwiPlCs (Module: SwiPlCs) Version: 1.1.60301.0 (1.1.60301.0)