Exemplo n.º 1
0
Arquivo: NodeApi.cs Projeto: E01D/Base
 public SettingNode_I CreateSectionNode(SettingNode_I parent, string pathPiece)
 {
     return(new SectionSettingNode()
     {
         Key = pathPiece,
         Parent = parent
     });
 }
Exemplo n.º 2
0
        public string GetFullKey(SettingNode_I node)
        {
            var seperator = KeyDelimiter();

            string fullKey = node.Key;

            while (node.Parent?.Parent != null)
            {
                node = node.Parent;

                fullKey = node.Key + seperator + fullKey;
            }

            return(fullKey);
        }