Beispiel #1
0
        public ZzPakNode1 method_2(string string0)
        {
            if (string.IsNullOrEmpty(string0))
            {
                return(this);
            }
            var list = new List <string>(string0.Split(new[]
            {
                '\\',
                '/'
            }, StringSplitOptions.RemoveEmptyEntries));
            ZzPakNode1 @class;

            if (Nodes.ContainsKey(list[0]) && Nodes[list[0]] is ZzPakNode1)
            {
                @class = (ZzPakNode1)Nodes[list[0]];
                list.RemoveAt(0);
                @class = ((list.Count > 0) ? @class.method_3(list) : @class);
            }
            else
            {
                @class = new ZzPakNode1(list[0]);
                list.RemoveAt(0);
                Nodes.Add(@class);
                @class = ((list.Count > 0) ? @class.method_3(list) : @class);
            }
            return(@class);
        }
Beispiel #2
0
        public ZzPakNode1 method_3(List <string> list0)
        {
            if (list0.Count == 0)
            {
                return(this);
            }
            if (!Nodes.ContainsKey(list0[0]) || !(Nodes[list0[0]] is ZzPakNode1))
            {
                var @class = new ZzPakNode1(list0[0]);
                list0.RemoveAt(0);
                Nodes.Add(@class);
                return(@class.method_3(list0));
            }
            if (list0.Count == 1)
            {
                return((ZzPakNode1)Nodes[list0[0]]);
            }
            var key = list0[0];

            list0.RemoveAt(0);
            return(((ZzPakNode1)Nodes[key]).method_3(list0));
        }