<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Just Sayin' More Words - Latest Comments in VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://justsayinmorewords.disqus.com/</link><description>A blog by John Sheehan</description><language>en</language><lastBuildDate>Thu, 25 Jun 2009 10:50:22 -0000</lastBuildDate><item><title>Re: VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://john-sheehan.com/blog/index.php/vs2005-prop-c-code-snippet-in-vs2008/#comment-11725577</link><description>thank you for this!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">paolo</dc:creator><pubDate>Thu, 25 Jun 2009 10:50:22 -0000</pubDate></item><item><title>Re: VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://john-sheehan.com/blog/index.php/vs2005-prop-c-code-snippet-in-vs2008/#comment-7079349</link><description>Hello, I just want to thank you for the code snippet.&lt;br&gt;&lt;br&gt;I find the new way is breaking my code routine, because it's hard to make a property that's readonly.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jesper Eiby</dc:creator><pubDate>Tue, 10 Mar 2009 16:33:49 -0000</pubDate></item><item><title>Re: VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://john-sheehan.com/blog/index.php/vs2005-prop-c-code-snippet-in-vs2008/#comment-4806647</link><description>You can do it by setting an attribute&lt;br&gt;&lt;br&gt;        [DefaultValue(false)]&lt;br&gt;        public bool SomeProperty&lt;br&gt;        {&lt;br&gt;            get;&lt;br&gt;            set;&lt;br&gt;        }</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mizan</dc:creator><pubDate>Wed, 31 Dec 2008 20:12:35 -0000</pubDate></item><item><title>Re: VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://john-sheehan.com/blog/index.php/vs2005-prop-c-code-snippet-in-vs2008/#comment-2245773</link><description>Not really on topic, but I love the contrast settings you have in that screen shot...the background is black with some of the key words in orange and so forth. Can you export your settings to a file or make it available here? By the end of the day my eyes are dead tired from staring at white screens. I've tried playing with the settings, but I'm graphically challenged I guess you could say.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jason b</dc:creator><pubDate>Tue, 09 Sep 2008 10:49:24 -0000</pubDate></item><item><title>Re: VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://john-sheehan.com/blog/index.php/vs2005-prop-c-code-snippet-in-vs2008/#comment-2140066</link><description>Best I can tell from the C# Code Snippet docs, you cannot transform the backing field name into the property name (or vice versa). There's very basic support for functions, and none of them cover this case.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Mon, 04 Aug 2008 10:41:00 -0000</pubDate></item><item><title>Re: VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://john-sheehan.com/blog/index.php/vs2005-prop-c-code-snippet-in-vs2008/#comment-2140061</link><description>Why do you have to type the name of backing field and property? Surely it is possible to have one derived from another?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dmitri</dc:creator><pubDate>Mon, 04 Aug 2008 02:25:29 -0000</pubDate></item><item><title>Re: VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://john-sheehan.com/blog/index.php/vs2005-prop-c-code-snippet-in-vs2008/#comment-2140059</link><description>As A comment to the post, I add that the old prop snippet is a must when you are not yet using the new Framework but still use Framework 2.0 as I do.&lt;br&gt;&lt;br&gt;And I ask you a hint if you can:&lt;br&gt;&lt;br&gt;I dont' know if it's a problem in my installation of Visual Studio But today I used for the first time a snippet and When I pressed tab instead of going from the first placeholder to the second it simply inserted a tab in the placeholder variabile&lt;br&gt;such it happened in Visual Basic 2005.&lt;br&gt;Have you ever had such behaviour? Could it be generated from some crazy default setting?&lt;br&gt;&lt;br&gt;Sabrina</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sabrina</dc:creator><pubDate>Mon, 31 Mar 2008 03:41:49 -0000</pubDate></item><item><title>Re: VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://john-sheehan.com/blog/index.php/vs2005-prop-c-code-snippet-in-vs2008/#comment-2140060</link><description>Nice one!&lt;br&gt;&lt;br&gt;For your information I submitted this bug on Connect some time ago:&lt;br&gt;&lt;a href="http://weblogs.asp.net/lduveau/archive/2008/03/22/code-snippets-not-versioned-according-to-vs2008-multi-targeting.aspx" rel="nofollow"&gt;http://weblogs.asp.net/lduveau/archive/2008/03/...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Laurent Duveau</dc:creator><pubDate>Sun, 23 Mar 2008 11:27:04 -0000</pubDate></item><item><title>Re: VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://john-sheehan.com/blog/index.php/vs2005-prop-c-code-snippet-in-vs2008/#comment-2140056</link><description>nice going mate!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serban</dc:creator><pubDate>Sat, 01 Mar 2008 08:28:56 -0000</pubDate></item><item><title>Re: VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://john-sheehan.com/blog/index.php/vs2005-prop-c-code-snippet-in-vs2008/#comment-2140057</link><description>For default values. For instance, if I have a string property that should always have a default, I can't do that with automatic props.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Thu, 28 Feb 2008 00:00:40 -0000</pubDate></item><item><title>Re: VS2005 &amp;#8216;prop&amp;#8217; C# Code Snippet in VS2008</title><link>http://john-sheehan.com/blog/index.php/vs2005-prop-c-code-snippet-in-vs2008/#comment-2140058</link><description>Umm... why? The C# 3.0 compiler will generate valid IL from the new prop. The old one is no longer needed as it adds unnessisary lines of code.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aaron Powell</dc:creator><pubDate>Wed, 27 Feb 2008 21:22:32 -0000</pubDate></item></channel></rss>