javascript - JSIL and DllImport -
javascript - JSIL and DllImport -
i seek convert sample .net application p/invoke javascript jsil.
c# code:
[dllimport("jstestlib", entrypoint = "get42", callingconvention = callingconvention.cdecl)] public unsafe static extern int get42();
generated javascript:
$.externalmethod({static:true , public:true }, "get42", jsil.methodsignature.return($.int32) );
where should add together implementation of get42 method in javascript? should register method manually in jsil?
i have error now:
the external method 'system.int32 get42()' of type 'test.program' has not been implemented.
just utilize jsil.implementexternals - take @ jsil.core.js examples
javascript c# pinvoke jsil
Comments
Post a Comment