Just Sayin’ More Words

About This Post

VS2005 ‘prop’ C# Code Snippet in VS2008

Automatic properties are nice, but sometimes you just want a good ol’ regular property with a backing field. Visual C# 2005 had the ‘prop’ code snippet which generated this:

visual c# 2005 prop code snippet

Visual C# 2008 now generates the following when using the ‘prop’ snippet:

2008-02-26_2330_001

I find myself wanting to use the old snippet more than the new one, so I went into the 2005 code snippets, copied the ‘prop’ snippet file, made a few changes and imported it into 2008 (Tools | Code Snippets Manager | Import).

Now, all is well:

Here’s a .zip file of the snippet that you can download.

Viewing 7 Comments

close Reblog this comment
blog comments powered by Disqus