Exemple #1
0
 public virtual void Visit(SimpleTreeBranchDictionaryByName <TLeaf> treeNode)
 {
     foreach (var pair in treeNode)
     {
         Visit(pair.Value);
     }
 }
Exemple #2
0
        internal static SimpleTreeBranchDictionaryByName <string> ToSimpleStringTree(this ValueStructureSparse value)
        {
            var structure = value.ValueStructureType;
            var tree      = new SimpleTreeBranchDictionaryByName <string>();

            foreach (var pair in value)
            {
                var dataMember = structure.GetDataMember(pair.Key);
                var node       = ToSimpleStringTree(pair.Value);

                tree.Add(dataMember.DefinitionIndex, dataMember.ObjectName, dataMember.SymbolTypeSignature, node);
            }

            return(tree);
        }