Hi,
Ok, it's now possible to wrap CLR types in
V8.NET. ;) Although the focus of
V8.NET was to interface at a lower level, I've added this feature to make it easier to consume existing .NET types. For example:
{V8Engine}.GlobalObject.SetProperty(typeof(System.IO.File), null, true, V8PropertyAttributes.Locked);
In script: "File.Exists(...)"
or
{V8Engine}.GlobalObject.SetProperty(typeof(System.IO.File), "System.IO.File", true, V8PropertyAttributes.Locked);
In script: "this["System.IO.File"].Exists(...)"
V8.NET implicitly calls {V8Engine}.RegisterType() to register types, but you can call this before hand if you want more control over member attributes and recursive binding.
The type binding system is very efficient, and caches anything it can to speed up the process of working with the .NET side.
8)