Closed GoogleCodeExporter closed 8 years ago
This was disabled by default by popular demand. You can re-enable this feature
if you apply this in your class where you use anonymous objects:
http://sharpkit.net/help/SharpKit.JavaScript/SharpKit.JavaScript/JsTypeAttribute
/NativeJsons.htm
Original comment by DanelK...@gmail.com
on 12 Dec 2013 at 12:42
What's the downside to this feature?
An alternative and perhaps nicer fix is to do the x.Greeting without the
indirection.
Original comment by co...@gravill.com
on 12 Dec 2013 at 1:46
no specific downside, people just wanted native jsons by default, the getters
and setters didn't really help anyone...
Original comment by DanelK...@gmail.com
on 12 Dec 2013 at 1:52
I don't see a need for the getters and setters either. It would be nice to
support LINQ statements though, by generating calls to the fields rather than
to non-existent getters.
Original comment by co...@gravill.com
on 12 Dec 2013 at 1:56
Well by default, it should work like that. Currently it generates get_X() ?
D.
Original comment by DanelK...@gmail.com
on 12 Dec 2013 at 1:58
Verified bug, temporary workaround, set:
NativeJsons = true
Original comment by DanelK...@gmail.com
on 14 Dec 2013 at 11:21
Fixed, real clr style anonymous objects will be created in clr mode, you can
turn it off by setting NativeJsons=true.
Added injection function:
$CreateAnonymousObject(json)
Original comment by DanelK...@gmail.com
on 14 Dec 2013 at 12:40
Original comment by DanelK...@gmail.com
on 11 Jan 2014 at 7:53
Original issue reported on code.google.com by
kirk.w...@gmail.com
on 9 Dec 2013 at 10:11