Customizing the Prop Snippet

I'm quite busy with a project I'm on with Clemens (the last before he'll join the Indigo team at Microsoft) - just to explain why it got bit quiet around me :-) Here is a modified version of the prop snippet that I want to share ( and remember :-P ). <?xml version="1.0" encoding="utf-8" ?> <CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">       <CodeSnippet Format="1.0.0">             <Header>                   <Title>prop</Title>                   <Shortcut>prop</Shortcut>                   <Description>Code snippet for property and                   backing field</Description>                   <Author>Microsoft Corporation</Author>                   <SnippetTypes>                         <SnippetType>Expansion</SnippetType>                   </SnippetTypes>             </Header>             <Snippet>                   <Declarations>                         <Literal>                              <ID>type</ID>                               <ToolTip>Property type</ToolTip>                              <Default>int</Default>                         </Literal>                         <Literal>                              <ID>property</ID>                              <ToolTip>Property name</ToolTip>                              <Default>MyProperty</Default>                         </Literal>                         <Literal>                              <ID>field</ID>                              <ToolTip>The variable backing this                              property</ToolTip>                              <Default>myVar</Default>                         </Literal>                   </Declarations>                   <Code Language="csharp"><![CDATA[#region $property$             // This field holds the $property$       private $type$ $field$;         /// <summary>Gets/sets the $property$.</summary>       /// <value>A <see cref="$type$">$type$</see>       /// containing the $property$.</value>       /// <remarks>This property gets/sets the $property$.</remarks>       [System.ComponentModel.Description("Gets/sets the $property$.")]       public $type$ $property$       {             get { return $field$;}             set { $field$ = value;}       }       #endregion       $end$]]>                   </Code>             </Snippet>       </CodeSnippet> </CodeSnippets>

Complex Databinding

I just finished writing some ASP.NET code where I also typed the following lines:  <ItemTemplate> <asp:Image ID="IsOnline" runat="server" ImageUrl='<%# GetImageUrl((MembershipUser)Container.DataItem) %>' /> </ItemTemplate> ... protected string GetImageUrl(MembershipUser user) { if (user.IsLockedOut) { return "~/images/BadUser.gif"; } else if (!user.IsApproved) { return "~/images/GreyUser.gif"; } else if (user.IsOnline) { return "~/images/OnlineUser.gif"; } else { return "~/images/OfflineUser.gif"; } } Before I shutdown my machine I fetchted Mail and Feeds when i ran accross this posting by ScottGu pointing to Fritz Onions Blog. ;-)

Visual Studio 2005 available for MSDN Universal Subscribers first on October 15th

[Jeffrey Palermo] public launch date and availability is still scheduled for the week of November 7th, but Microsoft will be releasing the software to it's MSDN Universal subscribers first on October 15th.  I've been looking for changes from the Release Candidate to RTM, but I haven't found them yet. I'm glad the software is finally coming out.  I've been working with .Net 2.0 since Beta 1 came out, and I'm looking forward to using the final product. The I've installed Beta 1, Beta 2, and the Release Candidate, and all the IDEs have been stable. You've heard the warnings not to install pre-release software on any computer you care about, but Visual Studio 2005 has been very stable.  I'm impressed.[...] Nothing to add, Jeff  :-)