C# automatic properties

31 views
Skip to first unread message

zihotki

unread,
May 17, 2012, 11:17:26 AM5/17/12
to SharpKit Support
Hi,

Is it possible to change behaviour of SK to generate fields for
automatic properties by default? Is there any way to set some default
conventions?

Thanks

Dan-el Khen

unread,
May 17, 2012, 11:25:17 AM5/17/12
to shar...@googlegroups.com
Yes, this behavior is by default in Json, Global and Prototype modes (all except clr mode)

You can control this behavior using this attribute, applied on your class:

[JsType(AutomaticPropertiesAsFields=true)]

Dan-el
Reply all
Reply to author
Forward
0 new messages