Error: System.NotSupportedException: DeserializeNoConstructor #96
Answered
by
elringus
AngxiaoLu123
asked this question in
Q&A
-
Hi, this is a great tool, I want to ask does it support passing the file changed event from js to C#? I tried but got this: Error: System.NotSupportedException: DeserializeNoConstructor, JsonConstructorAttribute, Microsoft.AspNetCore.Components.Forms.InputFileChangeEventArgs Path: $ | LineNumber: 0 | BytePositionInLine: 1. |
Beta Was this translation helpful? Give feedback.
Answered by
elringus
Nov 1, 2022
Replies: 1 comment 2 replies
-
Only JSON-serializable types can be passed directly (by value), but it's also possible to interop with instances via wrappers: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
elringus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Only JSON-serializable types can be passed directly (by value), but it's also possible to interop with instances via wrappers:
https://github.com/Elringus/DotNetJS/blob/a1720e7819e3b06b78c1100a042e7e02cc1dd6c2/JavaScript/test/interop.js#L85-L114