Giter VIP home page Giter VIP logo

Comments (3)

liminzhu avatar liminzhu commented on May 18, 2024
  1. Proxy (a new feature in ECMAScript 2015) should be able to solve this problem nicely.
  2. Yes you can hold c# object as data, but remember to put a hold on the object otherwise it may get garbage collected.

from chakra-samples.

SrinivasGourarum avatar SrinivasGourarum commented on May 18, 2024

Thanks for the reply,

I understand we can create proxy in javascript code but is there a way to create it programatically? I did not find the key word "proxy" in the javascript reference(https://msdn.microsoft.com/en-us/library/dn249536(v=vs.94).aspx )

from chakra-samples.

liminzhu avatar liminzhu commented on May 18, 2024

Thanks for clarifying :). Unfortunately as for now there is no API that directly creates proxies. A kind of hacky way I guess is to have a script that creates a proxy you want and then run it with JsRunScript, which returns the resulting proxy object to C# environment.

from chakra-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.