private static void Write(object graph) { using(var writer = CreateWriter()) { writer.Write(graph); } }