Skip to content

Can I use a Class but only a few members available with attributes? #68

Answered by ackava
cyraid asked this question in Q&A
Discussion options

You must be logged in to vote

If class is derived from JavaScriptObject, only members exposed with JSExport attributes are exposed to JavaScript.

https://github.com/yantrajs/yantra/blob/main/YantraJS.Core.Tests/ClrObjects/CustomObject.cs

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cyraid
Comment options

Answer selected by ackava
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants