예제 #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;
 }