RegisterForeign Method (module, method)

SWI-Prolog SbsSW.SwiPlCs

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

Register a C# callback method

Declaration Syntax
C# Visual Basic Visual C++
public static bool RegisterForeign(
	string module,
	Delegate method
)
Public Shared Function RegisterForeign ( _
	module As String, _
	method As Delegate _
) As Boolean
public:
static bool RegisterForeign(
	String^ module, 
	Delegate^ method
)
Parameters
module (String)
the name of a prolog module Using Modules
method (Delegate)
a delegate to a c# method SbsSW.SwiPlCs.Callback
Return Value
true if registration succeed otherwise false
Examples
For an example see DelegateParameter2 and DelegateParameter1.

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