A few days ago I was asked to do a version of my XMLSerializer post in C#.
Well it was more like a week or two ago but either way here it is. For explanation on what I'm doing in the code please refer back to my original post.
http://weblogs.asp.net/davidyancey/archive/2008/01/23/writing-xml-with-xmlserializer.aspx
Download