would like to interpret the JavaScript code in c#.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zoltix

    #1

    would like to interpret the JavaScript code in c#.

    Hi,
    I would like to interpret the JavaScript code in c#.
    I have some methods in JavaScript; is it possible to execute those
    methods which return a result programmaticall y.

    Example
    String strJava=’var test; test = 999; return test;’ ;
    String Res = Exec.JavaScript (strJava);
    Console.Write(R es);


    *** Sent via Developersdex http://www.developersdex.com ***
  • Chris S.

    #2
    Re: would like to interpret the JavaScript code in c#.

    You could convert this:

    The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps.


    else I'd scour codeproject.com as there is an article there about
    interpretting code via the CodeDom namespace (iirc)

    Comment

    Working...