Exemplo n.º 1
0
        public static SerializableNode[] CreateSerializableNodes(ObjectElement tree)
        {
            var helper = new SerializerHelper();

            // Get the list of objects contained in the Tree
            helper.Explore( tree );

            // Create the list of nodes
            var objects = new SerializableNode[ helper.VisitedObjects.Count ];
            int i=0;
            foreach( var obj in helper.VisitedObjects.Values )
                objects[i++] = obj;

            return objects;
        }