Start a new topic

What is JsInterface

Any info on some the new duocode runtime stuff (and old for that matter), like JsInterface?

1 Comment

JsInterface is just a shortcut for JsDictionary<string, object>.

Inherit from this class in order to declare "bag" or interface like classes, such as <see cref="Dom.BlobPropertyBag"/> or <see cref="Dom.PropertyDescriptor"/>.

What's it's mean that BlobPropertyBag as I mentioned is just an interface (no such class actually).

And allows very nice usage, very close to TS/JS even strongly typed:

var bpg = new BlobPropertyBag { type = "text/html", ["additional property"] = 1, ["and_another"] = 2 };

Login or Signup to post a comment