private void WriteReferencedElement(object o, Type ambientType) { WriteReferencedElement(null, null, o, ambientType); }