DataContract Serialization by Reference using the IsReference Property

I came across this blog post the oth­er day which intro­duced to me a cool addi­tion to the Dat­a­Con­tract seri­al­iz­er — the abil­i­ty to gen­er­ate XML by ref­er­ence rather than by val­ue:

Not much for me to add to it real­ly, just read the blog to see how it works.