Configuring WCF in code
May 06, 2015One of the main issues I have with WCF, compared to say a WebApi or a NancyFX based API, are the ridiculously large configuration options…
Avoiding Unicode issues when inserting XML into a SQL Database
December 29, 2010If you have to insert XML into a SQL Server (2005+) XML column, there’s three ways of doing it. Perform a raw string insert, which is…
Using XmlTextWriter to produce a XML string
February 16, 2010This is a small snippet showing an example of using a XmlTextWriter to produce Xml that validates. One point to note is that because .NET…
Format XML in C#
September 09, 2009Below is a small snippet showing how to format (or re-format) XML so it’s indented. XML isn’t stored in this humanly readable way in…
Dynamically compiling XSL in C#
June 07, 2009If you use XSL extensively in any .NET applications then you will probably find yourself encountering performance issues with your XSL in an…
.NET XML Comment Cheat Sheet
May 19, 2009Download .snippet file Update: Ghost doc (free addin for Visual Studio 2008) makes a lot of the snippets redundent. Some are still relevant…
XML Browser (demo app)
February 05, 2008Download This simplistic demo app from 2004 works as a simple XML browser, showing all XML nodes in an XML document in a treeview, the value…
Streaming binary/text data via the web in C#
May 24, 2007Download This rough example was originally intended for auto-update functionality in an application (it downloads the new .exe, runs a…