public override void VisitCollectionItem(IEnumerable collection, CollectionDescriptor descriptor, int index, object item, ITypeDescriptor itemDescriptor) { var node = stackItems.Peek(); // TODO modify DataVisitorBase to allow only IList? var newNode = new DataVisitListItem(index, item, itemDescriptor); AddItem(node, newNode); stackItems.Push(newNode); base.VisitCollectionItem(collection, descriptor, index, item, itemDescriptor); stackItems.Pop(); }