Skip to content

Instantly share code, notes, and snippets.

[ScriptObject(ScriptMemberSecurity.NoAcccess)] // (default all members to "no access")
public class MyJSObject
{
[Inject] // (inject a value; will only work if the type binder creates the instance, or associates a binder to the instance)
//#pragma warning disable 0649 // (assigned by the type binder - OR simply explicitly set a null value to remove the warning)
TypeBinder _TypeBinder = null;
//#pragma warning restore 0649
public MyJSObject()
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using V8.Net;
namespace TestReturnValue
{