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

Register a C#-function to implement a Prolog predicate.

After this call returns successfully, a predicate with name (a string) and arity arity (a C# int) is created in module module.

If module is NULL, the predicate is created in the module of the calling context or if no context is present in the module user.

Remarks

Add a additional namespace by:

using SbsSW.SwiPlCs.Callback;

Examples
For an example see DelegateParameter2 and DelegateParameter1.
Members
IconMemberDescription
RegisterForeign(Delegate)

Register a C# callback method


RegisterForeign(String, Delegate)

Register a C# callback method


RegisterForeign(String, Int32, Delegate)

Register a C# callback method


RegisterForeign(String, String, Int32, Delegate)

Register a C# callback method


See Also

Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60601.0 (1.1.60601.0)