static void Main () { // // Give a 'function pointer' of our static CreateWString function to the C library // SWIG_WStringDelegate wstringDelegate = new SWIG_WStringDelegate (CreateWString); SWIGRegisterUTF16StringCallback_libtest (wstringDelegate); // // Invoke a function in the C library that will use the above registered CreateWString function pointer. // my_test_func (); }