Jesse wrote an interesting post about xml and the .Net framework. He reminds us that xml is actually an abstraction and that Angle brackets are just one (inefficient) way of representing it.
For this reason this code:
can actually generate both "regular" xml and optimized binary one, depending on the implementation of XmlWriter handed to it.
This is actually a great example of a design pattern implemented in the .Net framework BCL.
Can you guess which design pattern is it? Here's the DP list. Give your best shot at the comments bellow!