internal virtual Type GetSerializeType(object graph) { return (graph == null) ? null : graph.GetType(); }