DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,673 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Bruce Axtens
Bruce Axtens

Posted on

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

0

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" })
{
    htc.AddAssembly(assembly);
}
...
v8.AddHostObject("CS", htc);

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

Top comments (1)

Collapse
 
bugmagnet profile image
Bruce Axtens Author

Fixed.

Visualizing Promises and Async/Await 🀯

async await

☝️ Check out this all-time classic DEV post