示例#1
0
        public INativeRef CreateProxyForTypeDefinition(JsTypeDefinition jsTypeDefinition)
        {
            var proxyObject = new NativeRef(nativeRefList.Count, jsTypeDefinition);

            //store data this side too
            jsTypeDefinition.nativeProxy = proxyObject;
            //store in exported list
            nativeRefList.Add(proxyObject);
            //register type definition
            NativeV8JsInterOp.RegisterTypeDef(ownerContext, jsTypeDefinition);
            return(proxyObject);
        }
示例#2
0
 public INativeRef CreateProxyForTypeDefinition(JsTypeDefinition jsTypeDefinition)
 {
     var proxyObject = new NativeRef(nativeRefList.Count, jsTypeDefinition);
     //store data this side too
     jsTypeDefinition.nativeProxy = proxyObject;
     //store in exported list
     nativeRefList.Add(proxyObject);
     //register type definition
     NativeV8JsInterOp.RegisterTypeDef(ownerContext, jsTypeDefinition);
     return proxyObject;
 }