

Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog
RegisterForeign Method (method)
SwiPlCs interface ► SbsSW.SwiPlCs ► PlEngine ► RegisterForeign(Delegate)
Register a C# callback method

C# | Visual Basic | Visual C++ | F# |
public static bool RegisterForeign( Delegate method )
Public Shared Function RegisterForeign ( method As Delegate ) As Boolean
public: static bool RegisterForeign( Delegate^ method )
static member RegisterForeign : method : Delegate -> bool

- method (Delegate)
- a delegate to a c# method SbsSW.SwiPlCs.Callback

Boolean
true if registration succeed otherwise false
true if registration succeed otherwise false

For an example see DelegateParameter2 and DelegateParameter1.
Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60605.0 (1.1.60605.0)