示例#1
0
        public void Visit(object graph, IWriteVisitor visitor)
        {
            var childGraph = _property.Ref.GetValue(graph);
            visitor.Visit(childGraph, _args);
            if (childGraph == null) {
                visitor.Leave(null, _args);
                return;
            }

            _propertyType.Visit(childGraph, visitor);
            visitor.Leave(childGraph, _args);
        }