예제 #1
0
        public void CollectPathsInto(ObjectGraphPaths objectGraphPaths)
        {
            var children = RetrievePropertiesAndFields(_target);

            if (children.Any())
            {
                foreach (var child in children)
                {
                    child.CollectPathsInto(objectGraphPaths);
                }
            }
            else
            {
                objectGraphPaths.Add(new ObjectGraphPath(_path));
            }
        }
예제 #2
0
        public void CollectPathsInto(ObjectGraphPaths objectGraphPaths)
        {
            //todo consider extracting the items before passing them to this class instance
            var list  = ToObjectsList();
            var items = list.Select((o, i) => _objectGraphNodeFactory.From(_path, o, "array element[" + i + "]"));

            if (items.Any())
            {
                foreach (var item in items)
                {
                    item.CollectPathsInto(objectGraphPaths);
                }
            }
            else
            {
                objectGraphPaths.Add(new ObjectGraphPath(_path));
            }
        }
 public void CollectPathsInto(ObjectGraphPaths objectGraphPaths)
 {
     objectGraphPaths.Add(new ObjectGraphPath(_path));
 }
예제 #4
0
 public void CollectPathsInto(ObjectGraphPaths objectGraphPaths)
 {
     objectGraphPaths.Add(new ObjectGraphPath(_path)); //bug check if such path already exists
 }