<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>untidy blog &#187; dotnet</title>
	<atom:link href="http://untidy.net/blog/category/software/dotnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://untidy.net/blog</link>
	<description>simon steele writes about stuff...</description>
	<lastBuildDate>Fri, 28 May 2010 13:28:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>C# Automatic Properties can have Attributes</title>
		<link>http://untidy.net/blog/2008/06/05/c-automatic-properties-can-have-attributes/</link>
		<comments>http://untidy.net/blog/2008/06/05/c-automatic-properties-can-have-attributes/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 10:19:02 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[dotnet]]></category>

		<guid isPermaLink="false">http://untidy.net/blog/?p=227</guid>
		<description><![CDATA[The MSDN documentation for Automatic Properties (a C# 3 language feature) states that attributes are not valid on automatic properties. This is not true, the following code compiles and works as expected: public class Data { [XmlAttribute] public int SomeNumber { get; set; } } class Program { static void Main(string[] args) { using (XmlWriter [...]]]></description>
			<content:encoded><![CDATA[<p>The MSDN documentation for <a href="http://msdn.microsoft.com/en-us/library/bb384054.aspx">Automatic Properties</a> (a C# 3 language feature) states that attributes are not valid on automatic properties. This is not true, the following code compiles and works as expected:</p>
<p>public class Data<br />
{<br />
    [XmlAttribute]<br />
    public int SomeNumber { get; set; }<br />
}</p>
<p>class Program<br />
{<br />
    static void Main(string[] args)<br />
    {<br />
        using (XmlWriter w = XmlWriter.Create(@&#8221;c:\temp\test.xml&#8221;))<br />
        {<br />
            XmlSerializer s = new XmlSerializer(typeof (Data));<br />
            s.Serialize(w, new Data { SomeNumber = 5 });<br />
        }<br />
    }<br />
}</p>
<p>Running this code results in an XML file looking roughly like this (I stripped some unneeded namespace declarations):</p>
<pre class="brush: xml;">&lt; ?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;data SomeNumber=&quot;5&quot; /&gt;</pre>
<p>SomeNumber is saved as an attribute, so the XmlAttribute attribute worked correctly.</p>
]]></content:encoded>
			<wfw:commentRss>http://untidy.net/blog/2008/06/05/c-automatic-properties-can-have-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Source Analysis Released</title>
		<link>http://untidy.net/blog/2008/05/28/microsoft-source-analysis-released/</link>
		<comments>http://untidy.net/blog/2008/05/28/microsoft-source-analysis-released/#comments</comments>
		<pubDate>Wed, 28 May 2008 14:26:34 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[dotnet]]></category>

		<guid isPermaLink="false">http://untidy.net/blog/2008/05/28/microsoft-source-analysis-released/</guid>
		<description><![CDATA[My team at work uses a fantastic Visual Studio add-in called Source Analysis to ensure consistency in our C# code formatting, commenting and organisation. Source Analysis has now been released for the whole world to use, for free! The free download is available at the MSDN Code Gallery: Source Analysis at Code Gallery There&#8217;s also [...]]]></description>
			<content:encoded><![CDATA[<p>My team at work uses a fantastic Visual Studio add-in called Source Analysis to ensure consistency in our C# code formatting, commenting and organisation.</p>
<p><a href="http://untidy.net/blog/wp-content/uploads/2008/05/sourceanalysis.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="262" alt="Microsoft Source Analysis" src="http://untidy.net/blog/wp-content/uploads/2008/05/sourceanalysis-thumb.png" width="404" border="0"/></a> </p>
<p>Source Analysis has now been released for the whole world to use, for free! The free download is available at the MSDN Code Gallery:</p>
<p><a href="http://code.msdn.microsoft.com/sourceanalysis">Source Analysis at Code Gallery</a></p>
<p>There&#8217;s also a blog here:</p>
<p><a href="http://blogs.msdn.com/sourceanalysis/">Source Analysis Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://untidy.net/blog/2008/05/28/microsoft-source-analysis-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
