DEV Community 👩‍💻👨‍💻

Bruce Axtens
Bruce Axtens

Posted on

How do I update a column in a System.Data datarow using V8 under ClearScript?


I'm using the V8ScriptEngine

v8 = new V8ScriptEngine(V8ScriptEngineFlags.DisableGlobalMembers);

and have exposed the "System.Data" namespace into the ClearScript environment.

var htc = new HostTypeCollection();
foreach (var assembly in new string[] { "mscorlib", "System", "System.Core", "System.Data" })
v8.AddHostObject("CS", htc);

Then I've taken a System.Data example from Microsoft and…

Oldest comments (1)

bugmagnet profile image
Bruce Axtens


Why You Need to Study Javascript Fundamentals

>> Check out this classic DEV post <<