RegisterForeign Method (name, arity, method)

SWI-Prolog SbsSW.SwiPlCs

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

Register a C# callback method

Declaration Syntax
C# Visual Basic Visual C++
public static bool RegisterForeign(
	string name,
	int arity,
	Delegate method
)
Public Shared Function RegisterForeign ( _
	name As String, _
	arity As Integer, _
	method As Delegate _
) As Boolean
public:
static bool RegisterForeign(
	String^ name, 
	int arity, 
	Delegate^ method
)
Parameters
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)