jurassic icon indicating copy to clipboard operation
jurassic copied to clipboard

using C# property/field in Javascript .net

Open Hajer10 opened this issue 8 years ago • 1 comments

hi, I was trying to find a way to link my property in a function of javascript, is it possible to di that?

Hajer10 avatar Mar 24 '17 11:03 Hajer10

Yes, there is a [JSProperty] attribute that you can use in the same way as [JSMethod].

See https://github.com/paulbartrum/jurassic/wiki/Exposing-a-.NET-class-to-JavaScript for an example of [JSMethod].

paulbartrum avatar Mar 27 '17 21:03 paulbartrum