Та "Home"
хуудсын утсгах уу. Баталгаажуулна уу!
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.
Та "Home"
хуудсын утсгах уу. Баталгаажуулна уу!