var f = theObj["theMethodName"]; f.call(theObj, "an arg");
But treating a Silverlight object as an associative array doesn’t seem work.
I’m guessing I could probably use Eval as a last resort, but I’d rather avoid it.
I think you’re stuck with eval.
HtmlPage.Window.Invoke(“theMethodName”, “An arg”);
var obj = HtmlPage.Document.GetElementByID(“theObj”);
obj.Invoke(“theMethodName”, “an Arg”);
Ah, re-reading it…no, no access to the reflection API. You’d have to expose it formally. Its still a managed object…just exposed as an ‘object’ in JScript. So not the same as a prototype object.