Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: javascript blob

$
0
0
Sure, here's a simple C# example:
using (var engine = new V8ScriptEngine()) {
    if (Convert.ToBoolean(engine.Evaluate("Math.PI > 3.0"))) {
        Console.WriteLine("Pi is greater than 3!");
    }
}
As you can see, you can pass script expressions to ScriptEngine.Evaluate() and inspect or convert the result as necessary. Note that ClearScript provides access to script engines only; it doesn't process HTML or implement the Web API.

Good luck!

Viewing all articles
Browse latest Browse all 2297

Trending Articles