-
-
Notifications
You must be signed in to change notification settings - Fork 564
Home
Michael Kriese edited this page Jul 21, 2020
·
1 revision
This sample shows how to add a custom javascript type for Guid
/ Uuid
.
That allows to call functions / indexers which use a Guid
in dotnet.
First you need to create three classes UuidInstance
, UuidPrototype
and UuidConstructor
.
Use the links for sample implementation.
Second step is to register the constructor to be usable.
If you need to pass a Guid
to the engine which should be automatically converted to your javascript type you need to thwo classes JsUuid
and UuiConverter
.
After this the converter can be registered to the engine.
See UuidTests.cs
for sample usage.