Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog
RegisterForeign Method (module, name, arity, method)
SwiPlCs interface ► SbsSW.SwiPlCs ► PlEngine ► RegisterForeign(String, String, Int32, Delegate)
Register a C# callback method
Declaration Syntax
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