The solution includes a% typemap map. The effect you see is a useless default mapping for unknown types. In your case, the unknown type is the function type void *(InputPort) .
In fact, the entire SWIG translation is based on the% typemaps that have already been written and live in the standard SWIG libraries. You can explore the initial% typemaps for C # in this Subversion Location .
In particular, find SWIGStringHelper in csharphead.swg . This code maps the delegate to the C callback. The trick is to add the helper callback implementation to the SWIG module.
source share