Friday February 12th

Thursday February 11th

2 Kicks

Restoring VS2005's 'prop' snippet in VS2008

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.


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

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

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network