Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lee 1130 posts 3088 karma points
    Oct 04, 2009 @ 18:18
    Lee
    0

    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;}

     

  • Ron Brouwer 273 posts 768 karma points
    Oct 04, 2009 @ 18:50
    Ron Brouwer
    0

    Yes you can!

    Ron

  • Ron Brouwer 273 posts 768 karma points
    Oct 04, 2009 @ 18:51
    Ron Brouwer
    0

    To be more specific. It does not matter how you write things, after compiling it is the same.

    Ron

  • Lee 1130 posts 3088 karma points
    Oct 04, 2009 @ 19:23
    Lee
    0

    Thanks - Just watched the video on Umbraco.tv and Neils uses the shorthand syntax on that.  Should have watched that before I posted ;)

Please Sign in or register to post replies

Write your reply to:

Draft