Restoring VS2005's 'prop' snippet in VS2008(john-sheehan.com)

submitted by rimsystemsrimsystems(6119) 4 years, 3 months ago

Automatic properties are nice, but sometimes they just won't do. Visual C# 2005 included a 'prop' code snippet for a full property with backing filed but 2008 changed the snippet to generate an automatic property. Here's how to restore the 2005 snippet.

2 comments |category: |Views: 52

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by JemmJemm(9604) 4 years, 3 months ago 0

I prefer automatic properties but sometimes I wish there was also snippet for the full property, too.

Reply

posted by rimsystemsrimsystems(6119) 4 years, 3 months ago 0

The only thing I don't like about automatic properties is that I can't set a default value. So when I need a default, I use the old snippet

Reply

information Login or create an account to comment on this story