Groups
Groups
Sign in
Groups
Groups
SharpKit Support
Conversations
About
Send feedback
Help
C# automatic properties
31 views
Skip to first unread message
zihotki
unread,
May 17, 2012, 11:17:26 AM
5/17/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
5/17/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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:
http://sharpkit.net/help/SharpKit.JavaScript/SharpKit.JavaScript/JsTypeAttribute/AutomaticPropertiesAsFields.htm
[JsType(AutomaticPropertiesAsFields=true)]
Dan-el
Reply all
Reply to author
Forward
0 new messages