Answers for "c# from javascript with callback"

0

c# from javascript with callback

//MrSticksEntertainment
//JavaScript
window.external.CallbackTest(function(msg) {alert(msg)})

//C#
public void CallbackTest(object callback)
{
    dynamic callbackFunc = callback;
    callbackFunc("Hello!");
}
Posted by: Guest on March-22-2021

Code answers related to "c# from javascript with callback"

Code answers related to "Javascript"

Browse Popular Code Answers by Language