Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Just writing a little usercontrol/Macro... Can I use the shorthand sytax in my usercontrol?
public string myproperty {get; set;}
Yes you can!
Ron
To be more specific. It does not matter how you write things, after compiling it is the same.
Thanks - Just watched the video on Umbraco.tv and Neils uses the shorthand syntax on that. Should have watched that before I posted ;)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Can I Use Short Hand Property Syntax?
Just writing a little usercontrol/Macro... Can I use the shorthand sytax in my usercontrol?
public string myproperty {get; set;}Yes you can!
Ron
To be more specific. It does not matter how you write things, after compiling it is the same.
Ron
Thanks - Just watched the video on Umbraco.tv and Neils uses the shorthand syntax on that. Should have watched that before I posted ;)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.