Greetings!
Do you mean the function's JavaScript source code? If so, then you can use JavaScript's
Cheers!
I was wondering if it is possible to pull the string content of a passed in JavaScript function
Do you mean the function's JavaScript source code? If so, then you can use JavaScript's
Function.prototype.toString()
:publicvoid execute(dynamic function) { string sourceCode = function.toString(); Console.WriteLine(sourceCode); }